	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wx_set_essid
_ipw_wx_set_essid:                      ## @ipw_wx_set_essid
	.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	%rcx, %r15
	movq	%rdx, %rbx
	callq	_libipw_priv
	movq	%rax, %r12
	movq	%rax, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	_CFG_STATIC_ESSID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%r12)
	movl	%eax, %ebx
	cmpl	%eax, (%r12)
	jne	LBB0_6
## %bb.3:
	movl	12(%r12), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	movl	%ebx, (%r12)
	movl	12(%r12), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	leaq	L_.str.3(%rip), %rdi
	callq	_IPW_DEBUG_ASSOC
	movq	%r12, %rdi
	callq	_ipw_disassociate
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	movq	%r12, %rdi
	callq	_ipw_disassociate
	movq	_CFG_STATIC_ESSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%r12)
LBB0_7:
	movq	%r12, %rdi
	callq	_ipw_associate
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_STATUS_ASSOCIATED@GOTPCREL(%rip), %rax
	movq	_STATUS_ASSOCIATING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 4(%r12)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting ESSID to ANY\n"

	.comm	_CFG_STATIC_ESSID,4,2           ## @CFG_STATIC_ESSID
	.comm	_IW_ESSID_MAX_SIZE,4,2          ## @IW_ESSID_MAX_SIZE
	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
	.comm	_STATUS_ASSOCIATING,4,2         ## @STATUS_ASSOCIATING
L_.str.1:                               ## @.str.1
	.asciz	"ESSID set to current ESSID.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Setting ESSID: '%*pE' (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"[re]association triggered due to ESSID change.\n"

	.no_dead_strip	_ipw_wx_set_essid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_wx_set_essid
_ipw_wx_set_essid:                      ; @ipw_wx_set_essid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x3
	mov	x22, x2
	bl	_libipw_priv
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w0, [x22]
Lloh0:
	adrp	x8, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_min
	mov	x22, x0
Lloh3:
	adrp	x8, _CFG_STATIC_ESSID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFG_STATIC_ESSID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	ldr	w8, [x20]
	cmp	w8, w0
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	x2, x22
	bl	_memcmp
	cbz	w0, LBB0_7
LBB0_3:
	stp	x21, x22, [sp, #8]
	str	x22, [sp]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG_WX
	str	w22, [x20]
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG_ASSOC
	mov	x0, x20
	bl	_ipw_disassociate
	cbnz	w0, LBB0_6
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	x0, x20
	bl	_ipw_disassociate
Lloh12:
	adrp	x8, _CFG_STATIC_ESSID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CFG_STATIC_ESSID@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	bic	w8, w9, w8
	str	w8, [x20, #16]
LBB0_5:
	mov	x0, x20
	bl	_ipw_associate
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	w8, [x20, #4]
Lloh15:
	adrp	x9, _STATUS_ASSOCIATED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _STATUS_ASSOCIATED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _STATUS_ASSOCIATING@GOTPAGE
Lloh19:
	ldr	x10, [x10, _STATUS_ASSOCIATING@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_3
; %bb.8:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_WX
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting ESSID to ANY\n"

	.comm	_CFG_STATIC_ESSID,4,2           ; @CFG_STATIC_ESSID
	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
	.comm	_STATUS_ASSOCIATING,4,2         ; @STATUS_ASSOCIATING
l_.str.1:                               ; @.str.1
	.asciz	"ESSID set to current ESSID.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Setting ESSID: '%*pE' (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"[re]association triggered due to ESSID change.\n"

	.no_dead_strip	_ipw_wx_set_essid
.subsections_via_symbols
