{"name": "hostapd_sta_flags_to_drv", "code": "__int64 __fastcall hostapd_sta_flags_to_drv ( __int16 @@a1@@ ) { unsigned int @@v2@@ ; @@v2@@ = ( @@a1@@ & Number ) != Number ; if ( ( @@a1@@ & Number ) != Number ) @@v2@@ |= Number ; if ( ( @@a1@@ & Number ) != Number ) @@v2@@ |= Number ; if ( ( @@a1@@ & Number ) != Number ) @@v2@@ |= Number ; if ( ( @@a1@@ & Number ) != Number ) @@v2@@ |= Number ; if ( ( @@a1@@ & Number ) != Number ) @@v2@@ |= Number ; return @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]}
{"name": "hostapd_set_authorized", "code": "__int64 __fastcall hostapd_set_authorized ( __int64 @@a1@@ , __int64 @@a2@@ , int @@a3@@ ) { unsigned int v3 ; __int64 result ; unsigned int v5 ; if ( @@a3@@ ) { v3 = hostapd_sta_flags_to_drv ( * ( _DWORD * ) ( @@a2@@ + Number ) ) ; result = hostapd_sta_set_flags ( @@a1@@ , @@a2@@ + Number , v3 , Number L , Number ) ; } else { v5 = hostapd_sta_flags_to_drv ( * ( _DWORD * ) ( @@a2@@ + Number ) ) ; result = hostapd_sta_set_flags ( @@a1@@ , @@a2@@ + Number , v5 , Number L , Number L ) ; } return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "hostapd_set_sta_flags", "code": "__int64 __fastcall hostapd_set_sta_flags ( __int64 @@a1@@ , __int64 @@a2@@ ) { unsigned int @@v3@@ ; int @@v4@@ ; @@v3@@ = hostapd_sta_flags_to_drv ( * ( _DWORD * ) ( @@a2@@ + Number ) ) ; @@v4@@ = Number ; if ( ( ! * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) && ! * ( _DWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) || * ( _WORD * ) ( @@a2@@ + Number ) == Number ) && ( * ( _DWORD * ) ( @@a2@@ + Number ) & Number ) != Number ) { @@v4@@ = Number ; } return hostapd_sta_set_flags ( @@a1@@ , @@a2@@ + Number , @@v3@@ , @@v4@@ & @@v3@@ , @@v3@@ | ~ @@v4@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]} {"name": "hostapd_sta_add", "code": "__int64 __fastcall hostapd_sta_add ( __int64 @@a1@@ , __int64 @@a2@@ , __int16 @@a3@@ , __int16 @@a4@@ , __int64 @@a5@@ , __int64 @@a6@@ , __int16 @@a7@@ , __int64 @@a8@@ , __int64 @@a9@@ , int @@a10@@ , char @@a11@@ , char @@a12@@ , int @@a13@@ , int @@a14@@ ) { __int64 @@s@@ [ Number ] ; if ( ! * ( _QWORD * ) ( @@a1@@ + Number ) ) return Number L ; if ( ! * ( _QWORD * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) return Number L ; memset ( @@s@@ , Number , Number ) ; @@s@@ [ Number ] = @@a2@@ ; LOWORD ( @@s@@ [ Number ] ) = @@a3@@ ; WORD1 ( @@s@@ [ Number ] ) = @@a4@@ ; @@s@@ [ Number ] = @@a5@@ ; @@s@@ [ Number ] = @@a6@@ ; LOWORD ( @@s@@ [ Number ] ) = @@a7@@ ; @@s@@ [ Number ] = @@a8@@ ; @@s@@ [ Number ] = @@a9@@ ; LODWORD ( @@s@@ [ Number ] ) = ( @@a10@@ & Number ) != Number ; BYTE4 ( @@s@@ [ Number ] ) = @@a12@@ ; LODWORD ( @@s@@ [ Number ] ) = hostapd_sta_flags_to_drv ( @@a10@@ ) ; BYTE4 ( @@s@@ [ Number ] ) = @@a11@@ ; LODWORD ( @@s@@ [ Number ] ) = @@a13@@ ; LODWORD ( @@s@@ [ Number ] ) = @@a14@@ ; return ( * ( __int64 ( __fastcall * * ) ( _QWORD , __int64 * ) ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@s@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "a7", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "s-16"}, {"n": "a8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s-24"}, {"n": "a9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s-32"}, {"n": "a10", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-40"}, {"n": "a11", "t": {"T": 1, "n": "char", "s": 1}, "location": "s-48"}, {"n": "a12", "t": {"T": 1, "n": "char", "s": 1}, "location": "s-56"}, {"n": "a13", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-64"}, {"n": "a14", "t": {"T": 1, "n": "int", "s": 4}, "location": "s-72"}, {"n": "s", "t": {"T": 2, "n": 18, "s": 8, "t": "__int64"}, "location": "s144"}]}