	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psp_v11_0_ring_create
_psp_v11_0_ring_create:                 ## @psp_v11_0_ring_create
	.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	%esi, %r14d
	movq	%rdi, %r15
	callq	_psp_v11_0_support_vmr_ring
	movq	%rax, %rbx
	movl	12(%r15), %edi
	callq	_lower_32_bits
	movq	_MP0@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_mmMP0_SMN_C2PMSG_102@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movl	12(%r15), %edi
	callq	_upper_32_bits
	movl	(%r12), %edi
	movq	_mmMP0_SMN_C2PMSG_103@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movq	_GFX_CTRL_CMD_ID_INIT_GPCOM_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_mmMP0_SMN_C2PMSG_101@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	_mmMP0_SMN_C2PMSG_69@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movl	12(%r15), %edi
	callq	_upper_32_bits
	movl	(%r12), %edi
	movq	_mmMP0_SMN_C2PMSG_70@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movl	8(%r15), %ecx
	movl	(%r12), %edi
	movq	_mmMP0_SMN_C2PMSG_71@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	shll	$16, %r14d
	movq	_mmMP0_SMN_C2PMSG_64@GOTPCREL(%rip), %rbx
LBB0_3:
	movl	(%r12), %edi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	movl	%r14d, %ecx
	callq	_WREG32_SOC15
	movl	$20, %edi
	callq	_mdelay
	movl	(%r12), %edi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$-2147418113, %ecx              ## imm = 0x8000FFFF
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psp_wait_for                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MP0,4,2                        ## @MP0
	.comm	_mmMP0_SMN_C2PMSG_102,4,2       ## @mmMP0_SMN_C2PMSG_102
	.comm	_mmMP0_SMN_C2PMSG_103,4,2       ## @mmMP0_SMN_C2PMSG_103
	.comm	_mmMP0_SMN_C2PMSG_101,4,2       ## @mmMP0_SMN_C2PMSG_101
	.comm	_GFX_CTRL_CMD_ID_INIT_GPCOM_RING,4,2 ## @GFX_CTRL_CMD_ID_INIT_GPCOM_RING
	.comm	_mmMP0_SMN_C2PMSG_69,4,2        ## @mmMP0_SMN_C2PMSG_69
	.comm	_mmMP0_SMN_C2PMSG_70,4,2        ## @mmMP0_SMN_C2PMSG_70
	.comm	_mmMP0_SMN_C2PMSG_71,4,2        ## @mmMP0_SMN_C2PMSG_71
	.comm	_mmMP0_SMN_C2PMSG_64,4,2        ## @mmMP0_SMN_C2PMSG_64
	.no_dead_strip	_psp_v11_0_ring_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psp_v11_0_ring_create
_psp_v11_0_ring_create:                 ; @psp_v11_0_ring_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_psp_v11_0_support_vmr_ring
	mov	x21, x0
	ldr	w0, [x19, #12]
	bl	_lower_32_bits
	mov	x3, x0
Lloh0:
	adrp	x22, _MP0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MP0@GOTPAGEOFF]
	ldr	w0, [x22]
	cbz	x21, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _mmMP0_SMN_C2PMSG_102@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_102@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x19, #12]
	bl	_upper_32_bits
	mov	x3, x0
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _mmMP0_SMN_C2PMSG_103@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_103@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
Lloh8:
	adrp	x8, _GFX_CTRL_CMD_ID_INIT_GPCOM_RING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFX_CTRL_CMD_ID_INIT_GPCOM_RING@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x20, _mmMP0_SMN_C2PMSG_101@GOTPAGE
Lloh12:
	ldr	x20, [x20, _mmMP0_SMN_C2PMSG_101@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _mmMP0_SMN_C2PMSG_69@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_69@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w0, [x19, #12]
	bl	_upper_32_bits
	mov	x3, x0
	ldr	w0, [x22]
Lloh16:
	adrp	x8, _mmMP0_SMN_C2PMSG_70@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_70@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
	ldr	w3, [x19, #8]
	ldr	w0, [x22]
Lloh19:
	adrp	x8, _mmMP0_SMN_C2PMSG_71@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mmMP0_SMN_C2PMSG_71@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_WREG32_SOC15
	lsl	w3, w20, #16
Lloh22:
	adrp	x20, _mmMP0_SMN_C2PMSG_64@GOTPAGE
Lloh23:
	ldr	x20, [x20, _mmMP0_SMN_C2PMSG_64@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x22]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_WREG32_SOC15
	mov	w0, #20
	bl	_mdelay
	ldr	w0, [x22]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-2147483648
	mov	w3, #-2147418113
	mov	w4, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_psp_wait_for
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MP0,4,2                        ; @MP0
	.comm	_mmMP0_SMN_C2PMSG_102,4,2       ; @mmMP0_SMN_C2PMSG_102
	.comm	_mmMP0_SMN_C2PMSG_103,4,2       ; @mmMP0_SMN_C2PMSG_103
	.comm	_mmMP0_SMN_C2PMSG_101,4,2       ; @mmMP0_SMN_C2PMSG_101
	.comm	_GFX_CTRL_CMD_ID_INIT_GPCOM_RING,4,2 ; @GFX_CTRL_CMD_ID_INIT_GPCOM_RING
	.comm	_mmMP0_SMN_C2PMSG_69,4,2        ; @mmMP0_SMN_C2PMSG_69
	.comm	_mmMP0_SMN_C2PMSG_70,4,2        ; @mmMP0_SMN_C2PMSG_70
	.comm	_mmMP0_SMN_C2PMSG_71,4,2        ; @mmMP0_SMN_C2PMSG_71
	.comm	_mmMP0_SMN_C2PMSG_64,4,2        ; @mmMP0_SMN_C2PMSG_64
	.no_dead_strip	_psp_v11_0_ring_create
.subsections_via_symbols
