	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw2100_enable_adapter
_ipw2100_enable_adapter:                ## @ipw2100_enable_adapter
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	movq	_HOST_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_IPW_DEBUG_HC
	movq	_STATUS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, (%rbx)
	jne	LBB0_10
## %bb.1:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_rf_kill_active
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_HC
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_3:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ipw2100_hw_send_command
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	jmp	LBB0_9
LBB0_5:
	movq	_IPW_HW_STATE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipw2100_wait_for_card_state
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.8:
	movq	$0, 16(%rbx)
	addq	$8, %rbx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	movq	%rbx, %rdi
	callq	_schedule_delayed_work
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_COMPLETE,4,2              ## @HOST_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOST_COMPLETE\n"

	.comm	_STATUS_ENABLED,4,2             ## @STATUS_ENABLED
L_.str.1:                               ## @.str.1
	.asciz	"Command aborted due to RF kill active.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to send HOST_COMPLETE command\n"

	.comm	_IPW_HW_STATE_ENABLED,4,2       ## @IPW_HW_STATE_ENABLED
L_.str.3:                               ## @.str.3
	.asciz	"%s: card not responding to init command.\n"

	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_ipw2100_enable_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw2100_enable_adapter
_ipw2100_enable_adapter:                ; @ipw2100_enable_adapter
	.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	x20, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _HOST_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HOST_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_HC
	mov	w21, #0
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _STATUS_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _STATUS_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.1:
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_rf_kill_active
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_HC
LBB0_3:
	mov	w21, #0
	b	LBB0_9
LBB0_4:
	add	x1, sp, #16
	mov	x0, x20
	bl	_ipw2100_hw_send_command
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _IPW_HW_STATE_ENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPW_HW_STATE_ENABLED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ipw2100_wait_for_card_state
	cbz	w0, LBB0_11
; %bb.7:
	mov	x21, x0
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	bl	_IPW_DEBUG_INFO
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_10:
	mov	x0, x21
	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_11:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_3
; %bb.12:
	str	xzr, [x20, #16]
	add	x0, x20, #8
Lloh17:
	adrp	x8, _HZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	bl	_schedule_delayed_work
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_COMPLETE,4,2              ; @HOST_COMPLETE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOST_COMPLETE\n"

	.comm	_STATUS_ENABLED,4,2             ; @STATUS_ENABLED
l_.str.1:                               ; @.str.1
	.asciz	"Command aborted due to RF kill active.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to send HOST_COMPLETE command\n"

	.comm	_IPW_HW_STATE_ENABLED,4,2       ; @IPW_HW_STATE_ENABLED
l_.str.3:                               ; @.str.3
	.asciz	"%s: card not responding to init command.\n"

	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_ipw2100_enable_adapter
.subsections_via_symbols
