	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fw_destroy_ctx          ## -- Begin function qlcnic_fw_destroy_ctx
	.p2align	4, 0x90
_qlcnic_fw_destroy_ctx:                 ## @qlcnic_fw_destroy_ctx
	.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, %r14
	movq	___QLCNIC_FW_ATTACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r14), %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%r14, %rdi
	callq	_qlcnic_fw_cmd_del_rx_ctx
	cmpl	$0, (%r14)
	jle	LBB0_4
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_qlcnic_fw_cmd_del_tx_ctx
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	%r14, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_qlcnic_check_multi_tx
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_82xx_config_intrpt
LBB0_9:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_13
## %bb.11:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_LOOPBACK_TEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_83xx_config_intrpt
LBB0_13:
	movl	$20, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdelay                         ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_FW_ATTACHED,4,2       ## @__QLCNIC_FW_ATTACHED
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_LOOPBACK_TEST,8,3       ## @QLCNIC_LOOPBACK_TEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fw_destroy_ctx          ; -- Begin function qlcnic_fw_destroy_ctx
	.p2align	2
_qlcnic_fw_destroy_ctx:                 ; @qlcnic_fw_destroy_ctx
	.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, x0
Lloh0:
	adrp	x8, ___QLCNIC_FW_ATTACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___QLCNIC_FW_ATTACHED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_and_clear_bit
	cbz	x0, LBB0_14
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_fw_cmd_del_rx_ctx
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x20
	mov	x0, x19
	bl	_qlcnic_fw_cmd_del_tx_ctx
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x19
	bl	_qlcnic_82xx_check
Lloh3:
	adrp	x20, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh4:
	ldr	x20, [x20, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_qlcnic_check_multi_tx
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_qlcnic_82xx_config_intrpt
LBB0_9:
	mov	x0, x19
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_13
; %bb.10:
	ldr	w8, [x19, #4]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _QLCNIC_LOOPBACK_TEST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QLCNIC_LOOPBACK_TEST@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #0
	bl	_qlcnic_83xx_config_intrpt
LBB0_13:
	mov	w0, #20
	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	_mdelay
LBB0_14:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_FW_ATTACHED,4,2       ; @__QLCNIC_FW_ATTACHED
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_LOOPBACK_TEST,8,3       ; @QLCNIC_LOOPBACK_TEST
.subsections_via_symbols
