	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_MCI_ReadBlockSwab        ## -- Begin function AT91F_MCI_ReadBlockSwab
	.p2align	4, 0x90
_AT91F_MCI_ReadBlockSwab:               ## @AT91F_MCI_ReadBlockSwab
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	_BUFFER_SIZE_MCI_DEVICE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movb	$0, (%r14,%rdx)
	incq	%rdx
	cmpl	(%rax), %edx
	jl	LBB0_2
LBB0_3:
	movq	_MCI_Device@GOTPCREL(%rip), %rdi
	movq	%r14, %rdx
	callq	_AT91F_MCI_ReadBlock
	movq	_AT91C_MCI_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AT91F_MCIDeviceWaitReady
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	callq	_swab32
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	$128, %rbx
	jne	LBB0_4
## %bb.5:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFER_SIZE_MCI_DEVICE,4,2     ## @BUFFER_SIZE_MCI_DEVICE
	.comm	_MCI_Device,4,2                 ## @MCI_Device
	.comm	_AT91C_MCI_TIMEOUT,4,2          ## @AT91C_MCI_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AT91F_MCI_ReadBlockSwab        ; -- Begin function AT91F_MCI_ReadBlockSwab
	.p2align	2
_AT91F_MCI_ReadBlockSwab:               ; @AT91F_MCI_ReadBlockSwab
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
Lloh0:
	adrp	x8, _BUFFER_SIZE_MCI_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFER_SIZE_MCI_DEVICE@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	strb	wzr, [x19, x9]
	ldr	w10, [x8]
	add	x9, x9, #1
	cmp	w9, w10
	b.lt	LBB0_2
LBB0_3:
Lloh2:
	adrp	x0, _MCI_Device@GOTPAGE
Lloh3:
	ldr	x0, [x0, _MCI_Device@GOTPAGEOFF]
	mov	x2, x19
	bl	_AT91F_MCI_ReadBlock
Lloh4:
	adrp	x8, _AT91C_MCI_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AT91C_MCI_TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_AT91F_MCIDeviceWaitReady
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, x20]
	bl	_swab32
	str	w0, [x19, x20]
	add	x20, x20, #4
	cmp	x20, #512
	b.ne	LBB0_4
; %bb.5:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFER_SIZE_MCI_DEVICE,4,2     ; @BUFFER_SIZE_MCI_DEVICE
	.comm	_MCI_Device,4,2                 ; @MCI_Device
	.comm	_AT91C_MCI_TIMEOUT,4,2          ; @AT91C_MCI_TIMEOUT
.subsections_via_symbols
