	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1201_join
_zd1201_join:                           ## @zd1201_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	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	addl	$2, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rdi
	callq	_zd1201_disable
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	_ZD1201_CNFAUTHENTICATION_OPENSYSTEM@GOTPCREL(%rip), %rax
	movq	_ZD1201_CNFAUTHENTICATION_SHAREDKEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_ZD1201_RID_CNFAUTHENTICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_zd1201_setconfig16
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movl	%eax, (%r14)
	movq	%r14, %rdi
	addq	$2, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	cmpl	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movq	_ZD1201_RID_CNFOWNSSID@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_ZD1201_RID_CNFDESIREDSSID@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movl	(%r13), %ecx
	addl	$2, %ecx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	$1, %r8d
	callq	_zd1201_setconfig
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	_ZD1201_RID_CNFOWNMACADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	movl	8(%rax), %ecx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_zd1201_setconfig
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_zd1201_enable
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$100, %edi
	callq	_msleep
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ## @IW_ESSID_MAX_SIZE
	.comm	_ZD1201_CNFAUTHENTICATION_OPENSYSTEM,4,2 ## @ZD1201_CNFAUTHENTICATION_OPENSYSTEM
	.comm	_ZD1201_CNFAUTHENTICATION_SHAREDKEY,4,2 ## @ZD1201_CNFAUTHENTICATION_SHAREDKEY
	.comm	_ZD1201_RID_CNFAUTHENTICATION,4,2 ## @ZD1201_RID_CNFAUTHENTICATION
	.comm	_ZD1201_RID_CNFDESIREDSSID,4,2  ## @ZD1201_RID_CNFDESIREDSSID
	.comm	_ZD1201_RID_CNFOWNSSID,4,2      ## @ZD1201_RID_CNFOWNSSID
	.comm	_ZD1201_RID_CNFOWNMACADDR,4,2   ## @ZD1201_RID_CNFOWNMACADDR
	.no_dead_strip	_zd1201_join
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1201_join
_zd1201_join:                           ; @zd1201_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
	sub	sp, sp, #16
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	bl	_zd1201_disable
	cbnz	w0, LBB0_9
; %bb.1:
Lloh7:
	adrp	x8, _ZD1201_CNFAUTHENTICATION_OPENSYSTEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZD1201_CNFAUTHENTICATION_OPENSYSTEM@GOTPAGEOFF]
Lloh9:
	adrp	x9, _ZD1201_CNFAUTHENTICATION_SHAREDKEY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ZD1201_CNFAUTHENTICATION_SHAREDKEY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh13:
	adrp	x8, _ZD1201_RID_CNFAUTHENTICATION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZD1201_RID_CNFAUTHENTICATION@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_zd1201_setconfig16
	cbnz	w0, LBB0_9
; %bb.2:
	mov	x0, x21
	bl	_cpu_to_le16
	mov	x8, x20
	str	w0, [x8], #2
	mov	x0, x8
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _ZD1201_RID_CNFOWNSSID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZD1201_RID_CNFOWNSSID@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _ZD1201_RID_CNFDESIREDSSID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ZD1201_RID_CNFDESIREDSSID@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	ldr	w8, [x23]
	add	w3, w8, #2
	mov	x0, x19
	mov	x2, x20
	mov	w4, #1
	bl	_zd1201_setconfig
	cbnz	w0, LBB0_9
; %bb.6:
Lloh20:
	adrp	x8, _ZD1201_RID_CNFOWNMACADDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ZD1201_RID_CNFOWNMACADDR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x2, [x8]
	ldr	w3, [x8, #8]
	mov	x0, x19
	mov	w4, #1
	bl	_zd1201_setconfig
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_zd1201_enable
	cbnz	w0, LBB0_9
; %bb.8:
	mov	w0, #100
	bl	_msleep
	mov	w0, #0
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.comm	_ZD1201_CNFAUTHENTICATION_OPENSYSTEM,4,2 ; @ZD1201_CNFAUTHENTICATION_OPENSYSTEM
	.comm	_ZD1201_CNFAUTHENTICATION_SHAREDKEY,4,2 ; @ZD1201_CNFAUTHENTICATION_SHAREDKEY
	.comm	_ZD1201_RID_CNFAUTHENTICATION,4,2 ; @ZD1201_RID_CNFAUTHENTICATION
	.comm	_ZD1201_RID_CNFDESIREDSSID,4,2  ; @ZD1201_RID_CNFDESIREDSSID
	.comm	_ZD1201_RID_CNFOWNSSID,4,2      ; @ZD1201_RID_CNFOWNSSID
	.comm	_ZD1201_RID_CNFOWNMACADDR,4,2   ; @ZD1201_RID_CNFOWNMACADDR
	.no_dead_strip	_zd1201_join
.subsections_via_symbols
