	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_sdio_read_scratch
_if_sdio_read_scratch:                  ## @if_sdio_read_scratch
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	(%rbx), %rsi
	leaq	-28(%rbp), %rdx
	callq	_sdio_readb
	movl	%eax, %r15d
	cmpl	$0, -28(%rbp)
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	movq	(%rbx), %rsi
	incq	%rsi
	leaq	-28(%rbp), %rdx
	callq	_sdio_readb
	shll	$8, %eax
	orl	%eax, %r15d
LBB0_2:
	movl	-28(%rbp), %eax
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	%eax, (%r14)
LBB0_4:
	testl	%eax, %eax
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovel	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_if_sdio_read_scratch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_sdio_read_scratch
_if_sdio_read_scratch:                  ; @if_sdio_read_scratch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	ldr	x1, [x21]
	add	x2, sp, #12
	bl	_sdio_readb
	mov	x20, x0
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	x19, LBB0_3
LBB0_2:
	str	w8, [x19]
LBB0_3:
	mov	w9, #65535
	cmp	w8, #0
	csel	w0, w20, w9, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w0, [x21, #8]
	ldr	x8, [x21]
	add	x1, x8, #1
	add	x2, sp, #12
	bl	_sdio_readb
	orr	w20, w20, w0, lsl #8
	ldr	w8, [sp, #12]
	cbnz	x19, LBB0_2
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_if_sdio_read_scratch
.subsections_via_symbols
