	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_bnx2x_destroy_ramrod
_cnic_bnx2x_destroy_ramrod:             ## @cnic_bnx2x_destroy_ramrod
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	(%rdi), %edi
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%r15), %r13
	leaq	(%r14,%r14,2), %r14
	leaq	16(,%r14,8), %r15
	addq	%r13, %r15
	movq	%r15, %rdi
	callq	_init_waitqueue_head
	movq	$0, 8(%r13,%r14,8)
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	20(%r13,%r14,8), %esi
	movq	%r12, %rdi
	callq	_BNX2X_HW_CID
	movq	_RAMROD_CMD_ID_COMMON_CFC_DEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_NONE_CONNECTION_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	leaq	-48(%rbp), %r8
	callq	_cnic_submit_kwqe_16
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	leaq	8(,%r14,8), %rax
	addq	%r13, %rax
	movl	(%r15), %edi
	movq	(%rax), %rsi
	movq	_CNIC_RAMROD_TMO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_wait_event_timeout
	movq	_CTX_FL_CID_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(,%r14,8), %rsi
	addq	%r13, %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RAMROD_CMD_ID_COMMON_CFC_DEL,4,2 ## @RAMROD_CMD_ID_COMMON_CFC_DEL
	.comm	_NONE_CONNECTION_TYPE,4,2       ## @NONE_CONNECTION_TYPE
	.comm	_CNIC_RAMROD_TMO,4,2            ## @CNIC_RAMROD_TMO
	.comm	_CTX_FL_CID_ERROR,4,2           ## @CTX_FL_CID_ERROR
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_cnic_bnx2x_destroy_ramrod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_bnx2x_destroy_ramrod
_cnic_bnx2x_destroy_ramrod:             ; @cnic_bnx2x_destroy_ramrod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0]
	bl	_netdev_priv
	mov	x22, x0
	ldr	x23, [x20]
	mov	w8, #24
	madd	x24, x19, x8, x23
	add	x20, x24, #16
	mov	x0, x20
	bl	_init_waitqueue_head
	str	xzr, [x24, #8]!
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w1, [x24, #12]
	mov	x0, x22
	bl	_BNX2X_HW_CID
	mov	x2, x0
Lloh0:
	adrp	x8, _RAMROD_CMD_ID_COMMON_CFC_DEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RAMROD_CMD_ID_COMMON_CFC_DEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _NONE_CONNECTION_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NONE_CONNECTION_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x21
	bl	_cnic_submit_kwqe_16
	mov	x8, x0
	mov	w0, #0
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	w0, [x20]
	ldr	x1, [x24]
Lloh6:
	adrp	x8, _CNIC_RAMROD_TMO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CNIC_RAMROD_TMO@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_wait_event_timeout
Lloh9:
	adrp	x8, _CTX_FL_CID_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTX_FL_CID_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	w8, #24
	madd	x1, x19, x8, x23
	bl	_test_bit
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _EBUSY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RAMROD_CMD_ID_COMMON_CFC_DEL,4,2 ; @RAMROD_CMD_ID_COMMON_CFC_DEL
	.comm	_NONE_CONNECTION_TYPE,4,2       ; @NONE_CONNECTION_TYPE
	.comm	_CNIC_RAMROD_TMO,4,2            ; @CNIC_RAMROD_TMO
	.comm	_CTX_FL_CID_ERROR,4,2           ; @CTX_FL_CID_ERROR
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_cnic_bnx2x_destroy_ramrod
.subsections_via_symbols
