	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_rom_fast_read
_do_rom_fast_read:                      ## @do_rom_fast_read
	.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
	movq	%rdx, %r14
	movl	%esi, %edx
	movq	%rdi, %rbx
	movl	$0, -44(%rbp)
	movq	_QLCNIC_ROMUSB_ROM_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_QLCWR32
	movq	_QLCNIC_ROMUSB_ROM_DUMMY_BYTE_CNT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_QLCWR32
	movq	_QLCNIC_ROMUSB_ROM_ABYTE_CNT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_QLCWR32
	movq	_QLCNIC_ROMUSB_ROM_INSTR_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$11, %edx
	callq	_QLCWR32
	movq	%rbx, %rdi
	callq	_qlcnic_wait_rom_done
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_3
LBB0_2:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_QLCWR32
	movl	$10, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_QLCWR32
	movq	_QLCNIC_ROMUSB_ROM_RDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_QLCRD32
	movl	%eax, (%r14)
	movl	-44(%rbp), %eax
	movq	_EIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	cmovel	%eax, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ROMUSB_ROM_ADDRESS,4,2  ## @QLCNIC_ROMUSB_ROM_ADDRESS
	.comm	_QLCNIC_ROMUSB_ROM_DUMMY_BYTE_CNT,4,2 ## @QLCNIC_ROMUSB_ROM_DUMMY_BYTE_CNT
	.comm	_QLCNIC_ROMUSB_ROM_ABYTE_CNT,4,2 ## @QLCNIC_ROMUSB_ROM_ABYTE_CNT
	.comm	_QLCNIC_ROMUSB_ROM_INSTR_OPCODE,4,2 ## @QLCNIC_ROMUSB_ROM_INSTR_OPCODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error waiting for rom done\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLCNIC_ROMUSB_ROM_RDATA,4,2    ## @QLCNIC_ROMUSB_ROM_RDATA
	.no_dead_strip	_do_rom_fast_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_rom_fast_read
_do_rom_fast_read:                      ; @do_rom_fast_read
	.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	x19, x2
	mov	x2, x1
	mov	x20, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _QLCNIC_ROMUSB_ROM_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_ROMUSB_ROM_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_QLCWR32
Lloh3:
	adrp	x21, _QLCNIC_ROMUSB_ROM_DUMMY_BYTE_CNT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _QLCNIC_ROMUSB_ROM_DUMMY_BYTE_CNT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_QLCWR32
Lloh5:
	adrp	x22, _QLCNIC_ROMUSB_ROM_ABYTE_CNT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _QLCNIC_ROMUSB_ROM_ABYTE_CNT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #3
	bl	_QLCWR32
Lloh7:
	adrp	x8, _QLCNIC_ROMUSB_ROM_INSTR_OPCODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QLCNIC_ROMUSB_ROM_INSTR_OPCODE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #11
	bl	_QLCWR32
	mov	x0, x20
	bl	_qlcnic_wait_rom_done
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #0
	bl	_QLCWR32
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_QLCWR32
Lloh15:
	adrp	x8, _QLCNIC_ROMUSB_ROM_RDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLCNIC_ROMUSB_ROM_RDATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	str	w0, [x19]
	ldr	w8, [sp, #12]
Lloh18:
	adrp	x9, _EIO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmn	w8, w9
	csel	w0, w8, wzr, eq
LBB0_3:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ROMUSB_ROM_ADDRESS,4,2  ; @QLCNIC_ROMUSB_ROM_ADDRESS
	.comm	_QLCNIC_ROMUSB_ROM_DUMMY_BYTE_CNT,4,2 ; @QLCNIC_ROMUSB_ROM_DUMMY_BYTE_CNT
	.comm	_QLCNIC_ROMUSB_ROM_ABYTE_CNT,4,2 ; @QLCNIC_ROMUSB_ROM_ABYTE_CNT
	.comm	_QLCNIC_ROMUSB_ROM_INSTR_OPCODE,4,2 ; @QLCNIC_ROMUSB_ROM_INSTR_OPCODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error waiting for rom done\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLCNIC_ROMUSB_ROM_RDATA,4,2    ; @QLCNIC_ROMUSB_ROM_RDATA
	.no_dead_strip	_do_rom_fast_read
.subsections_via_symbols
