	.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
	movq	_NETXEN_ROMUSB_ROM_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_NXWR32
	movq	_NETXEN_ROMUSB_ROM_DUMMY_BYTE_CNT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_NXWR32
	movq	_NETXEN_ROMUSB_ROM_ABYTE_CNT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_NXWR32
	movq	_NETXEN_ROMUSB_ROM_INSTR_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$11, %edx
	callq	_NXWR32
	movq	%rbx, %rdi
	callq	_netxen_wait_rom_done
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_3
LBB0_2:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_NXWR32
	movl	$10, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_NXWR32
	movq	_NETXEN_ROMUSB_ROM_RDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_NXRD32
	movl	%eax, (%r14)
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	_NETXEN_ROMUSB_ROM_ADDRESS,4,2  ## @NETXEN_ROMUSB_ROM_ADDRESS
	.comm	_NETXEN_ROMUSB_ROM_DUMMY_BYTE_CNT,4,2 ## @NETXEN_ROMUSB_ROM_DUMMY_BYTE_CNT
	.comm	_NETXEN_ROMUSB_ROM_ABYTE_CNT,4,2 ## @NETXEN_ROMUSB_ROM_ABYTE_CNT
	.comm	_NETXEN_ROMUSB_ROM_INSTR_OPCODE,4,2 ## @NETXEN_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	_NETXEN_ROMUSB_ROM_RDATA,4,2    ## @NETXEN_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:
	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	x19, x2
	mov	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NETXEN_ROMUSB_ROM_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETXEN_ROMUSB_ROM_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_NXWR32
Lloh3:
	adrp	x21, _NETXEN_ROMUSB_ROM_DUMMY_BYTE_CNT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NETXEN_ROMUSB_ROM_DUMMY_BYTE_CNT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_NXWR32
Lloh5:
	adrp	x22, _NETXEN_ROMUSB_ROM_ABYTE_CNT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NETXEN_ROMUSB_ROM_ABYTE_CNT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #3
	bl	_NXWR32
Lloh7:
	adrp	x8, _NETXEN_ROMUSB_ROM_INSTR_OPCODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NETXEN_ROMUSB_ROM_INSTR_OPCODE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #11
	bl	_NXWR32
	mov	x0, x20
	bl	_netxen_wait_rom_done
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
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	_NXWR32
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_NXWR32
Lloh15:
	adrp	x8, _NETXEN_ROMUSB_ROM_RDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NETXEN_ROMUSB_ROM_RDATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_NXRD32
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_3:
	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
	.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	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NETXEN_ROMUSB_ROM_ADDRESS,4,2  ; @NETXEN_ROMUSB_ROM_ADDRESS
	.comm	_NETXEN_ROMUSB_ROM_DUMMY_BYTE_CNT,4,2 ; @NETXEN_ROMUSB_ROM_DUMMY_BYTE_CNT
	.comm	_NETXEN_ROMUSB_ROM_ABYTE_CNT,4,2 ; @NETXEN_ROMUSB_ROM_ABYTE_CNT
	.comm	_NETXEN_ROMUSB_ROM_INSTR_OPCODE,4,2 ; @NETXEN_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	_NETXEN_ROMUSB_ROM_RDATA,4,2    ; @NETXEN_ROMUSB_ROM_RDATA
	.no_dead_strip	_do_rom_fast_read
.subsections_via_symbols
