	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wx_get_essid
_ipw_wx_get_essid:                      ## @ipw_wx_get_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, %r14
	callq	_libipw_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_CFG_STATIC_ESSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_STATUS_ASSOCIATED@GOTPCREL(%rip), %rax
	movq	_STATUS_ASSOCIATING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_3
LBB0_2:
	movl	12(%rbx), %esi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_memcpy
	movl	12(%rbx), %ebx
	movl	$1, %eax
LBB0_4:
	movl	%ebx, 4(%r14)
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	xorl	%eax, %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_CFG_STATIC_ESSID,4,2           ## @CFG_STATIC_ESSID
	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
	.comm	_STATUS_ASSOCIATING,4,2         ## @STATUS_ASSOCIATING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Getting essid: '%*pE'\n"

L_.str.1:                               ## @.str.1
	.asciz	"Getting essid: ANY\n"

	.no_dead_strip	_ipw_wx_get_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_get_essid
_ipw_wx_get_essid:                      ; @ipw_wx_get_essid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	bl	_libipw_priv
	mov	x22, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _CFG_STATIC_ESSID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CFG_STATIC_ESSID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x22, #4]
Lloh3:
	adrp	x9, _STATUS_ASSOCIATED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS_ASSOCIATED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _STATUS_ASSOCIATING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _STATUS_ASSOCIATING@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
LBB0_2:
	ldp	w8, w9, [x22, #12]
	stp	x8, x9, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_WX
	ldp	w2, w1, [x22, #12]
	mov	x0, x21
	bl	_memcpy
	ldr	w8, [x22, #12]
	mov	w9, #1
LBB0_3:
	stp	w9, w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	w8, #0
	mov	w9, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CFG_STATIC_ESSID,4,2           ; @CFG_STATIC_ESSID
	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
	.comm	_STATUS_ASSOCIATING,4,2         ; @STATUS_ASSOCIATING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Getting essid: '%*pE'\n"

l_.str.1:                               ; @.str.1
	.asciz	"Getting essid: ANY\n"

	.no_dead_strip	_ipw_wx_get_essid
.subsections_via_symbols
