	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_reload                    ## -- Begin function qede_reload
	.p2align	4, 0x90
_qede_reload:                           ## @qede_reload
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	___qede_lock
LBB0_2:
	movq	(%rbx), %rax
	movq	_QEDE_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	movq	_QEDE_UNLOAD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_qede_unload
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%r15)
LBB0_5:
	movq	_QEDE_LOAD_RELOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_qede_load
	movl	8(%rbx), %edi
	callq	_qede_config_rx_mode
	jmp	LBB0_8
LBB0_6:
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%r15)
LBB0_8:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___qede_unlock                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QEDE_STATE_OPEN,8,3            ## @QEDE_STATE_OPEN
	.comm	_QEDE_UNLOAD_NORMAL,4,2         ## @QEDE_UNLOAD_NORMAL
	.comm	_QEDE_LOAD_RELOAD,4,2           ## @QEDE_LOAD_RELOAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qede_reload                    ; -- Begin function qede_reload
	.p2align	2
_qede_reload:                           ; @qede_reload
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	cbnz	w2, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	___qede_lock
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _QEDE_STATE_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QEDE_STATE_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _QEDE_UNLOAD_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QEDE_UNLOAD_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_qede_unload
	cbz	x21, LBB0_5
; %bb.4:
	ldr	x8, [x21]
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_5:
Lloh6:
	adrp	x8, _QEDE_LOAD_RELOAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QEDE_LOAD_RELOAD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_qede_load
	ldr	w0, [x19, #8]
	bl	_qede_config_rx_mode
	b	LBB0_8
LBB0_6:
	cbz	x21, LBB0_8
; %bb.7:
	ldr	x8, [x21]
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_8:
	cbz	w20, LBB0_10
; %bb.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
LBB0_10:
	mov	x0, x19
	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
	b	___qede_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_QEDE_STATE_OPEN,8,3            ; @QEDE_STATE_OPEN
	.comm	_QEDE_UNLOAD_NORMAL,4,2         ; @QEDE_UNLOAD_NORMAL
	.comm	_QEDE_LOAD_RELOAD,4,2           ; @QEDE_LOAD_RELOAD
.subsections_via_symbols
