	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_wireless_core_exit
_b43_wireless_core_exit:                ## @b43_wireless_core_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	callq	_b43_status
	movq	_B43_STAT_INITIALIZED@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setg	%dil
	callq	_B43_WARN_ON
	movq	%rbx, %rdi
	callq	_b43_status
	cmpq	(%r14), %rax
	jne	LBB0_6
## %bb.2:
	movq	_B43_STAT_UNINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_b43_set_status
	movq	_B43_MMIO_MACCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_MACCTL_PSM_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	_B43_MACCTL_PSM_JMP0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_b43_maskset32
	movq	%rbx, %rdi
	callq	_b43_dma_free
	movq	%rbx, %rdi
	callq	_b43_pio_free
	movq	%rbx, %rdi
	callq	_b43_chip_exit
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_dev_kfree_skb_any
	movq	(%rbx), %rax
	movq	$0, (%rax)
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_b43_device_disable
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_bus_may_powerdown          ## TAILCALL
LBB0_5:
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_B43_WARN_ON                    ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_STAT_INITIALIZED,8,3       ## @B43_STAT_INITIALIZED
	.comm	_B43_STAT_UNINIT,4,2            ## @B43_STAT_UNINIT
	.comm	_B43_MMIO_MACCTL,4,2            ## @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_PSM_RUN,4,2         ## @B43_MACCTL_PSM_RUN
	.comm	_B43_MACCTL_PSM_JMP0,4,2        ## @B43_MACCTL_PSM_JMP0
	.no_dead_strip	_b43_wireless_core_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_wireless_core_exit
_b43_wireless_core_exit:                ; @b43_wireless_core_exit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_b43_status
Lloh0:
	adrp	x20, _B43_STAT_INITIALIZED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _B43_STAT_INITIALIZED@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, gt
	bl	_B43_WARN_ON
	mov	x0, x19
	bl	_b43_status
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _B43_STAT_UNINIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43_STAT_UNINIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_set_status
Lloh5:
	adrp	x8, _B43_MMIO_MACCTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_MMIO_MACCTL@GOTPAGEOFF]
Lloh7:
	adrp	x9, _B43_MACCTL_PSM_RUN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _B43_MACCTL_PSM_RUN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w8, [x9]
	mvn	w2, w8
Lloh11:
	adrp	x8, _B43_MACCTL_PSM_JMP0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43_MACCTL_PSM_JMP0@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_b43_maskset32
	mov	x0, x19
	bl	_b43_dma_free
	mov	x0, x19
	bl	_b43_pio_free
	mov	x0, x19
	bl	_b43_chip_exit
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x19]
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_dev_kfree_skb_any
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_b43_device_disable
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_bus_may_powerdown
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_B43_WARN_ON
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_STAT_INITIALIZED,8,3       ; @B43_STAT_INITIALIZED
	.comm	_B43_STAT_UNINIT,4,2            ; @B43_STAT_UNINIT
	.comm	_B43_MMIO_MACCTL,4,2            ; @B43_MMIO_MACCTL
	.comm	_B43_MACCTL_PSM_RUN,4,2         ; @B43_MACCTL_PSM_RUN
	.comm	_B43_MACCTL_PSM_JMP0,4,2        ; @B43_MACCTL_PSM_JMP0
	.no_dead_strip	_b43_wireless_core_exit
.subsections_via_symbols
