	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __qlcnic_dcb_free
___qlcnic_dcb_free:                     ## @__qlcnic_dcb_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	32(%rdi), %r15
	leaq	28(%rdi), %rbx
	movq	_QLCNIC_DCB_AEN_MODE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	jmp	LBB0_3
LBB0_4:
	leaq	24(%r14), %rdi
	callq	_cancel_delayed_work_sync
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_destroy_workqueue
	movq	$0, 16(%r14)
LBB0_6:
	movq	8(%r14), %rdi
	callq	_kfree
	movq	$0, 8(%r14)
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
	movq	%r14, %rdi
	callq	_kfree
	movq	$0, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_DCB_AEN_MODE,4,2        ## @QLCNIC_DCB_AEN_MODE
	.no_dead_strip	___qlcnic_dcb_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __qlcnic_dcb_free
___qlcnic_dcb_free:                     ; @__qlcnic_dcb_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_7
; %bb.1:
	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
	ldr	x21, [x0, #32]
	add	x20, x0, #28
Lloh0:
	adrp	x22, _QLCNIC_DCB_AEN_MODE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QLCNIC_DCB_AEN_MODE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	b	LBB0_2
LBB0_4:
	add	x0, x19, #24
	bl	_cancel_delayed_work_sync
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_destroy_workqueue
	str	xzr, [x19, #16]
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	mov	x0, x19
	bl	_kfree
	str	xzr, [x21]
	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
LBB0_7:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_DCB_AEN_MODE,4,2        ; @QLCNIC_DCB_AEN_MODE
	.no_dead_strip	___qlcnic_dcb_free
.subsections_via_symbols
