	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_stop_hw
_cnic_stop_hw:                          ## @cnic_stop_hw
	.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
	movq	_CNIC_F_CNIC_UP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	4(%r15), %r14
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	8(%r15), %r13
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, (%rax)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$14, %ebx
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$100, %edi
	callq	_msleep
	incl	%ebx
	movq	32(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	movq	%r15, %rdi
	callq	_cnic_shutdown_rings
	movq	%r15, %rdi
	callq	*24(%r13)
	movq	_CNIC_DRV_STATE_HANDLES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	16(%r13), %rcx
	andl	%eax, (%rcx)
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	8(%r13), %rax
	movq	_CNIC_ULP_L4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	xorl	%esi, %esi
	callq	_rcu_assign_pointer
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	%r15, %rdi
	callq	_cnic_cm_shutdown
	movq	%r15, %rdi
	callq	*(%r13)
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_dev_put                    ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CNIC_F_CNIC_UP,4,2             ## @CNIC_F_CNIC_UP
	.comm	_CNIC_DRV_STATE_HANDLES_IRQ,4,2 ## @CNIC_DRV_STATE_HANDLES_IRQ
	.comm	_CNIC_ULP_L4,8,3                ## @CNIC_ULP_L4
	.no_dead_strip	_cnic_stop_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_stop_hw
_cnic_stop_hw:                          ; @cnic_stop_hw
	.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	x19, x0
Lloh0:
	adrp	x22, _CNIC_F_CNIC_UP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CNIC_F_CNIC_UP@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x21, [x19, #8]
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_5
; %bb.2:
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x8]
	cmn	w8, #1
	ccmp	w23, #14, #2, ne
	b.hi	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #100
	bl	_msleep
	add	w23, w23, #1
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_3
LBB0_5:
	mov	x0, x19
	bl	_cnic_shutdown_rings
	ldr	x8, [x21, #24]
	mov	x0, x19
	blr	x8
Lloh2:
	adrp	x8, _CNIC_DRV_STATE_HANDLES_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CNIC_DRV_STATE_HANDLES_IRQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x21, #16]
	ldr	w10, [x9]
	bic	w8, w10, w8
	str	w8, [x9]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
	ldr	x8, [x21, #8]
Lloh5:
	adrp	x9, _CNIC_ULP_L4@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CNIC_ULP_L4@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, #0
	bl	_rcu_assign_pointer
	bl	_synchronize_rcu
	mov	x0, x19
	bl	_cnic_cm_shutdown
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	ldr	w0, [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	_pci_dev_put
LBB0_6:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CNIC_F_CNIC_UP,4,2             ; @CNIC_F_CNIC_UP
	.comm	_CNIC_DRV_STATE_HANDLES_IRQ,4,2 ; @CNIC_DRV_STATE_HANDLES_IRQ
	.comm	_CNIC_ULP_L4,8,3                ; @CNIC_ULP_L4
	.no_dead_strip	_cnic_stop_hw
.subsections_via_symbols
