	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_Init                      ## -- Begin function CDVD_Init
	.p2align	4, 0x90
_CDVD_Init:                             ## @CDVD_Init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CDVD_IRX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_cd0@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_SifBindRpc
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_SifBindRpc
	testq	%rax, %rax
	jns	LBB0_2
	jmp	LBB0_5
LBB0_4:
	movq	_cdvd_inited@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cd0,8,3                        ## @cd0
	.comm	_CDVD_IRX,4,2                   ## @CDVD_IRX
	.comm	_cdvd_inited,4,2                ## @cdvd_inited
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_Init                      ; -- Begin function CDVD_Init
	.p2align	2
_CDVD_Init:                             ; @CDVD_Init
	.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
Lloh0:
	adrp	x20, _CDVD_IRX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CDVD_IRX@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x19, _cd0@GOTPAGE
Lloh3:
	ldr	x19, [x19, _cd0@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	bl	_SifBindRpc
	tbnz	x0, #63, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_SifBindRpc
	tbz	x0, #63, LBB0_1
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
Lloh4:
	adrp	x8, _cdvd_inited@GOTPAGE
Lloh5:
	ldr	x8, [x8, _cdvd_inited@GOTPAGEOFF]
	mov	w9, #1
Lloh6:
	str	w9, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cd0,8,3                        ; @cd0
	.comm	_CDVD_IRX,4,2                   ; @CDVD_IRX
	.comm	_cdvd_inited,4,2                ; @cdvd_inited
.subsections_via_symbols
