	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_adapter_down
_ql_adapter_down:                       ## @ql_adapter_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	%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, %r15d
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_netif_stop_queue
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	_QL_ADAPTER_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %r12
	movq	%r12, %rsi
	callq	_clear_bit
	movq	_QL_LINK_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	%rbx, %rdi
	callq	_ql_disable_interrupts
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_free_irq
	cmpq	$0, 40(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_QL_MSI_ENABLED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	16(%rbx), %rdi
	callq	_pci_disable_msi
LBB0_3:
	leaq	12(%rbx), %rdi
	callq	_del_timer_sync
	leaq	8(%rbx), %rdi
	callq	_napi_disable
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_ql_wait_for_drvr_lock
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_ql_adapter_reset
	leaq	L_.str.2(%rip), %r12
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_10
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_6:
	movl	$-1, %r15d
	leaq	L_.str.3(%rip), %r12
	jmp	LBB0_10
LBB0_8:
	xorl	%r15d, %r15d
LBB0_10:
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movq	%rbx, %rdi
	callq	_ql_free_mem_resources
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QL_ADAPTER_UP,4,2              ## @QL_ADAPTER_UP
	.comm	_QL_LINK_MASTER,4,2             ## @QL_LINK_MASTER
	.comm	_QL_MSI_ENABLED,4,2             ## @QL_MSI_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calling pci_disable_msi()\n"

L_.str.1:                               ## @.str.1
	.asciz	"ql_adapter_reset(%d) FAILED!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Releasing driver lock via chip reset\n"

L_.str.3:                               ## @.str.3
	.asciz	"Could not acquire driver lock to do reset!\n"

	.no_dead_strip	_ql_adapter_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_adapter_down
_ql_adapter_down:                       ; @ql_adapter_down
	.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	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #32]
	mov	x0, x20
	bl	_netif_stop_queue
	mov	x0, x20
	bl	_netif_carrier_off
Lloh0:
	adrp	x8, _QL_ADAPTER_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QL_ADAPTER_UP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #24
	mov	x1, x22
	bl	_clear_bit
Lloh3:
	adrp	x8, _QL_LINK_MASTER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QL_LINK_MASTER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
	mov	x0, x19
	bl	_ql_disable_interrupts
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_free_irq
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
; %bb.1:
Lloh6:
	adrp	x23, _QL_MSI_ENABLED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _QL_MSI_ENABLED@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x19, #32]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
	ldr	w0, [x23]
	mov	x1, x22
	bl	_clear_bit
	ldr	x0, [x19, #16]
	bl	_pci_disable_msi
LBB0_3:
	add	x0, x19, #12
	bl	_del_timer_sync
	add	x0, x19, #8
	bl	_napi_disable
	cbz	w21, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_ql_wait_for_drvr_lock
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_ql_adapter_reset
	cbz	w0, LBB0_7
; %bb.6:
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
LBB0_7:
	mov	w21, #0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	w21, #-1
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_10:
	mov	x0, x19
	bl	_ql_free_mem_resources
	mov	x0, x21
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QL_ADAPTER_UP,4,2              ; @QL_ADAPTER_UP
	.comm	_QL_LINK_MASTER,4,2             ; @QL_LINK_MASTER
	.comm	_QL_MSI_ENABLED,4,2             ; @QL_MSI_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calling pci_disable_msi()\n"

l_.str.1:                               ; @.str.1
	.asciz	"ql_adapter_reset(%d) FAILED!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Releasing driver lock via chip reset\n"

l_.str.3:                               ; @.str.3
	.asciz	"Could not acquire driver lock to do reset!\n"

	.no_dead_strip	_ql_adapter_down
.subsections_via_symbols
