	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __qede_remove
___qede_remove:                         ## @__qede_remove
	.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
	subq	$24, %rsp
	.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, %r14
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movq	16(%rax), %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_DP_INFO
	movq	_QEDE_REMOVE_RECOVERY@GOTPCREL(%rip), %r12
	xorl	%esi, %esi
	cmpl	%r15d, (%r12)
	sete	%sil
	movq	%r13, %rdi
	callq	_qede_rdma_dev_remove
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	cmpl	%r15d, (%r12)
	movq	%r14, %r12
	movq	%rbx, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_unregister_netdev
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_cancel_delayed_work_sync
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	_PCI_D0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r12, %rdi
	callq	*(%rax)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
LBB0_4:
	movq	%r13, %rdi
	callq	_qede_ptp_disable
	movq	_qed_ops@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%r12, %rdi
	callq	*8(%rax)
	movq	_system_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SYSTEM_POWER_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_7
LBB0_5:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	leaq	L_.str.2(%rip), %rbx
	movq	_QEDE_REMOVE_RECOVERY@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device has already been removed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Starting qede_remove\n"

	.comm	_QEDE_REMOVE_RECOVERY,4,2       ## @QEDE_REMOVE_RECOVERY
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_qed_ops,8,3                    ## @qed_ops
	.comm	_system_state,8,3               ## @system_state
	.comm	_SYSTEM_POWER_OFF,8,3           ## @SYSTEM_POWER_OFF
L_.str.2:                               ## @.str.2
	.asciz	"Ending qede_remove successfully\n"

	.no_dead_strip	___qede_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __qede_remove
___qede_remove:                         ; @__qede_remove
	.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	x20, x1
	mov	x19, x0
	bl	_pci_get_drvdata
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_netdev_priv
	mov	x23, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP_INFO
Lloh2:
	adrp	x24, _QEDE_REMOVE_RECOVERY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _QEDE_REMOVE_RECOVERY@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w20
	cset	w1, eq
	mov	x0, x23
	bl	_qede_rdma_dev_remove
	ldr	w8, [x24]
	cmp	w8, w20
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_unregister_netdev
	add	x0, x23, #8
	bl	_cancel_delayed_work_sync
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _PCI_D0@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PCI_D0@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	mov	x0, x22
	blr	x8
	mov	x0, x19
	mov	x1, #0
	bl	_pci_set_drvdata
LBB0_3:
	mov	x0, x23
	bl	_qede_ptp_disable
Lloh7:
	adrp	x23, _qed_ops@GOTPAGE
Lloh8:
	ldr	x23, [x23, _qed_ops@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x22
	blr	x8
Lloh9:
	adrp	x8, _system_state@GOTPAGE
Lloh10:
	ldr	x8, [x8, _system_state@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _SYSTEM_POWER_OFF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SYSTEM_POWER_OFF@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	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
	ret
LBB0_5:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8]
	mov	x0, x22
	blr	x8
	ldr	w8, [x24]
	cmp	w8, w20
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_free_netdev
LBB0_8:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	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	_dev_info
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device has already been removed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Starting qede_remove\n"

	.comm	_QEDE_REMOVE_RECOVERY,4,2       ; @QEDE_REMOVE_RECOVERY
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_qed_ops,8,3                    ; @qed_ops
	.comm	_system_state,8,3               ; @system_state
	.comm	_SYSTEM_POWER_OFF,8,3           ; @SYSTEM_POWER_OFF
l_.str.2:                               ; @.str.2
	.asciz	"Ending qede_remove successfully\n"

	.no_dead_strip	___qede_remove
.subsections_via_symbols
