	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_DiskReady                 ## -- Begin function CDVD_DiskReady
	.p2align	4, 0x90
_CDVD_DiskReady:                        ## @CDVD_DiskReady
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_cdvd_inited@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_sbuff@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%edi, (%rcx)
	movq	_CDVD_DISKREADY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	_cd0@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	movl	$4, %r8d
	movq	%rcx, %r9
	pushq	$0
	pushq	$0
	pushq	$4
	callq	_SifCallRpc
	addq	$32, %rsp
	movq	(%rbx), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cdvd_inited,4,2                ## @cdvd_inited
	.comm	_sbuff,8,3                      ## @sbuff
	.comm	_cd0,4,2                        ## @cd0
	.comm	_CDVD_DISKREADY,4,2             ## @CDVD_DISKREADY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_DiskReady                 ; -- Begin function CDVD_DiskReady
	.p2align	2
_CDVD_DiskReady:                        ; @CDVD_DiskReady
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _cdvd_inited@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cdvd_inited@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _sbuff@GOTPAGE
Lloh4:
	ldr	x19, [x19, _sbuff@GOTPAGEOFF]
	ldr	x3, [x19]
	str	w0, [x3]
Lloh5:
	adrp	x8, _CDVD_DISKREADY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CDVD_DISKREADY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	str	wzr, [sp]
Lloh8:
	adrp	x0, _cd0@GOTPAGE
Lloh9:
	ldr	x0, [x0, _cd0@GOTPAGEOFF]
	mov	w2, #0
	mov	w4, #4
	mov	x5, x3
	mov	w6, #4
	mov	w7, #0
	bl	_SifCallRpc
	ldr	x8, [x19]
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cdvd_inited,4,2                ; @cdvd_inited
	.comm	_sbuff,8,3                      ; @sbuff
	.comm	_cd0,4,2                        ; @cd0
	.comm	_CDVD_DISKREADY,4,2             ; @CDVD_DISKREADY
.subsections_via_symbols
