	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_set_essid
_ipw2100_set_essid:                     ## @ipw2100_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %edi
	callq	_min
	movl	%eax, %r13d
	movl	%eax, -64(%rbp)
	movq	$0, -56(%rbp)
	movl	$0, -48(%rbp)
	movq	_SSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_IPW_DEBUG_HC
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_2:
	testl	%r14d, %r14d
	je	LBB0_3
LBB0_4:
	testl	%r13d, %r13d
	jne	LBB0_17
## %bb.5:
	movq	_CFG_ASSOCIATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_17
## %bb.6:
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_16
## %bb.7:
	cmpl	$8, %eax
	jae	LBB0_9
## %bb.8:
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_3:
	movq	%r12, %rdi
	callq	_ipw2100_disable_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_4
LBB0_9:
	movq	%rax, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$7, %edx
	cmpq	$56, %rdi
	jb	LBB0_12
## %bb.10:
	andq	$-8, %rsi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addq	$-8, %rsi
	jne	LBB0_11
LBB0_12:
	testq	%rdx, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	decq	%rdx
	jne	LBB0_13
LBB0_14:
	cmpq	%rax, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	incq	%rcx
	cmpq	%rax, %rcx
	jl	LBB0_15
LBB0_16:
	movl	%eax, -64(%rbp)
LBB0_17:
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ipw2100_hw_send_command
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	testl	%r14d, %r14d
	jne	LBB0_22
	jmp	LBB0_20
LBB0_18:
	movslq	%r13d, %rdi
	addq	8(%r12), %rdi
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	%r13d, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r12), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	%r13d, 4(%r12)
	testl	%r14d, %r14d
	jne	LBB0_22
LBB0_20:
	movq	%r12, %rdi
	callq	_ipw2100_enable_adapter
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ## @IW_ESSID_MAX_SIZE
	.comm	_SSID,4,2                       ## @SSID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SSID: '%*pE'\n"

	.comm	_CFG_ASSOCIATE,4,2              ## @CFG_ASSOCIATE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ipw2100_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_set_essid
_ipw2100_set_essid:                     ; @ipw2100_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	x20, x3
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x2
	bl	_min
	mov	x22, x0
	str	w0, [sp, #8]
	str	xzr, [sp, #16]
Lloh2:
	adrp	x8, _SSID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SSID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #24]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_IPW_DEBUG_HC
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, #0
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
LBB0_2:
	cbz	w20, LBB0_8
LBB0_3:
	cbnz	w22, LBB0_14
; %bb.4:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _CFG_ASSOCIATE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CFG_ASSOCIATE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.5:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.6:
	sxtw	x9, w8
	cmp	w8, #16
	b.hs	LBB0_9
; %bb.7:
	mov	x10, #0
	b	LBB0_12
LBB0_8:
	mov	x0, x19
	bl	_ipw2100_disable_adapter
	mov	x23, x0
	cbnz	w0, LBB0_19
	b	LBB0_3
LBB0_9:
	and	x10, x9, #0xfffffffffffffff0
	mov	x11, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	subs	x11, x11, #16
	b.ne	LBB0_10
; %bb.11:
	cmp	x10, x9
	b.eq	LBB0_13
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x10, x10, #1
	cmp	x10, x9
	b.lt	LBB0_12
LBB0_13:
	str	w8, [sp, #8]
LBB0_14:
	add	x1, sp, #8
	mov	x0, x19
	bl	_ipw2100_hw_send_command
	mov	x23, x0
	cbz	w0, LBB0_16
; %bb.15:
	cbnz	w20, LBB0_19
	b	LBB0_17
LBB0_16:
	ldr	x8, [x19, #8]
	add	x0, x8, w22, sxtw
	ldr	w8, [x24]
	sub	w2, w8, w22
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	str	w22, [x19, #4]
	cbnz	w20, LBB0_19
LBB0_17:
	mov	x0, x19
	bl	_ipw2100_enable_adapter
	cbz	x0, LBB0_19
; %bb.18:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_19:
	mov	x0, x23
	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
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.comm	_SSID,4,2                       ; @SSID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SSID: '%*pE'\n"

	.comm	_CFG_ASSOCIATE,4,2              ; @CFG_ASSOCIATE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ipw2100_set_essid
.subsections_via_symbols
