	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_is_sta_authorized       ## -- Begin function hostap_is_sta_authorized
	.p2align	4, 0x90
_hostap_is_sta_authorized:              ## @hostap_is_sta_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_spin_lock
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ap_get_sta
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%rax), %ecx
	movq	_WLAN_STA_ASSOC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.2:
	cmpl	$0, 4(%rax)
	jne	LBB0_6
## %bb.3:
	movq	_WLAN_STA_AUTHORIZED@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
LBB0_5:
	movl	$1, %r14d
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STA_ASSOC,4,2             ## @WLAN_STA_ASSOC
	.comm	_WLAN_STA_AUTHORIZED,4,2        ## @WLAN_STA_AUTHORIZED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_is_sta_authorized       ; -- Begin function hostap_is_sta_authorized
	.p2align	2
_hostap_is_sta_authorized:              ; @hostap_is_sta_authorized
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock
	mov	x0, x19
	mov	x1, x20
	bl	_ap_get_sta
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _WLAN_STA_ASSOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_STA_ASSOC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x0, #4]
	cbz	w9, LBB0_5
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x9, _WLAN_STA_AUTHORIZED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WLAN_STA_AUTHORIZED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_6:
	mov	w20, #1
	b	LBB0_4
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STA_ASSOC,4,2             ; @WLAN_STA_ASSOC
	.comm	_WLAN_STA_AUTHORIZED,4,2        ; @WLAN_STA_AUTHORIZED
.subsections_via_symbols
