	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_wx_set_essid
_ipw2100_wx_set_essid:                  ## @ipw2100_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	%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
	movq	%rcx, %r12
	movq	%rdx, %r15
	callq	_libipw_priv
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_STATUS_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %r15
	testl	%edi, %edi
	cmovneq	%r12, %r15
	je	LBB0_4
## %bb.5:
	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(%rbx)
	movl	%eax, %r13d
	cmpl	%eax, 4(%rbx)
	jne	LBB0_8
## %bb.6:
	movl	12(%rbx), %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	movl	%r13d, 4(%rbx)
	movl	12(%rbx), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	movq	_CFG_STATIC_ESSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
LBB0_9:
	xorl	%ecx, %ecx
	callq	_ipw2100_set_essid
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IPW_DEBUG_WX
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_STATUS_INITIALIZED,4,2         ## @STATUS_INITIALIZED
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.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
L_.str.2:                               ## @.str.2
	.asciz	"ESSID set to current ESSID.\n"

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

	.no_dead_strip	_ipw2100_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 ipw2100_wx_set_essid
_ipw2100_wx_set_essid:                  ; @ipw2100_wx_set_essid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x22, x2
	bl	_libipw_priv
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _STATUS_INITIALIZED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_INITIALIZED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	w0, [x22]
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	cmp	w0, #0
	csel	x22, x8, x21, eq
	cbz	w0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_min
	mov	x23, x0
Lloh8:
	adrp	x8, _CFG_STATIC_ESSID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CFG_STATIC_ESSID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	str	w8, [x20, #16]
	ldr	w8, [x20, #4]
	cmp	w8, w0
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x20, #12]
	mov	x1, x21
	mov	x2, x23
	bl	_memcmp
	cbz	w0, LBB0_10
LBB0_5:
	stp	x22, x23, [sp, #8]
	str	x23, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG_WX
	str	w23, [x20, #4]
	ldr	w0, [x20, #12]
	mov	x1, x22
	mov	x2, x23
	bl	_memcpy
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_WX
Lloh15:
	adrp	x8, _CFG_STATIC_ESSID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFG_STATIC_ESSID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	bic	w8, w9, w8
	str	w8, [x20, #16]
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
LBB0_7:
	mov	w3, #0
	bl	_ipw2100_set_essid
	mov	x20, x0
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG_WX
	mov	w20, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_STATUS_INITIALIZED,4,2         ; @STATUS_INITIALIZED
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.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
l_.str.2:                               ; @.str.2
	.asciz	"ESSID set to current ESSID.\n"

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

	.no_dead_strip	_ipw2100_wx_set_essid
.subsections_via_symbols
