	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_init_tpc_cmdq
_goya_init_tpc_cmdq:                    ## @goya_init_tpc_cmdq
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_mmTPC1_CMDQ_CQ_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_mmTPC0_CMDQ_CQ_CFG1@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	imull	%esi, %ebx
	movq	_CFG_BASE@GOTPCREL(%rip), %r15
	movq	_mmSYNC_MNGR_MON_PAY_ADDRL_0@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_lower_32_bits
	movl	%eax, %r13d
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_upper_32_bits
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_mmSYNC_MNGR_SOB_OBJ_0@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_lower_32_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_upper_32_bits
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_lower_32_bits
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_upper_32_bits
	movl	%eax, %r15d
	movq	_mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movl	%r13d, %esi
	callq	_WREG32
	movq	_mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_mmTPC0_CMDQ_CQ_CFG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movl	$1310740, %esi                  ## imm = 0x140014
	callq	_WREG32
	movq	_mmTPC0_CMDQ_GLBL_ERR_ADDR_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_mmTPC0_CMDQ_GLBL_ERR_ADDR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movl	%r15d, %esi
	callq	_WREG32
	movq	_mmTPC0_CMDQ_GLBL_ERR_WDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movq	_GOYA_ASYNC_EVENT_ID_TPC0_CMDQ@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movl	%r14d, %esi
	callq	_WREG32
	movq	_mmTPC0_CMDQ_GLBL_ERR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movq	_CMDQ_TPC_ERR_MSG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	movq	_mmTPC0_CMDQ_GLBL_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	movq	_CMDQ_TPC_ERR_PROT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WREG32
	movq	_mmTPC0_CMDQ_GLBL_CFG0@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movq	_CMDQ_TPC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmTPC1_CMDQ_CQ_CFG1,4,2        ## @mmTPC1_CMDQ_CQ_CFG1
	.comm	_mmTPC0_CMDQ_CQ_CFG1,4,2        ## @mmTPC0_CMDQ_CQ_CFG1
	.comm	_CFG_BASE,8,3                   ## @CFG_BASE
	.comm	_mmSYNC_MNGR_MON_PAY_ADDRL_0,8,3 ## @mmSYNC_MNGR_MON_PAY_ADDRL_0
	.comm	_mmSYNC_MNGR_SOB_OBJ_0,8,3      ## @mmSYNC_MNGR_SOB_OBJ_0
	.comm	_mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR,8,3 ## @mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR
	.comm	_mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_LO,4,2 ## @mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_LO
	.comm	_mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_HI,4,2 ## @mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_HI
	.comm	_mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_LO,4,2 ## @mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_LO
	.comm	_mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_HI,4,2 ## @mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_HI
	.comm	_mmTPC0_CMDQ_GLBL_ERR_ADDR_LO,4,2 ## @mmTPC0_CMDQ_GLBL_ERR_ADDR_LO
	.comm	_mmTPC0_CMDQ_GLBL_ERR_ADDR_HI,4,2 ## @mmTPC0_CMDQ_GLBL_ERR_ADDR_HI
	.comm	_mmTPC0_CMDQ_GLBL_ERR_WDATA,4,2 ## @mmTPC0_CMDQ_GLBL_ERR_WDATA
	.comm	_GOYA_ASYNC_EVENT_ID_TPC0_CMDQ,4,2 ## @GOYA_ASYNC_EVENT_ID_TPC0_CMDQ
	.comm	_mmTPC0_CMDQ_GLBL_ERR_CFG,4,2   ## @mmTPC0_CMDQ_GLBL_ERR_CFG
	.comm	_CMDQ_TPC_ERR_MSG_EN,4,2        ## @CMDQ_TPC_ERR_MSG_EN
	.comm	_mmTPC0_CMDQ_GLBL_PROT,4,2      ## @mmTPC0_CMDQ_GLBL_PROT
	.comm	_CMDQ_TPC_ERR_PROT,4,2          ## @CMDQ_TPC_ERR_PROT
	.comm	_mmTPC0_CMDQ_GLBL_CFG0,4,2      ## @mmTPC0_CMDQ_GLBL_CFG0
	.comm	_CMDQ_TPC_ENABLE,4,2            ## @CMDQ_TPC_ENABLE
	.no_dead_strip	_goya_init_tpc_cmdq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_init_tpc_cmdq
_goya_init_tpc_cmdq:                    ; @goya_init_tpc_cmdq
	.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, x1
Lloh0:
	adrp	x8, _mmTPC1_CMDQ_CQ_CFG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmTPC1_CMDQ_CQ_CFG1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x27, _mmTPC0_CMDQ_CQ_CFG1@GOTPAGE
Lloh4:
	ldr	x27, [x27, _mmTPC0_CMDQ_CQ_CFG1@GOTPAGEOFF]
	ldr	w9, [x27]
	sub	w8, w8, w9
Lloh5:
	adrp	x25, _CFG_BASE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _CFG_BASE@GOTPAGEOFF]
	mul	w26, w8, w1
	ldr	x8, [x25]
Lloh7:
	adrp	x21, _mmSYNC_MNGR_MON_PAY_ADDRL_0@GOTPAGE
Lloh8:
	ldr	x21, [x21, _mmSYNC_MNGR_MON_PAY_ADDRL_0@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_lower_32_bits
	mov	x20, x0
	ldr	x8, [x25]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_upper_32_bits
	mov	x21, x0
	ldr	x8, [x25]
Lloh9:
	adrp	x23, _mmSYNC_MNGR_SOB_OBJ_0@GOTPAGE
Lloh10:
	ldr	x23, [x23, _mmSYNC_MNGR_SOB_OBJ_0@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_lower_32_bits
	mov	x22, x0
	ldr	x8, [x25]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_upper_32_bits
	mov	x23, x0
	ldr	x8, [x25]
Lloh11:
	adrp	x28, _mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR@GOTPAGE
Lloh12:
	ldr	x28, [x28, _mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR@GOTPAGEOFF]
	ldr	x9, [x28]
	add	x0, x9, x8
	bl	_lower_32_bits
	mov	x24, x0
	ldr	x8, [x25]
	ldr	x9, [x28]
	add	x0, x9, x8
	bl	_upper_32_bits
	mov	x25, x0
Lloh13:
	adrp	x8, _mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_LO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_LO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	add	w0, w8, w26
	mov	x1, x20
	bl	_WREG32
Lloh16:
	adrp	x8, _mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_HI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_HI@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	add	w0, w8, w26
	mov	x1, x21
	bl	_WREG32
Lloh19:
	adrp	x8, _mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_LO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_LO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	add	w0, w8, w26
	mov	x1, x22
	bl	_WREG32
Lloh22:
	adrp	x8, _mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_HI@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_HI@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	add	w0, w8, w26
	mov	x1, x23
	bl	_WREG32
	ldr	w8, [x27]
	add	w0, w8, w26
	mov	w1, #20
	movk	w1, #20, lsl #16
	bl	_WREG32
Lloh25:
	adrp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
Lloh46:
	adrp	x8, _CMDQ_TPC_ERR_PROT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _CMDQ_TPC_ERR_PROT@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	bl	_WREG32
Lloh49:
	adrp	x8, _mmTPC0_CMDQ_GLBL_CFG0@GOTPAGE
Lloh50:
	ldr	x8, [x8, _mmTPC0_CMDQ_GLBL_CFG0@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	add	w0, w8, w26
Lloh52:
	adrp	x8, _CMDQ_TPC_ENABLE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _CMDQ_TPC_ENABLE@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	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	_WREG32
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmTPC1_CMDQ_CQ_CFG1,4,2        ; @mmTPC1_CMDQ_CQ_CFG1
	.comm	_mmTPC0_CMDQ_CQ_CFG1,4,2        ; @mmTPC0_CMDQ_CQ_CFG1
	.comm	_CFG_BASE,8,3                   ; @CFG_BASE
	.comm	_mmSYNC_MNGR_MON_PAY_ADDRL_0,8,3 ; @mmSYNC_MNGR_MON_PAY_ADDRL_0
	.comm	_mmSYNC_MNGR_SOB_OBJ_0,8,3      ; @mmSYNC_MNGR_SOB_OBJ_0
	.comm	_mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR,8,3 ; @mmGIC_DISTRIBUTOR__5_GICD_SETSPI_NSR
	.comm	_mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_LO,4,2 ; @mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_LO
	.comm	_mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_HI,4,2 ; @mmTPC0_CMDQ_CP_MSG_BASE0_ADDR_HI
	.comm	_mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_LO,4,2 ; @mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_LO
	.comm	_mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_HI,4,2 ; @mmTPC0_CMDQ_CP_MSG_BASE1_ADDR_HI
	.comm	_mmTPC0_CMDQ_GLBL_ERR_ADDR_LO,4,2 ; @mmTPC0_CMDQ_GLBL_ERR_ADDR_LO
	.comm	_mmTPC0_CMDQ_GLBL_ERR_ADDR_HI,4,2 ; @mmTPC0_CMDQ_GLBL_ERR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