	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psp_v11_0_reroute_ih
_psp_v11_0_reroute_ih:                  ## @psp_v11_0_reroute_ih
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_IH_CLIENT_CFG_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_CREDIT_RETURN_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$74827, %ecx                    ## imm = 0x1244B
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_CLIENT_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_RING_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %ebx
	movq	_MP0@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mmMP0_SMN_C2PMSG_69@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$3, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmMP0_SMN_C2PMSG_70@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmMP0_SMN_C2PMSG_64@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_GFX_CTRL_CMD_ID_GBR_IH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	$20, %edi
	callq	_mdelay
	movl	(%r15), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$-2147418113, %ecx              ## imm = 0x8000FFFF
	xorl	%r8d, %r8d
	callq	_psp_wait_for
	movl	(%r12), %esi
	movq	_CREDIT_RETURN_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	movl	$74091, %ecx                    ## imm = 0x1216B
	callq	_REG_SET_FIELD
	movl	(%r12), %esi
	movq	_RING_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_REG_SET_FIELD
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	_mmMP0_SMN_C2PMSG_69@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movq	_mmMP0_SMN_C2PMSG_70@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_WREG32_SOC15
	movl	(%r15), %edi
	movl	(%r13), %edx
	movq	_GFX_CTRL_CMD_ID_GBR_IH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	$20, %edi
	callq	_mdelay
	movl	(%r15), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	movl	$-2147418113, %ecx              ## imm = 0x8000FFFF
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_psp_wait_for                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IH_CLIENT_CFG_DATA,4,2         ## @IH_CLIENT_CFG_DATA
	.comm	_CREDIT_RETURN_ADDR,4,2         ## @CREDIT_RETURN_ADDR
	.comm	_CLIENT_TYPE,4,2                ## @CLIENT_TYPE
	.comm	_RING_ID,4,2                    ## @RING_ID
	.comm	_MP0,4,2                        ## @MP0
	.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_64,4,2        ## @mmMP0_SMN_C2PMSG_64
	.comm	_GFX_CTRL_CMD_ID_GBR_IH_SET,4,2 ## @GFX_CTRL_CMD_ID_GBR_IH_SET
	.no_dead_strip	_psp_v11_0_reroute_ih
.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_reroute_ih
_psp_v11_0_reroute_ih:                  ; @psp_v11_0_reroute_ih
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x22, _IH_CLIENT_CFG_DATA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IH_CLIENT_CFG_DATA@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x23, _CREDIT_RETURN_ADDR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CREDIT_RETURN_ADDR@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w8, #8555
	movk	w8, #1, lsl #16
	add	w3, w8, #736
	mov	w0, #0
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _CLIENT_TYPE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CLIENT_TYPE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
Lloh7:
	adrp	x25, _RING_ID@GOTPAGE
Lloh8:
	ldr	x25, [x25, _RING_ID@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x20, x0
Lloh9:
	adrp	x21, _MP0@GOTPAGE
Lloh10:
	ldr	x21, [x21, _MP0@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh11:
	adrp	x26, _mmMP0_SMN_C2PMSG_69@GOTPAGE
Lloh12:
	ldr	x26, [x26, _mmMP0_SMN_C2PMSG_69@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	w1, #0
	mov	w3, #3
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh13:
	adrp	x27, _mmMP0_SMN_C2PMSG_70@GOTPAGE
Lloh14:
	ldr	x27, [x27, _mmMP0_SMN_C2PMSG_70@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	w1, #0
	mov	x3, x20
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh15:
	adrp	x24, _mmMP0_SMN_C2PMSG_64@GOTPAGE
Lloh16:
	ldr	x24, [x24, _mmMP0_SMN_C2PMSG_64@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh17:
	adrp	x28, _GFX_CTRL_CMD_ID_GBR_IH_SET@GOTPAGE
Lloh18:
	ldr	x28, [x28, _GFX_CTRL_CMD_ID_GBR_IH_SET@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	w1, #0
	bl	_WREG32_SOC15
	mov	w0, #20
	bl	_mdelay
	ldr	w0, [x21]
	ldr	w2, [x24]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-2147483648
	mov	w3, #-2147418113
	mov	w4, #0
	bl	_psp_wait_for
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w0, #0
	mov	w3, #8555
	movk	w3, #1, lsl #16
	bl	_REG_SET_FIELD
	ldr	w1, [x22]
	ldr	w2, [x25]
	mov	w3, #1
	bl	_REG_SET_FIELD
	mov	x20, x0
	ldr	w0, [x21]
	ldr	w2, [x26]
	mov	w1, #0
	mov	w3, #4
	bl	_WREG32_SOC15
	ldr	w0, [x21]
	ldr	w2, [x27]
	mov	w1, #0
	mov	x3, x20
	bl	_WREG32_SOC15
	ldr	w0, [x21]
	ldr	w2, [x24]
	ldr	w3, [x28]
	mov	w1, #0
	bl	_WREG32_SOC15
	mov	w0, #20
	bl	_mdelay
	ldr	w0, [x21]
	ldr	w2, [x24]
	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, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_psp_wait_for
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IH_CLIENT_CFG_DATA,4,2         ; @IH_CLIENT_CFG_DATA
	.comm	_CREDIT_RETURN_ADDR,4,2         ; @CREDIT_RETURN_ADDR
	.comm	_CLIENT_TYPE,4,2                ; @CLIENT_TYPE
	.comm	_RING_ID,4,2                    ; @RING_ID
	.comm	_MP0,4,2                        ; @MP0
	.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_64,4,2        ; @mmMP0_SMN_C2PMSG_64
	.comm	_GFX_CTRL_CMD_ID_GBR_IH_SET,4,2 ; @GFX_CTRL_CMD_ID_GBR_IH_SET
	.no_dead_strip	_psp_v11_0_reroute_ih
.subsections_via_symbols
