	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netxen_get_flash_block
_netxen_get_flash_block:                ## @netxen_get_flash_block
	.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, %ebx
	movq	%rdi, %r12
	movslq	%edx, %rax
	cmpl	$4, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_2
## %bb.1:
	movq	%rcx, %r15
	jmp	LBB0_5
LBB0_2:
	shrq	$2, %rax
	cmpq	$2, %rax
	movl	$1, %r14d
	cmovaeq	%rax, %r14
	movq	%rcx, %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	callq	_netxen_rom_fast_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi
	callq	_cpu_to_le32
	movl	%eax, (%r15)
	addq	$4, %r15
	addl	$4, %ebx
	decq	%r14
	jne	LBB0_3
LBB0_5:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	xorl	%r13d, %r13d
	cmpq	%r15, %r14
	jbe	LBB0_9
## %bb.6:
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_netxen_rom_fast_read
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_7:
	movl	-44(%rbp), %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movq	%r14, %rdx
	subl	%r15d, %edx
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_netxen_get_flash_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netxen_get_flash_block
_netxen_get_flash_block:                ; @netxen_get_flash_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x21, x0
	sxtw	x23, w2
	cmp	w2, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x22
	b	LBB0_5
LBB0_2:
	lsr	x8, x23, #2
	cmp	x8, #1
	csinc	x24, x8, xzr, hi
	mov	x19, x22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_netxen_rom_fast_read
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_cpu_to_le32
	str	w0, [x19], #4
	add	w20, w20, #4
	subs	x24, x24, #1
	b.ne	LBB0_3
LBB0_5:
	add	x22, x22, x23
	cmp	x22, x19
	b.ls	LBB0_8
; %bb.6:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_netxen_rom_fast_read
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w0, [sp, #12]
	bl	_cpu_to_le32
	str	w0, [sp, #8]
	sub	w2, w22, w19
	add	x1, sp, #8
	mov	x0, x19
	bl	_memcpy
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_netxen_get_flash_block
.subsections_via_symbols
