	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_set_sta_flags          ## -- Begin function hostapd_set_sta_flags
	.p2align	4, 0x90
_hostapd_set_sta_flags:                 ## @hostapd_set_sta_flags
	.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, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_hostapd_sta_flags_to_drv
	movq	_WPA_STA_SHORT_PREAMBLE@GOTPCREL(%rip), %rcx
	movq	_WPA_STA_WMM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rcx), %r8d
	movq	_WPA_STA_MFP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	(%r14), %rcx
	cmpl	$0, 4(%rcx)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%rcx)
	je	LBB0_3
LBB0_2:
	movq	8(%rbx), %rcx
	movq	_WLAN_AUTH_FT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
LBB0_3:
	movq	_WLAN_STA_AUTHORIZED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	_WPA_STA_AUTHORIZED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
LBB0_5:
	movl	%r8d, %ecx
	andl	%eax, %ecx
	notl	%r8d
	orl	%eax, %r8d
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hostapd_sta_set_flags          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_STA_SHORT_PREAMBLE,4,2     ## @WPA_STA_SHORT_PREAMBLE
	.comm	_WPA_STA_WMM,4,2                ## @WPA_STA_WMM
	.comm	_WPA_STA_MFP,4,2                ## @WPA_STA_MFP
	.comm	_WLAN_AUTH_FT,8,3               ## @WLAN_AUTH_FT
	.comm	_WLAN_STA_AUTHORIZED,4,2        ## @WLAN_STA_AUTHORIZED
	.comm	_WPA_STA_AUTHORIZED,4,2         ## @WPA_STA_AUTHORIZED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostapd_set_sta_flags          ; -- Begin function hostapd_set_sta_flags
	.p2align	2
_hostapd_set_sta_flags:                 ; @hostapd_set_sta_flags
	.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
	ldr	w0, [x1]
	bl	_hostapd_sta_flags_to_drv
	mov	x2, x0
Lloh0:
	adrp	x8, _WPA_STA_SHORT_PREAMBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPA_STA_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WPA_STA_WMM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPA_STA_WMM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _WPA_STA_MFP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WPA_STA_MFP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	x9, [x19]
	ldr	w10, [x9, #4]
	cbnz	w10, LBB0_2
; %bb.1:
	ldr	w9, [x9]
	cbz	w9, LBB0_3
LBB0_2:
	ldr	x9, [x20, #8]
Lloh9:
	adrp	x10, _WLAN_AUTH_FT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WLAN_AUTH_FT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
LBB0_3:
	ldr	w9, [x20]
Lloh12:
	adrp	x10, _WLAN_STA_AUTHORIZED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WLAN_STA_AUTHORIZED@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh15:
	adrp	x9, _WPA_STA_AUTHORIZED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WPA_STA_AUTHORIZED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_5:
	and	w3, w8, w2
	orn	w4, w2, w8
	ldr	w1, [x20, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hostapd_sta_set_flags
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_STA_SHORT_PREAMBLE,4,2     ; @WPA_STA_SHORT_PREAMBLE
	.comm	_WPA_STA_WMM,4,2                ; @WPA_STA_WMM
	.comm	_WPA_STA_MFP,4,2                ; @WPA_STA_MFP
	.comm	_WLAN_AUTH_FT,8,3               ; @WLAN_AUTH_FT
	.comm	_WLAN_STA_AUTHORIZED,4,2        ; @WLAN_STA_AUTHORIZED
	.comm	_WPA_STA_AUTHORIZED,4,2         ; @WPA_STA_AUTHORIZED
.subsections_via_symbols
