	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlcore_join
_wlcore_join:                           ## @wlcore_join
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	_BSS_TYPE_IBSS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_WLVIF_FLAG_STA_ASSOCIATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_info
LBB0_2:
	movq	_KEY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	cmpq	%r12, %r15
	jne	LBB0_3
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl12xx_cmd_role_start_ibss     ## TAILCALL
LBB0_3:
	movq	_WLCORE_QUIRK_START_STA_FAILS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_cmd_role_start_sta
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wl12xx_cmd_role_stop_sta
LBB0_5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wl12xx_cmd_role_start_sta      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BSS_TYPE_IBSS,8,3              ## @BSS_TYPE_IBSS
	.comm	_WLVIF_FLAG_STA_ASSOCIATED,4,2  ## @WLVIF_FLAG_STA_ASSOCIATED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"JOIN while associated."

	.comm	_KEY_NONE,4,2                   ## @KEY_NONE
	.comm	_WLCORE_QUIRK_START_STA_FAILS,4,2 ## @WLCORE_QUIRK_START_STA_FAILS
	.no_dead_strip	_wlcore_join
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlcore_join
_wlcore_join:                           ; @wlcore_join
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x1], #12
Lloh0:
	adrp	x8, _BSS_TYPE_IBSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BSS_TYPE_IBSS@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _WLVIF_FLAG_STA_ASSOCIATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLVIF_FLAG_STA_ASSOCIATED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_info
LBB0_2:
Lloh8:
	adrp	x8, _KEY_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	cmp	x21, x22
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, 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
	b	_wl12xx_cmd_role_start_ibss
LBB0_4:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _WLCORE_QUIRK_START_STA_FAILS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WLCORE_QUIRK_START_STA_FAILS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_wl12xx_cmd_role_start_sta
	mov	x0, x20
	mov	x1, x19
	bl	_wl12xx_cmd_role_stop_sta
LBB0_6:
	mov	x0, x20
	mov	x1, 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
	b	_wl12xx_cmd_role_start_sta
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BSS_TYPE_IBSS,8,3              ; @BSS_TYPE_IBSS
	.comm	_WLVIF_FLAG_STA_ASSOCIATED,4,2  ; @WLVIF_FLAG_STA_ASSOCIATED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"JOIN while associated."

	.comm	_KEY_NONE,4,2                   ; @KEY_NONE
	.comm	_WLCORE_QUIRK_START_STA_FAILS,4,2 ; @WLCORE_QUIRK_START_STA_FAILS
	.no_dead_strip	_wlcore_join
.subsections_via_symbols
