	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PpcDiskReadLogicalSectors      ## -- Begin function PpcDiskReadLogicalSectors
	.p2align	4, 0x90
_PpcDiskReadLogicalSectors:             ## @PpcDiskReadLogicalSectors
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	_part_handle@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	cmpl	$-1, %edi
	jne	LBB0_4
## %bb.1:
	movq	_BootPart@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ofw_open
	movl	%eax, %edi
	movl	%eax, (%r12)
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_4:
	movl	%ebx, %esi
	sarl	$25, %esi
	shll	$9, %ebx
	movl	%ebx, %edx
	callq	_ofw_seek
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_3
LBB0_6:
	movl	(%r12), %edi
	shll	$9, %r15d
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_ofw_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	setg	%al
	jmp	LBB0_7
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_part_handle,4,2                ## @part_handle
	.comm	_BootPart,4,2                   ## @BootPart
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Seek to %x failed\n"

L_str:                                  ## @str
	.asciz	"Could not open any disk devices we know about"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PpcDiskReadLogicalSectors      ; -- Begin function PpcDiskReadLogicalSectors
	.p2align	2
_PpcDiskReadLogicalSectors:             ; @PpcDiskReadLogicalSectors
	.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, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x22, _part_handle@GOTPAGE
Lloh1:
	ldr	x22, [x22, _part_handle@GOTPAGEOFF]
	ldr	w0, [x22]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _BootPart@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BootPart@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_ofw_open
	str	w0, [x22]
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_2:
	asr	w1, w21, #25
	lsl	w21, w21, #9
	mov	x2, x21
	bl	_ofw_seek
	cbz	x0, LBB0_4
; %bb.3:
	str	x21, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_6
LBB0_4:
	ldr	w0, [x22]
	lsl	w2, w20, #9
	mov	x1, x19
	bl	_ofw_read
	cmp	w0, #0
	cset	w0, gt
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x0, l_str@PAGE
Lloh8:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_6:
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_part_handle,4,2                ; @part_handle
	.comm	_BootPart,4,2                   ; @BootPart
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Seek to %x failed\n"

l_str:                                  ; @str
	.asciz	"Could not open any disk devices we know about"

.subsections_via_symbols
