	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5c73m3_spi_read               ## -- Begin function s5c73m3_spi_read
	.p2align	4, 0x90
_s5c73m3_spi_read:                      ## @s5c73m3_spi_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %ecx
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%r13d
	cmpl	%ecx, %r13d
	ja	LBB0_5
## %bb.1:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$2, %eax
	movl	$1, %r15d
	cmovael	%eax, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	addq	%r12, %rsi
	movq	_SPI_DIR_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_spi_xmit
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%r13d, %ebx
	incl	%r14d
	cmpl	%r15d, %r14d
	jne	LBB0_2
## %bb.4:
	movl	%ebx, %ebx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_5:
	testl	%edx, %edx
	je	LBB0_6
## %bb.8:
	addq	%rbx, %r12
	movq	_SPI_DIR_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spi_xmit                       ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_DIR_RX,4,2                 ## @SPI_DIR_RX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5c73m3_spi_read               ; -- Begin function s5c73m3_spi_read
	.p2align	2
_s5c73m3_spi_read:                      ; @s5c73m3_spi_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	ldr	x20, [x0]
	udiv	w23, w2, w3
	cmp	w3, w2
	b.ls	LBB0_2
; %bb.1:
	mov	x24, #0
	b	LBB0_5
LBB0_2:
	mov	w24, #0
	mov	w25, #0
	cmp	w23, #1
	csinc	w26, w23, wzr, hi
Lloh0:
	adrp	x27, _SPI_DIR_RX@GOTPAGE
Lloh1:
	ldr	x27, [x27, _SPI_DIR_RX@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, x19, w24, uxtw
	ldr	w3, [x27]
	mov	x0, x20
	mov	x2, x21
	bl	_spi_xmit
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, w21
	add	w25, w25, #1
	cmp	w25, w26
	b.ne	LBB0_3
LBB0_5:
	msub	w2, w23, w21, w22
	cbz	w2, LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _SPI_DIR_RX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPI_DIR_RX@GOTPAGEOFF]
	add	x1, x19, x24
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spi_xmit
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_DIR_RX,4,2                 ; @SPI_DIR_RX
.subsections_via_symbols
