	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps3disk_get_disk_geometry
_ps3disk_get_disk_geometry:             ## @ps3disk_get_disk_geometry
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	8(%rdi), %r12d
	movl	%r12d, %edi
	callq	_ps3bus_get_busidx
	movl	%r12d, %edi
	callq	_ps3bus_get_devidx
	movl	%eax, %ebx
	movq	_PS3_LPAR_ID_PME@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_lv1_repository_string
	leaq	L_.str.1(%rip), %rdi
	callq	_lv1_repository_string
	movl	%eax, %r14d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	orl	%ebx, %r14d
	leaq	L_.str.2(%rip), %rdi
	callq	_lv1_repository_string
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	4(%r13), %r9
	leaq	-60(%rbp), %rbx
	movq	%rbx, (%rsp)
	xorl	%r13d, %r13d
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_lv1_get_repository_node_value
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	_PS3_LPAR_ID_PME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	callq	_lv1_repository_string
	leaq	L_.str.1(%rip), %rdi
	callq	_lv1_repository_string
	movq	%rbx, %r15
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	callq	_lv1_repository_string
	movq	%r15, (%rsp)
	movl	%r14d, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_lv1_get_repository_node_value
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.5(%rip), %rsi
LBB0_4:
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_device_printf
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS3_LPAR_ID_PME,4,2            ## @PS3_LPAR_ID_PME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bus"

L_.str.1:                               ## @.str.1
	.asciz	"dev"

L_.str.2:                               ## @.str.2
	.asciz	"blk_size"

L_.str.3:                               ## @.str.3
	.asciz	"Could not get block size (0x%08x)\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.4:                               ## @.str.4
	.asciz	"n_blocks"

L_.str.5:                               ## @.str.5
	.asciz	"Could not get total number of blocks (0x%08x)\n"

	.no_dead_strip	_ps3disk_get_disk_geometry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps3disk_get_disk_geometry
_ps3disk_get_disk_geometry:             ; @ps3disk_get_disk_geometry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	ldr	w19, [x0, #8]
	mov	x0, x19
	bl	_ps3bus_get_busidx
	mov	x0, x19
	bl	_ps3bus_get_devidx
	mov	x21, x0
Lloh0:
	adrp	x24, _PS3_LPAR_ID_PME@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PS3_LPAR_ID_PME@GOTPAGEOFF]
	ldr	w22, [x24]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lv1_repository_string
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lv1_repository_string
	orr	w23, w0, w21
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lv1_repository_string
	mov	x3, x0
	add	x5, x20, #4
	add	x6, sp, #12
	mov	x0, x22
	mov	x2, x23
	mov	w4, #0
	bl	_lv1_get_repository_node_value
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w22, [x24]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_lv1_repository_string
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_lv1_repository_string
	orr	w21, w0, w21
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_lv1_repository_string
	mov	x3, x0
	add	x6, sp, #12
	mov	x0, x22
	mov	x2, x21
	mov	w4, #0
	mov	x5, x20
	bl	_lv1_get_repository_node_value
	cbz	w0, LBB0_5
; %bb.3:
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_device_printf
Lloh18:
	adrp	x8, _ENXIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PS3_LPAR_ID_PME,4,2            ; @PS3_LPAR_ID_PME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus"

l_.str.1:                               ; @.str.1
	.asciz	"dev"

l_.str.2:                               ; @.str.2
	.asciz	"blk_size"

l_.str.3:                               ; @.str.3
	.asciz	"Could not get block size (0x%08x)\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.4:                               ; @.str.4
	.asciz	"n_blocks"

l_.str.5:                               ; @.str.5
	.asciz	"Could not get total number of blocks (0x%08x)\n"

	.no_dead_strip	_ps3disk_get_disk_geometry
.subsections_via_symbols
