	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl12xx_set_authorized
_wl12xx_set_authorized:                 ## @wl12xx_set_authorized
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	_BSS_TYPE_STA_BSS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_WLVIF_FLAG_STA_ASSOCIATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r14), %r12
	movq	%r12, %rsi
	callq	_test_bit
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	_WLVIF_FLAG_STA_STATE_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movl	8(%r14), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_wl12xx_cmd_set_peer_state
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_info
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_TYPE_STA_BSS,8,3           ## @BSS_TYPE_STA_BSS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WLVIF_FLAG_STA_ASSOCIATED,4,2  ## @WLVIF_FLAG_STA_ASSOCIATED
	.comm	_WLVIF_FLAG_STA_STATE_SENT,4,2  ## @WLVIF_FLAG_STA_STATE_SENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Association completed."

	.no_dead_strip	_wl12xx_set_authorized
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl12xx_set_authorized
_wl12xx_set_authorized:                 ; @wl12xx_set_authorized
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _BSS_TYPE_STA_BSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BSS_TYPE_STA_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
Lloh6:
	adrp	x8, _WLVIF_FLAG_STA_ASSOCIATED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLVIF_FLAG_STA_ASSOCIATED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x21, x19, #12
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _WLVIF_FLAG_STA_STATE_SENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLVIF_FLAG_STA_STATE_SENT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_set_bit
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_wl12xx_cmd_set_peer_state
	tbnz	w0, #31, LBB0_7
; %bb.5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_info
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_TYPE_STA_BSS,8,3           ; @BSS_TYPE_STA_BSS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WLVIF_FLAG_STA_ASSOCIATED,4,2  ; @WLVIF_FLAG_STA_ASSOCIATED
	.comm	_WLVIF_FLAG_STA_STATE_SENT,4,2  ; @WLVIF_FLAG_STA_STATE_SENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Association completed."

	.no_dead_strip	_wl12xx_set_authorized
.subsections_via_symbols
