	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___qlcnic_down                  ## -- Begin function __qlcnic_down
	.p2align	4, 0x90
___qlcnic_down:                         ## @__qlcnic_down
	.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), %rax
	movq	_QLCNIC_ADAPTER_UP_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___QLCNIC_DEV_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	48(%r15), %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	32(%r15), %rax
	movq	$0, 8(%rax)
	movq	%r14, %rdi
	callq	_netif_tx_disable
	movq	%r15, %rdi
	callq	_qlcnic_free_mac_list
	cmpq	$0, 40(%r15)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_qlcnic_delete_lb_filters
LBB0_4:
	movq	_QLCNIC_NIU_NON_PROMISC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qlcnic_nic_set_promisc
	movq	%r15, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	32(%r15), %rax
	movq	(%rax), %rdi
	callq	_qlcnic_sriov_cleanup_async_list
LBB0_6:
	movq	%r15, %rdi
	callq	_qlcnic_napi_disable
	movq	%r15, %rdi
	callq	_qlcnic_fw_destroy_ctx
	movq	_QLCNIC_FW_LRO_MSS_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r15)
	movq	%r15, %rdi
	callq	_qlcnic_reset_rx_buffers_list
	cmpl	$0, 8(%r15)
	jle	LBB0_9
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	addq	%r14, %rsi
	movq	%r15, %rdi
	callq	_qlcnic_release_tx_buffers
	incq	%rbx
	movslq	8(%r15), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ADAPTER_UP_MAGIC,8,3    ## @QLCNIC_ADAPTER_UP_MAGIC
	.comm	___QLCNIC_DEV_UP,4,2            ## @__QLCNIC_DEV_UP
	.comm	_QLCNIC_NIU_NON_PROMISC_MODE,4,2 ## @QLCNIC_NIU_NON_PROMISC_MODE
	.comm	_QLCNIC_FW_LRO_MSS_CAP,4,2      ## @QLCNIC_FW_LRO_MSS_CAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___qlcnic_down                  ; -- Begin function __qlcnic_down
	.p2align	2
___qlcnic_down:                         ; @__qlcnic_down
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _QLCNIC_ADAPTER_UP_MAGIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_ADAPTER_UP_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh3:
	adrp	x8, ___QLCNIC_DEV_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___QLCNIC_DEV_UP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #48
	bl	_test_and_clear_bit
	cbz	w0, LBB0_9
; %bb.2:
	bl	_smp_mb
	mov	x0, x20
	bl	_netif_carrier_off
	ldr	x8, [x19, #32]
	str	xzr, [x8, #8]
	mov	x0, x20
	bl	_netif_tx_disable
	mov	x0, x19
	bl	_qlcnic_free_mac_list
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_qlcnic_delete_lb_filters
LBB0_4:
Lloh6:
	adrp	x8, _QLCNIC_NIU_NON_PROMISC_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_NIU_NON_PROMISC_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qlcnic_nic_set_promisc
	mov	x0, x19
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #32]
	ldr	x0, [x8]
	bl	_qlcnic_sriov_cleanup_async_list
LBB0_6:
	mov	x0, x19
	bl	_qlcnic_napi_disable
	mov	x0, x19
	bl	_qlcnic_fw_destroy_ctx
Lloh9:
	adrp	x8, _QLCNIC_FW_LRO_MSS_CAP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_FW_LRO_MSS_CAP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_qlcnic_reset_rx_buffers_list
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
	mov	x21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x20
	mov	x0, x19
	bl	_qlcnic_release_tx_buffers
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_8
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ADAPTER_UP_MAGIC,8,3    ; @QLCNIC_ADAPTER_UP_MAGIC
	.comm	___QLCNIC_DEV_UP,4,2            ; @__QLCNIC_DEV_UP
	.comm	_QLCNIC_NIU_NON_PROMISC_MODE,4,2 ; @QLCNIC_NIU_NON_PROMISC_MODE
	.comm	_QLCNIC_FW_LRO_MSS_CAP,4,2      ; @QLCNIC_FW_LRO_MSS_CAP
.subsections_via_symbols
