	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_Thread                    ## -- Begin function CDVD_Thread
	.p2align	4, 0x90
_CDVD_Thread:                           ## @CDVD_Thread
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%edi, %edi
	callq	_sceSifInitRpc
	xorl	%edi, %edi
	movl	$19456, %esi                    ## imm = 0x4C00
	xorl	%edx, %edx
	callq	_AllocSysMemory
	movq	_buffer@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_SleepThread
LBB0_2:
	xorl	%eax, %eax
	callq	_GetThreadId
	movq	_qd@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sceSifSetRpcQueue
	movq	_CDVD_IRX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CDVD_rpc_server@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r14), %rcx
	movq	%rbx, (%rsp)
	movq	_sd0@GOTPCREL(%rip), %rdi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sceSifRegisterRpc
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sceSifRpcLoop                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_buffer,8,3                     ## @buffer
	.comm	_qd,4,2                         ## @qd
	.comm	_sd0,4,2                        ## @sd0
	.comm	_CDVD_IRX,4,2                   ## @CDVD_IRX
	.comm	_CDVD_rpc_server,4,2            ## @CDVD_rpc_server
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CDVD_Thread                    ; -- Begin function CDVD_Thread
	.p2align	2
_CDVD_Thread:                           ; @CDVD_Thread
	.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	w0, #0
	bl	_sceSifInitRpc
	mov	w0, #0
	mov	w1, #19456
	mov	x2, #0
	bl	_AllocSysMemory
Lloh0:
	adrp	x20, _buffer@GOTPAGE
Lloh1:
	ldr	x20, [x20, _buffer@GOTPAGEOFF]
	str	x0, [x20]
	cbnz	x0, LBB0_2
; %bb.1:
	bl	_SleepThread
LBB0_2:
	bl	_GetThreadId
	mov	x1, x0
Lloh2:
	adrp	x19, _qd@GOTPAGE
Lloh3:
	ldr	x19, [x19, _qd@GOTPAGEOFF]
	mov	x0, x19
	bl	_sceSifSetRpcQueue
Lloh4:
	adrp	x8, _CDVD_IRX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CDVD_IRX@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _CDVD_rpc_server@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CDVD_rpc_server@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	x3, [x20]
Lloh10:
	adrp	x0, _sd0@GOTPAGE
Lloh11:
	ldr	x0, [x0, _sd0@GOTPAGEOFF]
	mov	w4, #0
	mov	w5, #0
	mov	x6, x19
	bl	_sceSifRegisterRpc
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sceSifRpcLoop
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_buffer,8,3                     ; @buffer
	.comm	_qd,4,2                         ; @qd
	.comm	_sd0,4,2                        ; @sd0
	.comm	_CDVD_IRX,4,2                   ; @CDVD_IRX
	.comm	_CDVD_rpc_server,4,2            ; @CDVD_rpc_server
.subsections_via_symbols
