	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t3_read_flash
_t3_read_flash:                         ## @t3_read_flash
	.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
	testb	$3, %sil
	jne	LBB0_2
## %bb.1:
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movl	%esi, %eax
	movl	%edx, %ecx
	leaq	(%rax,%rcx,4), %rax
	movq	_SF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	%rcx, %rax
	ja	LBB0_2
## %bb.3:
	movl	%r8d, %r14d
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_swab32
	movq	_SF_RD_DATA_FAST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r12, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_sf1_write
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_sf1_read
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	jne	LBB0_6
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rbx
	decl	%r15d
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edx, %edx
	cmpl	$1, %r15d
	setne	%dl
	movq	%r12, %rdi
	movl	$4, %esi
	movq	%rbx, %rcx
	callq	_sf1_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rbx), %edi
	callq	_htonl
	movl	%eax, (%rbx)
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SF_SIZE,4,2                    ## @SF_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SF_RD_DATA_FAST,4,2            ## @SF_RD_DATA_FAST
	.no_dead_strip	_t3_read_flash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t3_read_flash
_t3_read_flash:                         ; @t3_read_flash
	.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
	tst	w1, #0x3
	b.ne	LBB0_10
; %bb.1:
	mov	x21, x2
	mov	w8, w2
	lsl	x8, x8, #2
	add	x8, x8, w1, uxtw
Lloh0:
	adrp	x9, _SF_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	x8, x9
	b.hi	LBB0_10
; %bb.2:
	mov	x19, x4
	mov	x20, x3
	mov	x22, x0
	mov	x0, x1
	bl	_swab32
Lloh3:
	adrp	x8, _SF_RD_DATA_FAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SF_RD_DATA_FAST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w3, w8, w0
	mov	x0, x22
	mov	w1, #4
	mov	w2, #1
	bl	_sf1_write
	cbnz	w0, LBB0_11
; %bb.3:
	mov	x0, x22
	mov	w1, #1
	mov	w2, #1
	mov	x3, x20
	bl	_sf1_read
	cbnz	w0, LBB0_11
; %bb.4:
	cbnz	w21, LBB0_7
; %bb.5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	add	x20, x20, #4
	subs	w21, w21, #1
	b.eq	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #1
	cset	w2, ne
	mov	x0, x22
	mov	w1, #4
	mov	x3, x20
	bl	_sf1_read
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w19, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x20]
	bl	_htonl
	str	w0, [x20]
	b	LBB0_6
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SF_SIZE,4,2                    ; @SF_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SF_RD_DATA_FAST,4,2            ; @SF_RD_DATA_FAST
	.no_dead_strip	_t3_read_flash
.subsections_via_symbols
