	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_join_complete
_cw1200_join_complete:                  ## @cw1200_join_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	$0, (%rbx)
	cmpq	$0, 32(%rbx)
	je	LBB0_2
## %bb.1:
	movq	_CW1200_JOIN_STATUS_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	callq	_cw1200_update_listening
	movq	%rbx, %rdi
	callq	_cw1200_do_unjoin
	movl	20(%rbx), %edi
	callq	_ieee80211_connection_loss
	jmp	LBB0_6
LBB0_2:
	movq	8(%rbx), %rax
	movq	_NL80211_IFTYPE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_CW1200_JOIN_STATUS_IBSS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_CW1200_JOIN_STATUS_PRE_STA@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wsm_unlock_tx                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[STA] Join complete (%d)\n"

	.comm	_CW1200_JOIN_STATUS_PASSIVE,4,2 ## @CW1200_JOIN_STATUS_PASSIVE
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ## @NL80211_IFTYPE_ADHOC
	.comm	_CW1200_JOIN_STATUS_IBSS,4,2    ## @CW1200_JOIN_STATUS_IBSS
	.comm	_CW1200_JOIN_STATUS_PRE_STA,4,2 ## @CW1200_JOIN_STATUS_PRE_STA
	.no_dead_strip	_cw1200_join_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_join_complete
_cw1200_join_complete:                  ; @cw1200_join_complete
	.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	x19, x0
	ldr	x1, [x0, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	str	wzr, [x19]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CW1200_JOIN_STATUS_PASSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_cw1200_update_listening
	mov	x0, x19
	bl	_cw1200_do_unjoin
	ldr	w0, [x19, #20]
	bl	_ieee80211_connection_loss
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _NL80211_IFTYPE_ADHOC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_IFTYPE_ADHOC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _CW1200_JOIN_STATUS_IBSS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CW1200_JOIN_STATUS_IBSS@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _CW1200_JOIN_STATUS_PRE_STA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CW1200_JOIN_STATUS_PRE_STA@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wsm_unlock_tx
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[STA] Join complete (%d)\n"

	.comm	_CW1200_JOIN_STATUS_PASSIVE,4,2 ; @CW1200_JOIN_STATUS_PASSIVE
	.comm	_NL80211_IFTYPE_ADHOC,8,3       ; @NL80211_IFTYPE_ADHOC
	.comm	_CW1200_JOIN_STATUS_IBSS,4,2    ; @CW1200_JOIN_STATUS_IBSS
	.comm	_CW1200_JOIN_STATUS_PRE_STA,4,2 ; @CW1200_JOIN_STATUS_PRE_STA
	.no_dead_strip	_cw1200_join_complete
.subsections_via_symbols
