	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dataflash_read
_dataflash_read:                        ## @dataflash_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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	8(%r13), %rdi
	leal	(%rdx,%rsi), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%ecx, -108(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_dev_dbg
	movb	4(%r13), %cl
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%r13)
	movl	%eax, %r15d
	shll	%cl, %r15d
	addl	%edx, %r15d
	movq	24(%r13), %r14
	movq	8(%r13), %rdi
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	movl	8(%r14), %r8d
	movl	12(%r14), %r9d
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	-104(%rbp), %r12
	movq	%r12, %rdi
	callq	_spi_message_init
	movq	%r14, -80(%rbp)
	movl	$8, -96(%rbp)
	leaq	-96(%rbp), %rdi
	movq	%r12, %rsi
	callq	_spi_message_add_tail
	leaq	-72(%rbp), %rdi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -64(%rbp)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movl	%eax, -72(%rbp)
	movq	%r12, %rsi
	callq	_spi_message_add_tail
	leaq	16(%r13), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_OP_READ_CONTINUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	%r15d, %eax
	shrl	$16, %eax
	movl	%eax, 4(%r14)
	movl	%r15d, %eax
	shrl	$8, %eax
	movl	%eax, 8(%r14)
	movl	%r15d, 12(%r14)
	movq	8(%r13), %rdi
	movq	%r12, %rsi
	callq	_spi_sync
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r14d, %r14d
	js	LBB0_2
## %bb.1:
	movslq	-104(%rbp), %rax
	addq	$-8, %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	8(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-108(%rbp), %ecx                ## 4-byte Reload
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read 0x%x..0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"READ: (%x) %x %x %x\n"

	.comm	_OP_READ_CONTINUOUS,4,2         ## @OP_READ_CONTINUOUS
L_.str.2:                               ## @.str.2
	.asciz	"read %x..%x --> %d\n"

	.no_dead_strip	_dataflash_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dataflash_read
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dataflash_read:                        ; @dataflash_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	x24, [x0]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	str	q0, [sp, #32]
	ldr	x0, [x24, #8]
	add	w21, w23, w19
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_dbg
	ldp	w8, w9, [x24]
	udiv	w10, w19, w8
	lsl	w9, w10, w9
	msub	w8, w10, w8, w19
	add	w25, w9, w8
	ldr	x26, [x24, #24]
	ldr	x0, [x24, #8]
	ldp	w2, w3, [x26]
	ldp	w8, w9, [x26, #8]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	add	x0, sp, #24
	bl	_spi_message_init
	str	x26, [sp, #48]
	mov	w8, #8
	str	w8, [sp, #32]
	add	x27, sp, #32
	add	x0, sp, #32
	add	x1, sp, #24
	bl	_spi_message_add_tail
	add	x0, x27, #24
	str	x22, [sp, #64]
	str	w23, [sp, #56]
	add	x1, sp, #24
	bl	_spi_message_add_tail
	add	x23, x24, #16
	mov	x0, x23
	bl	_mutex_lock
Lloh7:
	adrp	x8, _OP_READ_CONTINUOUS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OP_READ_CONTINUOUS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x26]
	dup.2s	v0, w25
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	stur	d0, [x26, #4]
	str	w25, [x26, #12]
	ldr	x0, [x24, #8]
	add	x1, sp, #24
	bl	_spi_sync
	mov	x22, x0
	mov	x0, x23
	bl	_mutex_unlock
	tbnz	w22, #31, LBB0_2
; %bb.1:
	mov	w22, #0
	ldrsw	x8, [sp, #24]
	sub	x8, x8, #8
	str	x8, [x20]
	b	LBB0_3
LBB0_2:
	ldr	x0, [x24, #8]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_dev_dbg
LBB0_3:
	ldr	x8, [sp, #88]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read 0x%x..0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"READ: (%x) %x %x %x\n"

	.comm	_OP_READ_CONTINUOUS,4,2         ; @OP_READ_CONTINUOUS
l_.str.2:                               ; @.str.2
	.asciz	"read %x..%x --> %d\n"

	.no_dead_strip	_dataflash_read
.subsections_via_symbols
