	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_sta_join1
_ieee80211_sta_join1:                   ## @ieee80211_sta_join1
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %r14
	movq	32(%rdi), %r15
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movl	16(%rbx), %edi
	movl	16(%r12), %esi
	callq	_IEEE80211_ADDR_EQ
	testq	%rax, %rax
	setne	%al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_3:
	movq	%r12, 16(%r15)
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	jmp	LBB0_6
LBB0_2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movq	%r12, 16(%r15)
	movq	8(%rbx), %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_copy_bss
	movq	%rbx, %rdi
	callq	_ieee80211_node_decref
	movq	%r13, %rdi
	callq	_IEEE80211_NODE_LOCK
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_node_reclaim
	movq	%r13, %rdi
	callq	_IEEE80211_NODE_UNLOCK
	movq	16(%r15), %rdi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_6:
	leaq	4(%rdi), %rsi
	movq	_IEEE80211_F_DODEL@GOTPCREL(%rip), %rax
	movq	_IEEE80211_F_JOIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_ieee80211_fix_rate
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ieee80211_setcurchan
	movq	%r14, %rdi
	callq	_ieee80211_reset_erp
	movq	%r15, %rdi
	callq	_ieee80211_wme_initparams
	movq	8(%r15), %rax
	movq	_IEEE80211_M_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	testb	%bl, %bl
	je	LBB0_9
## %bb.8:
	movq	_IEEE80211_S_ASSOC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	jmp	LBB0_11
LBB0_10:
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$-1, %edx
	jmp	LBB0_11
LBB0_9:
	movq	_IEEE80211_S_AUTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_IEEE80211_FC0_SUBTYPE_DEAUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
LBB0_11:
	callq	_ieee80211_new_state
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_S_RUN,8,3            ## @IEEE80211_S_RUN
	.comm	_IEEE80211_F_DODEL,4,2          ## @IEEE80211_F_DODEL
	.comm	_IEEE80211_F_JOIN,4,2           ## @IEEE80211_F_JOIN
	.comm	_IEEE80211_M_STA,8,3            ## @IEEE80211_M_STA
	.comm	_IEEE80211_S_ASSOC,8,3          ## @IEEE80211_S_ASSOC
	.comm	_IEEE80211_S_AUTH,8,3           ## @IEEE80211_S_AUTH
	.comm	_IEEE80211_FC0_SUBTYPE_DEAUTH,4,2 ## @IEEE80211_FC0_SUBTYPE_DEAUTH
	.no_dead_strip	_ieee80211_sta_join1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_sta_join1
_ieee80211_sta_join1:                   ; @ieee80211_sta_join1
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldp	x20, x19, [x0, #24]
	ldr	x22, [x19, #16]
Lloh0:
	adrp	x24, _IEEE80211_S_RUN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IEEE80211_S_RUN@GOTPAGEOFF]
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x22, #16]
	ldr	w1, [x21, #16]
	bl	_IEEE80211_ADDR_EQ
	cmp	x0, #0
	cset	w25, ne
	b	LBB0_5
LBB0_3:
	mov	w25, #0
	str	x21, [x19, #16]
	mov	x0, x21
	b	LBB0_6
LBB0_4:
	mov	w25, #0
LBB0_5:
	str	x21, [x19, #16]
	ldr	x23, [x22, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_copy_bss
	mov	x0, x22
	bl	_ieee80211_node_decref
	mov	x0, x23
	bl	_IEEE80211_NODE_LOCK
	mov	x0, x23
	mov	x1, x22
	bl	_node_reclaim
	mov	x0, x23
	bl	_IEEE80211_NODE_UNLOCK
	ldr	x0, [x19, #16]
LBB0_6:
Lloh2:
	adrp	x8, _IEEE80211_F_DODEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_F_DODEL@GOTPAGEOFF]
	add	x1, x0, #4
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IEEE80211_F_JOIN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_F_JOIN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_ieee80211_fix_rate
	ldr	w1, [x21]
	mov	x0, x20
	bl	_ieee80211_setcurchan
	mov	x0, x20
	bl	_ieee80211_reset_erp
	mov	x0, x19
	bl	_ieee80211_wme_initparams
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _IEEE80211_M_STA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_M_STA@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	cbz	w25, LBB0_10
; %bb.8:
Lloh11:
	adrp	x8, _IEEE80211_S_ASSOC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_S_ASSOC@GOTPAGEOFF]
Lloh13:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	b	LBB0_11
LBB0_9:
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #-1
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _IEEE80211_S_AUTH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_S_AUTH@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
Lloh17:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_DEAUTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_DEAUTH@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_11:
	bl	_ieee80211_new_state
	mov	w0, #1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_S_RUN,8,3            ; @IEEE80211_S_RUN
	.comm	_IEEE80211_F_DODEL,4,2          ; @IEEE80211_F_DODEL
	.comm	_IEEE80211_F_JOIN,4,2           ; @IEEE80211_F_JOIN
	.comm	_IEEE80211_M_STA,8,3            ; @IEEE80211_M_STA
	.comm	_IEEE80211_S_ASSOC,8,3          ; @IEEE80211_S_ASSOC
	.comm	_IEEE80211_S_AUTH,8,3           ; @IEEE80211_S_AUTH
	.comm	_IEEE80211_FC0_SUBTYPE_DEAUTH,4,2 ; @IEEE80211_FC0_SUBTYPE_DEAUTH
	.no_dead_strip	_ieee80211_sta_join1
.subsections_via_symbols
