	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wl1251_join
_wl1251_join:                           ## @wl1251_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	%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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	_DEFAULT_HW_GEN_TX_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEFAULT_HW_GEN_MODULATION_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rdi), %r8d
	movl	12(%rdi), %ecx
	callq	_wl1251_acx_frame_rates
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	4(%rbx), %edi
	callq	_is_zero_ether_addr
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_CFG_BSSID_FILTER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_3:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_wl1251_cmd_join
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	_JOIN_EVENT_COMPLETE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$100, %edx
	callq	_wl1251_event_wait
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_8
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_wl1251_warning
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_HW_GEN_TX_RATE,4,2     ## @DEFAULT_HW_GEN_TX_RATE
	.comm	_DEFAULT_HW_GEN_MODULATION_TYPE,4,2 ## @DEFAULT_HW_GEN_MODULATION_TYPE
	.comm	_CFG_BSSID_FILTER_EN,4,2        ## @CFG_BSSID_FILTER_EN
	.comm	_JOIN_EVENT_COMPLETE_ID,4,2     ## @JOIN_EVENT_COMPLETE_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"join timeout"

	.no_dead_strip	_wl1251_join
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wl1251_join
_wl1251_join:                           ; @wl1251_join
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldp	w4, w3, [x0, #8]
Lloh0:
	adrp	x8, _DEFAULT_HW_GEN_TX_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_HW_GEN_TX_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DEFAULT_HW_GEN_MODULATION_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_HW_GEN_MODULATION_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_wl1251_acx_frame_rates
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_is_zero_ether_addr
	cbz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _CFG_BSSID_FILTER_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CFG_BSSID_FILTER_EN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_wl1251_cmd_join
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _JOIN_EVENT_COMPLETE_ID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _JOIN_EVENT_COMPLETE_ID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #100
	bl	_wl1251_event_wait
	mov	x24, x0
	tbz	w0, #31, LBB0_7
; %bb.5:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1251_warning
	b	LBB0_7
LBB0_6:
	mov	x24, x0
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_HW_GEN_TX_RATE,4,2     ; @DEFAULT_HW_GEN_TX_RATE
	.comm	_DEFAULT_HW_GEN_MODULATION_TYPE,4,2 ; @DEFAULT_HW_GEN_MODULATION_TYPE
	.comm	_CFG_BSSID_FILTER_EN,4,2        ; @CFG_BSSID_FILTER_EN
	.comm	_JOIN_EVENT_COMPLETE_ID,4,2     ; @JOIN_EVENT_COMPLETE_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"join timeout"

	.no_dead_strip	_wl1251_join
.subsections_via_symbols
