	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_pci_remove
_bnad_pci_remove:                       ## @bnad_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	%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, %r15
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r12
	leaq	28(%rax), %r13
	movq	_BNAD_RF_NETDEV_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r12), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_unregister_netdev
LBB0_3:
	leaq	4(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_bnad_ioceth_disable
	leaq	36(%r12), %rdi
	callq	_del_timer_sync
	leaq	32(%r12), %rdi
	callq	_del_timer_sync
	movq	%r13, %rdi
	callq	_del_timer_sync
	movq	%r12, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r13, %rdi
	callq	_bna_uninit
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	16(%r12), %rsi
	movq	_BNA_MOD_RES_T_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bnad_res_free
	movq	8(%r12), %rsi
	movq	_BNA_RES_T_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_bnad_res_free
	movq	%r12, %rdi
	callq	_bnad_mbox_irq_free
	movq	%r12, %rdi
	callq	_bnad_disable_msix
	movq	%r15, %rdi
	callq	_bnad_pci_uninit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_bnad_lock_uninit
	movl	(%r12), %edi
	callq	_kfree
	movq	%r12, %rdi
	callq	_bnad_debugfs_uninit
	movq	%r12, %rdi
	callq	_bnad_uninit
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNAD_RF_NETDEV_REGISTERED,4,2  ## @BNAD_RF_NETDEV_REGISTERED
	.comm	_BNA_MOD_RES_T_MAX,4,2          ## @BNA_MOD_RES_T_MAX
	.comm	_BNA_RES_T_MAX,4,2              ## @BNA_RES_T_MAX
	.no_dead_strip	_bnad_pci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_pci_remove
_bnad_pci_remove:                       ; @bnad_pci_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x0
	bl	_pci_get_drvdata
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	add	x23, x0, #28
Lloh0:
	adrp	x8, _BNAD_RF_NETDEV_REGISTERED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNAD_RF_NETDEV_REGISTERED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #40
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_unregister_netdev
LBB0_3:
	add	x22, x20, #4
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x20
	bl	_bnad_ioceth_disable
	add	x0, x20, #36
	bl	_del_timer_sync
	add	x0, x20, #32
	bl	_del_timer_sync
	mov	x0, x23
	bl	_del_timer_sync
	add	x24, x20, #24
	mov	x0, x24
	bl	_spin_lock_irqsave
	mov	x0, x23
	bl	_bna_uninit
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	ldr	x1, [x20, #16]
Lloh3:
	adrp	x8, _BNA_MOD_RES_T_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNA_MOD_RES_T_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bnad_res_free
	ldr	x1, [x20, #8]
Lloh6:
	adrp	x8, _BNA_RES_T_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNA_RES_T_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bnad_res_free
	mov	x0, x20
	bl	_bnad_mbox_irq_free
	mov	x0, x20
	bl	_bnad_disable_msix
	mov	x0, x21
	bl	_bnad_pci_uninit
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x20
	bl	_bnad_lock_uninit
	ldr	w0, [x20]
	bl	_kfree
	mov	x0, x20
	bl	_bnad_debugfs_uninit
	mov	x0, x20
	bl	_bnad_uninit
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free_netdev
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BNAD_RF_NETDEV_REGISTERED,4,2  ; @BNAD_RF_NETDEV_REGISTERED
	.comm	_BNA_MOD_RES_T_MAX,4,2          ; @BNA_MOD_RES_T_MAX
	.comm	_BNA_RES_T_MAX,4,2              ; @BNA_RES_T_MAX
	.no_dead_strip	_bnad_pci_remove
.subsections_via_symbols
