	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hostap_add_sta
LCPI0_0:
	.long	130                             ## 0x82
	.long	132                             ## 0x84
	.long	11                              ## 0xb
	.long	22                              ## 0x16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hostap_add_sta
	.p2align	4, 0x90
_hostap_add_sta:                        ## @hostap_add_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_spin_lock
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ap_get_sta
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	testq	%r15, %r15
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ap_add_sta
	movq	%rax, %rbx
	movl	$-1, %eax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	_WLAN_STA_AUTH@GOTPCREL(%rip), %rax
	movq	_WLAN_STA_ASSOC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	$1, 4(%rbx)
	movq	8(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [130,132,11,22]
	movups	%xmm0, (%rax)
	movq	_WLAN_RATE_1M@GOTPCREL(%rip), %rax
	movq	_WLAN_RATE_2M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_WLAN_RATE_5M5@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_WLAN_RATE_11M@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 16(%rbx)
	movabsq	$12884901998, %rax              ## imm = 0x30000006E
	movq	%rax, 20(%rbx)
	movl	$3, 28(%rbx)
	movl	$1, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STA_AUTH,4,2              ## @WLAN_STA_AUTH
	.comm	_WLAN_STA_ASSOC,4,2             ## @WLAN_STA_ASSOC
	.comm	_WLAN_RATE_1M,4,2               ## @WLAN_RATE_1M
	.comm	_WLAN_RATE_2M,4,2               ## @WLAN_RATE_2M
	.comm	_WLAN_RATE_5M5,4,2              ## @WLAN_RATE_5M5
	.comm	_WLAN_RATE_11M,4,2              ## @WLAN_RATE_11M
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function hostap_add_sta
lCPI0_0:
	.long	130                             ; 0x82
	.long	132                             ; 0x84
	.long	11                              ; 0xb
	.long	22                              ; 0x16
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	110                             ; 0x6e
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hostap_add_sta
	.p2align	2
_hostap_add_sta:                        ; @hostap_add_sta
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_spin_lock
	mov	x0, x20
	mov	x1, x19
	bl	_ap_get_sta
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock
	cbz	x21, LBB0_3
; %bb.2:
	mov	w19, #0
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_ap_add_sta
	cbz	x0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh0:
	adrp	x8, _WLAN_STA_AUTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_STA_AUTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _WLAN_STA_ASSOC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WLAN_STA_ASSOC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	w19, #1
	stp	w8, w19, [x0]
	ldr	x0, [x0, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x8]
Lloh8:
	adrp	x8, _WLAN_RATE_1M@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_RATE_1M@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _WLAN_RATE_2M@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WLAN_RATE_2M@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _WLAN_RATE_5M5@GOTPAGE
Lloh15:
	ldr	x9, [x9, _WLAN_RATE_5M5@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _WLAN_RATE_11M@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WLAN_RATE_11M@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20, #16]
	mov	w8, #3
	str	w8, [x20, #28]
Lloh20:
	adrp	x8, lCPI0_1@PAGE
Lloh21:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	stur	d0, [x20, #20]
	b	LBB0_6
LBB0_5:
	mov	w19, #-1
LBB0_6:
	mov	x0, x19
	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 AdrpLdr	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh11
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STA_AUTH,4,2              ; @WLAN_STA_AUTH
	.comm	_WLAN_STA_ASSOC,4,2             ; @WLAN_STA_ASSOC
	.comm	_WLAN_RATE_1M,4,2               ; @WLAN_RATE_1M
	.comm	_WLAN_RATE_2M,4,2               ; @WLAN_RATE_2M
	.comm	_WLAN_RATE_5M5,4,2              ; @WLAN_RATE_5M5
	.comm	_WLAN_RATE_11M,4,2              ; @WLAN_RATE_11M
.subsections_via_symbols
