	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bnxt_close_nic
___bnxt_close_nic:                      ## @__bnxt_close_nic
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_BNXT_PF
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_bnxt_vf_reps_close
LBB0_2:
	movq	%rbx, %rdi
	callq	_bnxt_tx_disable
	movq	_BNXT_STATE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %r15
	movq	%r15, %rsi
	callq	_clear_bit
	xorl	%eax, %eax
	callq	_smp_mb__after_atomic
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_bnxt_drv_busy
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$20, %edi
	callq	_msleep
	jmp	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_bnxt_shutdown_nic
	movq	%rbx, %rdi
	callq	_bnxt_debug_dev_exit
	movq	%rbx, %rdi
	callq	_bnxt_disable_napi
	leaq	24(%rbx), %rdi
	callq	_del_timer_sync
	movq	_BNXT_STATE_IN_FW_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	16(%rbx), %edi
	callq	_pci_is_enabled
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	16(%rbx), %edi
	callq	_pci_disable_device
LBB0_8:
	movq	%rbx, %rdi
	callq	_bnxt_free_skbs
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_bnxt_get_ring_stats
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_bnxt_free_irq
	movq	%rbx, %rdi
	callq	_bnxt_del_napi
LBB0_12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnxt_free_mem                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_STATE_OPEN,4,2            ## @BNXT_STATE_OPEN
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ## @BNXT_STATE_IN_FW_RESET
	.no_dead_strip	___bnxt_close_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bnxt_close_nic
___bnxt_close_nic:                      ; @__bnxt_close_nic
	.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, x1
	mov	x20, x0
	bl	_BNXT_PF
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_bnxt_vf_reps_close
LBB0_2:
	mov	x0, x20
	bl	_bnxt_tx_disable
Lloh0:
	adrp	x8, _BNXT_STATE_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_STATE_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x20, #20
	mov	x1, x21
	bl	_clear_bit
	bl	_smp_mb__after_atomic
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_bnxt_drv_busy
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #20
	bl	_msleep
	b	LBB0_3
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_shutdown_nic
	mov	x0, x20
	bl	_bnxt_debug_dev_exit
	mov	x0, x20
	bl	_bnxt_disable_napi
	add	x0, x20, #24
	bl	_del_timer_sync
Lloh3:
	adrp	x8, _BNXT_STATE_IN_FW_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BNXT_STATE_IN_FW_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w0, [x20, #16]
	bl	_pci_is_enabled
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x20, #16]
	bl	_pci_disable_device
LBB0_8:
	mov	x0, x20
	bl	_bnxt_free_skbs
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x20
	bl	_bnxt_get_ring_stats
LBB0_10:
	cbz	w19, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_bnxt_free_irq
	mov	x0, x20
	bl	_bnxt_del_napi
LBB0_12:
	mov	x0, x20
	mov	x1, 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	_bnxt_free_mem
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_STATE_OPEN,4,2            ; @BNXT_STATE_OPEN
	.comm	_BNXT_STATE_IN_FW_RESET,4,2     ; @BNXT_STATE_IN_FW_RESET
	.no_dead_strip	___bnxt_close_nic
.subsections_via_symbols
