	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_remove_one
_bnxt_remove_one:                       ## @bnxt_remove_one
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_BNXT_PF
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_bnxt_sriov_disable
	movq	%rbx, %rdi
	callq	_bnxt_dl_unregister
LBB0_2:
	movq	%r15, %rdi
	callq	_pci_disable_pcie_error_reporting
	movq	%r14, %rdi
	callq	_unregister_netdev
	movq	%rbx, %rdi
	callq	_bnxt_shutdown_tc
	movq	%rbx, %rdi
	callq	_bnxt_cancel_sp_work
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_bnxt_clear_int_mode
	movq	%rbx, %rdi
	callq	_bnxt_hwrm_func_drv_unrgtr
	movq	%rbx, %rdi
	callq	_bnxt_free_hwrm_resources
	movq	%rbx, %rdi
	callq	_bnxt_free_hwrm_short_cmd_req
	movq	%rbx, %rdi
	callq	_bnxt_ethtool_free
	movq	%rbx, %rdi
	callq	_bnxt_dcb_free
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_bnxt_cleanup_pci
	movq	%rbx, %rdi
	callq	_bnxt_free_ctx_mem
	movq	(%rbx), %rdi
	callq	_kfree
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_bnxt_free_port_stats
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_netdev                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bnxt_remove_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_remove_one
_bnxt_remove_one:                       ; @bnxt_remove_one
	.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	x21, x0
	bl	_pci_get_drvdata
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	bl	_BNXT_PF
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_bnxt_sriov_disable
	mov	x0, x20
	bl	_bnxt_dl_unregister
LBB0_2:
	mov	x0, x21
	bl	_pci_disable_pcie_error_reporting
	mov	x0, x19
	bl	_unregister_netdev
	mov	x0, x20
	bl	_bnxt_shutdown_tc
	mov	x0, x20
	bl	_bnxt_cancel_sp_work
	str	xzr, [x20, #16]
	mov	x0, x20
	bl	_bnxt_clear_int_mode
	mov	x0, x20
	bl	_bnxt_hwrm_func_drv_unrgtr
	mov	x0, x20
	bl	_bnxt_free_hwrm_resources
	mov	x0, x20
	bl	_bnxt_free_hwrm_short_cmd_req
	mov	x0, x20
	bl	_bnxt_ethtool_free
	mov	x0, x20
	bl	_bnxt_dcb_free
	ldr	x0, [x20, #8]
	bl	_kfree
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_bnxt_cleanup_pci
	mov	x0, x20
	bl	_bnxt_free_ctx_mem
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
	mov	x0, x20
	bl	_bnxt_free_port_stats
	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	_free_netdev
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bnxt_remove_one
.subsections_via_symbols
