	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_deinit
_ipw_deinit:                            ## @ipw_deinit
	.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	%rdi, %r12
	movl	(%rdi), %eax
	movq	_STATUS_SCANNING@GOTPCREL(%rip), %r14
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	movq	%r12, %rdi
	callq	_ipw_abort_scan
	movl	(%r12), %eax
LBB0_2:
	movq	_STATUS_ASSOCIATED@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	movq	%r12, %rdi
	callq	_ipw_disassociate
LBB0_4:
	movq	%r12, %rdi
	callq	_ipw_led_shutdown
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	_STATUS_DISASSOCIATING@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	orl	(%r13), %eax
	movl	(%r12), %ecx
	orl	(%r14), %eax
	testl	%ecx, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$10, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_5
## %bb.7:
	movl	(%r15), %eax
	orl	(%r13), %eax
	movl	(%r12), %ecx
	orl	(%r14), %eax
	xorl	%ebx, %ebx
LBB0_8:
	testl	%ecx, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	jmp	LBB0_11
LBB0_10:
	movl	$1000, %esi                     ## imm = 0x3E8
	subl	%ebx, %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
LBB0_11:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ipw_send_card_disable
	movq	_STATUS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_SCANNING,4,2            ## @STATUS_SCANNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Aborting scan during shutdown.\n"

	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
L_.str.1:                               ## @.str.1
	.asciz	"Disassociating during shutdown.\n"

	.comm	_STATUS_DISASSOCIATING,4,2      ## @STATUS_DISASSOCIATING
L_.str.2:                               ## @.str.2
	.asciz	"Still associated or scanning...\n"

L_.str.3:                               ## @.str.3
	.asciz	"Took %dms to de-init\n"

	.comm	_STATUS_INIT,4,2                ## @STATUS_INIT
	.no_dead_strip	_ipw_deinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_deinit
_ipw_deinit:                            ; @ipw_deinit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _STATUS_SCANNING@GOTPAGE
Lloh1:
	ldr	x20, [x20, _STATUS_SCANNING@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_INFO
	mov	x0, x19
	bl	_ipw_abort_scan
	ldr	w8, [x19]
LBB0_2:
Lloh4:
	adrp	x22, _STATUS_ASSOCIATED@GOTPAGE
Lloh5:
	ldr	x22, [x22, _STATUS_ASSOCIATED@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_INFO
	mov	x0, x19
	bl	_ipw_disassociate
LBB0_4:
	mov	x0, x19
	bl	_ipw_led_shutdown
	mov	w21, #1000
Lloh8:
	adrp	x23, _STATUS_DISASSOCIATING@GOTPAGE
Lloh9:
	ldr	x23, [x23, _STATUS_DISASSOCIATING@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x23]
	ldr	w10, [x22]
	orr	w9, w10, w9
	ldr	w10, [x20]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #10
	bl	_udelay
	subs	w21, w21, #1
	b.ne	LBB0_5
; %bb.7:
	ldr	w8, [x19]
	ldr	w9, [x23]
	ldr	w10, [x22]
	ldr	w11, [x20]
	orr	w9, w10, w9
	orr	w9, w9, w11
LBB0_8:
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	w8, #1000
	sub	w8, w8, w21
	str	x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_IPW_DEBUG_INFO
	mov	x0, x19
	mov	w1, #0
	bl	_ipw_send_card_disable
Lloh14:
	adrp	x8, _STATUS_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STATUS_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_SCANNING,4,2            ; @STATUS_SCANNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Aborting scan during shutdown.\n"

	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
l_.str.1:                               ; @.str.1
	.asciz	"Disassociating during shutdown.\n"

	.comm	_STATUS_DISASSOCIATING,4,2      ; @STATUS_DISASSOCIATING
l_.str.2:                               ; @.str.2
	.asciz	"Still associated or scanning...\n"

l_.str.3:                               ; @.str.3
	.asciz	"Took %dms to de-init\n"

	.comm	_STATUS_INIT,4,2                ; @STATUS_INIT
	.no_dead_strip	_ipw_deinit
.subsections_via_symbols
