	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_pci_remove
_ath_pci_remove:                        ## @ath_pci_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_pci_get_drvdata
	movq	(%rax), %rbx
	movq	_is_ath9k_unloaded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_AH_UNPLUGGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	orl	%eax, (%rcx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_ath9k_deinit_device
	movl	4(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ieee80211_free_hw              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_is_ath9k_unloaded,4,2          ## @is_ath9k_unloaded
	.comm	_AH_UNPLUGGED,4,2               ## @AH_UNPLUGGED
	.no_dead_strip	_ath_pci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_pci_remove
_ath_pci_remove:                        ; @ath_pci_remove
	.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
	bl	_pci_get_drvdata
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _is_ath9k_unloaded@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_ath9k_unloaded@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AH_UNPLUGGED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AH_UNPLUGGED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_2:
	mov	x0, x19
	bl	_ath9k_deinit_device
	ldr	w0, [x19, #4]
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ieee80211_free_hw
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_is_ath9k_unloaded,4,2          ; @is_ath9k_unloaded
	.comm	_AH_UNPLUGGED,4,2               ; @AH_UNPLUGGED
	.no_dead_strip	_ath_pci_remove
.subsections_via_symbols
