	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_diag_free_res           ## -- Begin function qlcnic_diag_free_res
	.p2align	4, 0x90
_qlcnic_diag_free_res:                  ## @qlcnic_diag_free_res
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movl	(%rax), %r12d
	movq	___QLCNIC_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r13), %rsi
	callq	_clear_bit
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_INTERRUPT_TEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	cmpl	$0, 4(%r13)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_qlcnic_disable_sds_intr
	incq	%r15
	movslq	4(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_4:
	movq	%r13, %rdi
	callq	_qlcnic_fw_destroy_ctx
	movq	%r13, %rdi
	callq	_qlcnic_detach
	movq	8(%r13), %rax
	movq	$0, (%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	movl	%r12d, (%r13)
	movq	%r13, %rdi
	callq	_qlcnic_attach
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	___qlcnic_up
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netif_device_attach            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_DEV_UP,4,2            ## @__QLCNIC_DEV_UP
	.comm	_QLCNIC_INTERRUPT_TEST,8,3      ## @QLCNIC_INTERRUPT_TEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_diag_free_res           ; -- Begin function qlcnic_diag_free_res
	.p2align	2
_qlcnic_diag_free_res:                  ; @qlcnic_diag_free_res
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w22, [x0]
Lloh0:
	adrp	x8, ___QLCNIC_DEV_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___QLCNIC_DEV_UP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_clear_bit
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _QLCNIC_INTERRUPT_TEST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QLCNIC_INTERRUPT_TEST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, #0
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	add	x1, x8, x23
	mov	x0, x20
	bl	_qlcnic_disable_sds_intr
	add	x24, x24, #1
	ldrsw	x8, [x20, #4]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_qlcnic_fw_destroy_ctx
	mov	x0, x20
	bl	_qlcnic_detach
	ldr	x8, [x20, #8]
	str	xzr, [x8]
	stp	w22, w21, [x20]
	mov	x0, x20
	bl	_qlcnic_attach
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	___qlcnic_up
LBB0_7:
	mov	x0, 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	_netif_device_attach
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_DEV_UP,4,2            ; @__QLCNIC_DEV_UP
	.comm	_QLCNIC_INTERRUPT_TEST,8,3      ; @QLCNIC_INTERRUPT_TEST
.subsections_via_symbols
