	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_load_fw_image_from_host
_qlcnic_83xx_load_fw_image_from_host:   ## @qlcnic_83xx_load_fw_image_from_host
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %esi
	addq	$4, %rdi
	callq	_request_firmware
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_QLC_83XX_BOOT_FROM_FLASH@GOTPCREL(%rip), %rax
LBB0_5:
	movq	_QLCNIC_FW_IMG_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_QLC_SHARED_REG_WR32
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_copy_fw_file
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	negl	%r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_QLC_83XX_BOOT_FROM_FILE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No file FW image, loading flash FW image.\n"

	.comm	_QLCNIC_FW_IMG_VALID,4,2        ## @QLCNIC_FW_IMG_VALID
	.comm	_QLC_83XX_BOOT_FROM_FLASH,4,2   ## @QLC_83XX_BOOT_FROM_FLASH
	.comm	_QLC_83XX_BOOT_FROM_FILE,4,2    ## @QLC_83XX_BOOT_FROM_FILE
	.no_dead_strip	_qlcnic_83xx_load_fw_image_from_host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_load_fw_image_from_host
_qlcnic_83xx_load_fw_image_from_host:   ; @qlcnic_83xx_load_fw_image_from_host
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x2, x8, [x0]
	ldr	x0, [x8]
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w1, [x0], #4
	bl	_request_firmware
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _QLC_83XX_BOOT_FROM_FLASH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLC_83XX_BOOT_FROM_FLASH@GOTPAGEOFF]
LBB0_2:
Lloh7:
	adrp	x9, _QLCNIC_FW_IMG_VALID@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QLCNIC_FW_IMG_VALID@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_QLC_SHARED_REG_WR32
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_qlcnic_83xx_copy_fw_file
	cbz	x0, LBB0_6
; %bb.4:
	neg	w0, w20
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh10:
	adrp	x8, _QLC_83XX_BOOT_FROM_FILE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QLC_83XX_BOOT_FROM_FILE@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No file FW image, loading flash FW image.\n"

	.comm	_QLCNIC_FW_IMG_VALID,4,2        ; @QLCNIC_FW_IMG_VALID
	.comm	_QLC_83XX_BOOT_FROM_FLASH,4,2   ; @QLC_83XX_BOOT_FROM_FLASH
	.comm	_QLC_83XX_BOOT_FROM_FILE,4,2    ; @QLC_83XX_BOOT_FROM_FILE
	.no_dead_strip	_qlcnic_83xx_load_fw_image_from_host
.subsections_via_symbols
