	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_hostapd_set_flags_sta
_prism2_hostapd_set_flags_sta:          ## @prism2_hostapd_set_flags_sta
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_spin_lock_bh
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rax), %ecx
	orl	4(%r14), %ecx
	andl	(%r14), %ecx
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_prism2_hostapd_set_flags_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_hostapd_set_flags_sta
_prism2_hostapd_set_flags_sta:          ; @prism2_hostapd_set_flags_sta
	.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_bh
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_ap_get_sta
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0]
	ldp	w10, w9, [x20]
	orr	w8, w8, w9
	and	w8, w10, w8
	str	w8, [x0]
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh0:
	adrp	x8, _ENOENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_prism2_hostapd_set_flags_sta
.subsections_via_symbols
