	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_down
_ipw_down:                              ## @ipw_down
	.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	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	_STATUS_EXIT_PENDING@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movl	%r12d, %eax
	orl	%r15d, %eax
	movl	%eax, (%rdi)
	callq	_ipw_is_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_ipw_deinit
LBB0_2:
	testl	%r15d, %r12d
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_ipw_disable_interrupts
	movq	_STATUS_RF_KILL_MASK@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	orl	(%rax), %ecx
	andl	%ecx, (%rbx)
	movl	4(%rbx), %edi
	callq	_netif_carrier_off
	movq	%rbx, %rdi
	callq	_ipw_stop_nic
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipw_led_radio_off              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_EXIT_PENDING,4,2        ## @STATUS_EXIT_PENDING
	.comm	_STATUS_RF_KILL_MASK,4,2        ## @STATUS_RF_KILL_MASK
	.no_dead_strip	_ipw_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_down
_ipw_down:                              ; @ipw_down
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x20, _STATUS_EXIT_PENDING@GOTPAGE
Lloh1:
	ldr	x20, [x20, _STATUS_EXIT_PENDING@GOTPAGEOFF]
	ldr	w9, [x20]
	and	w21, w9, w8
	orr	w8, w9, w8
	str	w8, [x0]
	bl	_ipw_is_init
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_ipw_deinit
LBB0_2:
	cbnz	w21, LBB0_4
; %bb.3:
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	mov	x0, x19
	bl	_ipw_disable_interrupts
Lloh2:
	adrp	x8, _STATUS_RF_KILL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _STATUS_RF_KILL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	ldp	w9, w0, [x19]
	and	w8, w9, w8
	str	w8, [x19]
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_ipw_stop_nic
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ipw_led_radio_off
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_EXIT_PENDING,4,2        ; @STATUS_EXIT_PENDING
	.comm	_STATUS_RF_KILL_MASK,4,2        ; @STATUS_RF_KILL_MASK
	.no_dead_strip	_ipw_down
.subsections_via_symbols
