	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qede_unload
_qede_unload:                           ## @qede_unload
	.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	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_DP_INFO
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	___qede_lock
LBB0_2:
	movq	_QEDE_FLAGS_LINK_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	36(%rbx), %rsi
	callq	_clear_bit
	movq	_QEDE_UNLOAD_RECOVERY@GOTPCREL(%rip), %r13
	cmpl	%r14d, (%r13)
	je	LBB0_4
## %bb.3:
	movq	_QEDE_STATE_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_qede_rdma_dev_event_close
	movl	28(%rbx), %edi
	callq	_netif_tx_disable
	movl	28(%rbx), %edi
	callq	_netif_carrier_off
	cmpl	%r14d, (%r13)
	je	LBB0_8
## %bb.5:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$0, -48(%rbp)
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	8(%rbx), %edi
	movq	%r12, %rsi
	callq	*8(%rax)
	movq	%rbx, %rdi
	callq	_qede_stop_queues
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_qede_sync_free_irqs
	testl	%r15d, %r15d
	jne	LBB0_16
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_INFO
LBB0_8:
	movq	%rbx, %rdi
	callq	_qede_vlan_mark_nonconfigured
	movq	16(%rbx), %rax
	movl	8(%rbx), %edi
	callq	*8(%rax)
	movq	%rbx, %rdi
	callq	_IS_VF
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	cmpl	$1, 24(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_qede_poll_for_freeing_arfs_filters
	movq	%rbx, %rdi
	callq	_qede_free_arfs
LBB0_11:
	movq	%rbx, %rdi
	callq	_qede_sync_free_irqs
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rbx, %rdi
	callq	_qede_napi_disable_remove
	cmpl	%r14d, (%r13)
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	callq	_qede_empty_tx_queues
LBB0_13:
	movq	%rbx, %rdi
	callq	_qede_free_mem_load
	movq	%rbx, %rdi
	callq	_qede_free_fp_array
	testl	%r15d, %r15d
	jne	LBB0_16
LBB0_15:
	movq	%rbx, %rdi
	callq	___qede_unlock
LBB0_16:
	cmpl	%r14d, (%r13)
	je	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_NOTICE
LBB0_18:
	movq	$0, (%rbx)
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DP_INFO
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting qede unload\n"

	.comm	_QEDE_FLAGS_LINK_REQUESTED,4,2  ## @QEDE_FLAGS_LINK_REQUESTED
	.comm	_QEDE_UNLOAD_RECOVERY,4,2       ## @QEDE_UNLOAD_RECOVERY
	.comm	_QEDE_STATE_CLOSED,4,2          ## @QEDE_STATE_CLOSED
L_.str.1:                               ## @.str.1
	.asciz	"Stopped Queues\n"

L_.str.2:                               ## @.str.2
	.asciz	"Link is down\n"

L_.str.3:                               ## @.str.3
	.asciz	"Ending qede unload\n"

	.no_dead_strip	_qede_unload
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qede_unload
_qede_unload:                           ; @qede_unload
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP_INFO
	cbnz	w21, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	___qede_lock
LBB0_2:
Lloh2:
	adrp	x8, _QEDE_FLAGS_LINK_REQUESTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QEDE_FLAGS_LINK_REQUESTED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #36
	bl	_clear_bit
Lloh5:
	adrp	x22, _QEDE_UNLOAD_RECOVERY@GOTPAGE
Lloh6:
	ldr	x22, [x22, _QEDE_UNLOAD_RECOVERY@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w20
	b.eq	LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _QEDE_STATE_CLOSED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QEDE_STATE_CLOSED@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #32]
LBB0_4:
	mov	x0, x19
	bl	_qede_rdma_dev_event_close
	ldr	w0, [x19, #28]
	bl	_netif_tx_disable
	ldr	w0, [x19, #28]
	bl	_netif_carrier_off
	ldr	w8, [x22]
	cmp	w8, w20
	b.eq	LBB0_8
; %bb.5:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	wzr, [sp, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	blr	x8
	mov	x0, x19
	bl	_qede_stop_queues
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_qede_sync_free_irqs
	cbnz	w21, LBB0_15
	b	LBB0_14
LBB0_7:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
LBB0_8:
	mov	x0, x19
	bl	_qede_vlan_mark_nonconfigured
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	w0, [x19, #8]
	blr	x8
	mov	x0, x19
	bl	_IS_VF
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_qede_poll_for_freeing_arfs_filters
	mov	x0, x19
	bl	_qede_free_arfs
LBB0_11:
	mov	x0, x19
	bl	_qede_sync_free_irqs
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19, #8]
	mov	w1, #0
	blr	x8
	mov	x0, x19
	bl	_qede_napi_disable_remove
	ldr	w8, [x22]
	cmp	w8, w20
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_qede_empty_tx_queues
LBB0_13:
	mov	x0, x19
	bl	_qede_free_mem_load
	mov	x0, x19
	bl	_qede_free_fp_array
	cbnz	w21, LBB0_15
LBB0_14:
	mov	x0, x19
	bl	___qede_unlock
LBB0_15:
	ldr	w8, [x22]
	cmp	w8, w20
	b.eq	LBB0_17
; %bb.16:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_17:
	str	xzr, [x19]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting qede unload\n"

	.comm	_QEDE_FLAGS_LINK_REQUESTED,4,2  ; @QEDE_FLAGS_LINK_REQUESTED
	.comm	_QEDE_UNLOAD_RECOVERY,4,2       ; @QEDE_UNLOAD_RECOVERY
	.comm	_QEDE_STATE_CLOSED,4,2          ; @QEDE_STATE_CLOSED
l_.str.1:                               ; @.str.1
	.asciz	"Stopped Queues\n"

l_.str.2:                               ; @.str.2
	.asciz	"Link is down\n"

l_.str.3:                               ; @.str.3
	.asciz	"Ending qede unload\n"

	.no_dead_strip	_qede_unload
.subsections_via_symbols
