	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tifm_sd_read_fifo
_tifm_sd_read_fifo:                     ## @tifm_sd_read_fifo
	.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, %r12d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	%rsi, %rdi
	callq	_kmap_atomic
	movl	%r12d, %r12d
	addq	%rax, %r12
	movq	_DATA_CARRY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	testl	%ecx, (%rbx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movb	(%rax), %al
	movb	%al, (%r12)
	movl	(%rdx), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movl	$1, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	%r14, %rbx
	cmpl	%r13d, %r15d
	jae	LBB0_8
## %bb.4:
	leal	-1(%r13), %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SOCK_MMCSD_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movl	%r15d, %ecx
	movb	%al, (%r12,%rcx)
	shrl	$8, %eax
	cmpl	%r15d, %r14d
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r15), %ecx
	addl	$2, %r15d
	movl	%ecx, %ecx
	movb	%al, (%r12,%rcx)
	cmpl	%r13d, %r15d
	jb	LBB0_5
	jmp	LBB0_8
LBB0_6:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movb	%al, (%rcx)
	movq	_DATA_CARRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdx)
LBB0_8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kunmap_atomic                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_CARRY,4,2                 ## @DATA_CARRY
	.comm	_SOCK_MMCSD_DATA,8,3            ## @SOCK_MMCSD_DATA
	.no_dead_strip	_tifm_sd_read_fifo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tifm_sd_read_fifo
_tifm_sd_read_fifo:                     ; @tifm_sd_read_fifo
	.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, x0
	ldr	x23, [x0, #16]
	mov	x0, x1
	bl	_kmap_atomic
	mov	x20, x0
	add	x24, x0, w22, uxtw
	ldr	w8, [x19]
Lloh0:
	adrp	x22, _DATA_CARRY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DATA_CARRY@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	strb	w8, [x24]
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	w25, #1
	cmp	w25, w21
	b.lo	LBB0_3
	b	LBB0_7
LBB0_2:
	mov	w25, #0
	cmp	w25, w21
	b.hs	LBB0_7
LBB0_3:
	sub	w26, w21, #1
Lloh2:
	adrp	x27, _SOCK_MMCSD_DATA@GOTPAGE
Lloh3:
	ldr	x27, [x27, _SOCK_MMCSD_DATA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x9, [x27]
	add	x0, x9, x8
	bl	_readl
	strb	w0, [x24, w25, uxtw]
	lsr	w8, w0, #8
	cmp	w26, w25
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w25, #1
	add	w25, w25, #2
	strb	w8, [x24, w9, uxtw]
	cmp	w25, w21
	b.lo	LBB0_4
	b	LBB0_7
LBB0_6:
	ldr	x9, [x19, #8]
	strb	w8, [x9]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	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	_kunmap_atomic
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_CARRY,4,2                 ; @DATA_CARRY
	.comm	_SOCK_MMCSD_DATA,8,3            ; @SOCK_MMCSD_DATA
	.no_dead_strip	_tifm_sd_read_fifo
.subsections_via_symbols
