	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multi_ap_process_assoc_resp
_multi_ap_process_assoc_resp:           ## @multi_ap_process_assoc_resp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.2:
	cmpl	$0, 4(%rax)
	je	LBB0_15
## %bb.3:
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rax
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	movl	$1, %ecx
	callq	_ieee802_11_parse_elems
	movq	_ParseFailed@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.4:
	movq	-32(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	movq	_MSG_INFO@GOTPCREL(%rip), %r14
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.5:
	movl	-24(%rbp), %eax
	cmpl	$7, %eax
	jl	LBB0_14
## %bb.6:
	addq	$16, %rdi
	addl	$-4, %eax
	movq	_MULTI_AP_SUB_ELEM_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_get_ie
	leaq	L_.str.1(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	cmpl	$0, 4(%rax)
	jle	LBB0_14
## %bb.8:
	movl	8(%rax), %eax
	movq	_MULTI_AP_BACKHAUL_BSS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wpa_drv_set_4addr_mode
	testq	%rax, %rax
	js	LBB0_13
## %bb.16:
	movl	$1, (%rbx)
	jmp	LBB0_15
LBB0_9:
	movq	_MULTI_AP_FRONTHAUL_BSS@GOTPCREL(%rip), %rcx
	leaq	L_.str.3(%rip), %rsi
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.10:
	movq	8(%rbx), %rax
	movq	_WPA_KEY_MGMT_WPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	_MSG_ERROR@GOTPCREL(%rip), %r14
LBB0_14:
	movl	(%r14), %edi
	callq	_wpa_printf
	movq	_WLAN_REASON_DEAUTH_LEAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wpa_supplicant_deauthenticate
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ParseFailed,8,3                ## @ParseFailed
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AP doesn't support Multi-AP protocol"

	.comm	_MULTI_AP_SUB_ELEM_TYPE,4,2     ## @MULTI_AP_SUB_ELEM_TYPE
L_.str.1:                               ## @.str.1
	.asciz	"invalid Multi-AP sub elem type"

	.comm	_MULTI_AP_BACKHAUL_BSS,4,2      ## @MULTI_AP_BACKHAUL_BSS
	.comm	_MULTI_AP_FRONTHAUL_BSS,4,2     ## @MULTI_AP_FRONTHAUL_BSS
	.comm	_WPA_KEY_MGMT_WPS,4,2           ## @WPA_KEY_MGMT_WPS
L_.str.2:                               ## @.str.2
	.asciz	"WPS active, accepting fronthaul-only BSS"

L_.str.3:                               ## @.str.3
	.asciz	"AP doesn't support backhaul BSS"

	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"Failed to set 4addr mode"

	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ## @WLAN_REASON_DEAUTH_LEAVING
	.no_dead_strip	_multi_ap_process_assoc_resp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multi_ap_process_assoc_resp
_multi_ap_process_assoc_resp:           ; @multi_ap_process_assoc_resp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_14
; %bb.1:
	cbz	x1, LBB0_14
; %bb.2:
	ldr	w9, [x9, #4]
	cbz	w9, LBB0_14
; %bb.3:
	mov	x8, x2
	mov	x19, x0
	mov	x2, sp
	mov	x0, x1
	mov	x1, x8
	mov	w3, #1
	bl	_ieee802_11_parse_elems
Lloh0:
	adrp	x8, _ParseFailed@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ParseFailed@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.4:
	ldr	x9, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
	cbz	x9, LBB0_13
; %bb.5:
	ldr	w10, [sp, #8]
	cmp	w10, #7
	b.lt	LBB0_13
; %bb.6:
	add	x0, x9, #16
	sub	w1, w10, #4
Lloh7:
	adrp	x8, _MULTI_AP_SUB_ELEM_TYPE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MULTI_AP_SUB_ELEM_TYPE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_get_ie
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w8, [x0, #4]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	ldr	w8, [x0, #8]
Lloh10:
	adrp	x9, _MULTI_AP_BACKHAUL_BSS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MULTI_AP_BACKHAUL_BSS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.9:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_wpa_drv_set_4addr_mode
	tbnz	x0, #63, LBB0_18
; %bb.10:
	str	w20, [x19]
	b	LBB0_14
LBB0_11:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	bl	_wpa_printf
Lloh17:
	adrp	x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WLAN_REASON_DEAUTH_LEAVING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_supplicant_deauthenticate
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
Lloh20:
	adrp	x9, _MULTI_AP_FRONTHAUL_BSS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MULTI_AP_FRONTHAUL_BSS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.16:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
Lloh23:
	adrp	x8, _WPA_KEY_MGMT_WPS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WPA_KEY_MGMT_WPS@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x8]
Lloh26:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_20
; %bb.17:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	b	LBB0_14
LBB0_18:
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh32:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
	b	LBB0_13
LBB0_19:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_20:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ParseFailed,8,3                ; @ParseFailed
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AP doesn't support Multi-AP protocol"

	.comm	_MULTI_AP_SUB_ELEM_TYPE,4,2     ; @MULTI_AP_SUB_ELEM_TYPE
l_.str.1:                               ; @.str.1
	.asciz	"invalid Multi-AP sub elem type"

	.comm	_MULTI_AP_BACKHAUL_BSS,4,2      ; @MULTI_AP_BACKHAUL_BSS
	.comm	_MULTI_AP_FRONTHAUL_BSS,4,2     ; @MULTI_AP_FRONTHAUL_BSS
	.comm	_WPA_KEY_MGMT_WPS,4,2           ; @WPA_KEY_MGMT_WPS
l_.str.2:                               ; @.str.2
	.asciz	"WPS active, accepting fronthaul-only BSS"

l_.str.3:                               ; @.str.3
	.asciz	"AP doesn't support backhaul BSS"

	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"Failed to set 4addr mode"

	.comm	_WLAN_REASON_DEAUTH_LEAVING,4,2 ; @WLAN_REASON_DEAUTH_LEAVING
	.no_dead_strip	_multi_ap_process_assoc_resp
.subsections_via_symbols
