	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_init_tpc_qmans            ## -- Begin function goya_init_tpc_qmans
	.p2align	4, 0x90
_goya_init_tpc_qmans:                   ## @goya_init_tpc_qmans
	.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
	movq	(%rdi), %rcx
	movq	_HW_CAP_TPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_mmTPC1_CFG_SM_BASE_ADDRESS_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_mmTPC0_CFG_SM_BASE_ADDRESS_LOW@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	_CFG_BASE@GOTPCREL(%rip), %r14
	movq	_mmSYNC_MNGR_SOB_OBJ_0@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_lower_32_bits
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_upper_32_bits
	movl	%eax, %ebx
	movq	_TPC_MAX_NUM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_mmTPC0_CFG_SM_BASE_ADDRESS_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r13d, %edi
	movl	%r15d, %esi
	callq	_WREG32
	movq	_mmTPC0_CFG_SM_BASE_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%r13d, %edi
	movl	%ebx, %esi
	callq	_WREG32
	incl	%r14d
	addl	%r12d, %r13d
	movq	_TPC_MAX_NUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jl	LBB0_3
LBB0_4:
	movq	_TPC0_QMAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_goya_init_tpc_qman
	movq	_TPC1_QMAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_goya_init_tpc_qman
	movq	_TPC2_QMAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_goya_init_tpc_qman
	movq	_TPC3_QMAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_goya_init_tpc_qman
	movq	_TPC4_QMAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_goya_init_tpc_qman
	movq	_TPC5_QMAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$5, %edx
	callq	_goya_init_tpc_qman
	movq	_TPC6_QMAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$6, %edx
	callq	_goya_init_tpc_qman
	movq	_TPC7_QMAN_BASE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_goya_init_tpc_qman
	movq	_TPC_MAX_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_goya_init_tpc_cmdq
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_5
LBB0_6:
	movq	_HW_CAP_TPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmTPC1_CFG_SM_BASE_ADDRESS_LOW,4,2 ## @mmTPC1_CFG_SM_BASE_ADDRESS_LOW
	.comm	_mmTPC0_CFG_SM_BASE_ADDRESS_LOW,4,2 ## @mmTPC0_CFG_SM_BASE_ADDRESS_LOW
	.comm	_HW_CAP_TPC,4,2                 ## @HW_CAP_TPC
	.comm	_CFG_BASE,8,3                   ## @CFG_BASE
	.comm	_mmSYNC_MNGR_SOB_OBJ_0,8,3      ## @mmSYNC_MNGR_SOB_OBJ_0
	.comm	_TPC_MAX_NUM,4,2                ## @TPC_MAX_NUM
	.comm	_mmTPC0_CFG_SM_BASE_ADDRESS_HIGH,4,2 ## @mmTPC0_CFG_SM_BASE_ADDRESS_HIGH
	.comm	_TPC0_QMAN_BASE_OFFSET,4,2      ## @TPC0_QMAN_BASE_OFFSET
	.comm	_TPC1_QMAN_BASE_OFFSET,4,2      ## @TPC1_QMAN_BASE_OFFSET
	.comm	_TPC2_QMAN_BASE_OFFSET,4,2      ## @TPC2_QMAN_BASE_OFFSET
	.comm	_TPC3_QMAN_BASE_OFFSET,4,2      ## @TPC3_QMAN_BASE_OFFSET
	.comm	_TPC4_QMAN_BASE_OFFSET,4,2      ## @TPC4_QMAN_BASE_OFFSET
	.comm	_TPC5_QMAN_BASE_OFFSET,4,2      ## @TPC5_QMAN_BASE_OFFSET
	.comm	_TPC6_QMAN_BASE_OFFSET,4,2      ## @TPC6_QMAN_BASE_OFFSET
	.comm	_TPC7_QMAN_BASE_OFFSET,4,2      ## @TPC7_QMAN_BASE_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_init_tpc_qmans            ; -- Begin function goya_init_tpc_qmans
	.p2align	2
_goya_init_tpc_qmans:                   ; @goya_init_tpc_qmans
	.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
	ldr	x22, [x0]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _HW_CAP_TPC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_CAP_TPC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _mmTPC1_CFG_SM_BASE_ADDRESS_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmTPC1_CFG_SM_BASE_ADDRESS_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x25, _mmTPC0_CFG_SM_BASE_ADDRESS_LOW@GOTPAGE
Lloh7:
	ldr	x25, [x25, _mmTPC0_CFG_SM_BASE_ADDRESS_LOW@GOTPAGEOFF]
Lloh8:
	adrp	x21, _CFG_BASE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CFG_BASE@GOTPAGEOFF]
	ldr	w28, [x25]
	ldr	x8, [x21]
Lloh10:
	adrp	x24, _mmSYNC_MNGR_SOB_OBJ_0@GOTPAGE
Lloh11:
	ldr	x24, [x24, _mmSYNC_MNGR_SOB_OBJ_0@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_lower_32_bits
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_upper_32_bits
Lloh12:
	adrp	x24, _TPC_MAX_NUM@GOTPAGE
Lloh13:
	ldr	x24, [x24, _TPC_MAX_NUM@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, x0
	mov	w26, #0
	mov	w27, #0
	sub	w28, w23, w28
Lloh14:
	adrp	x23, _mmTPC0_CFG_SM_BASE_ADDRESS_HIGH@GOTPAGE
Lloh15:
	ldr	x23, [x23, _mmTPC0_CFG_SM_BASE_ADDRESS_HIGH@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	add	w0, w26, w8
	mov	x1, x20
	bl	_WREG32
	ldr	w8, [x23]
	add	w0, w26, w8
	mov	x1, x21
	bl	_WREG32
	add	w27, w27, #1
	ldr	w8, [x24]
	add	w26, w26, w28
	cmp	w27, w8
	b.lt	LBB0_3
LBB0_4:
Lloh16:
	adrp	x8, _TPC0_QMAN_BASE_OFFSET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TPC0_QMAN_BASE_OFFSET@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_goya_init_tpc_qman
Lloh19:
	adrp	x8, _TPC1_QMAN_BASE_OFFSET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TPC1_QMAN_BASE_OFFSET@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_goya_init_tpc_qman
Lloh22:
	adrp	x8, _TPC2_QMAN_BASE_OFFSET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TPC2_QMAN_BASE_OFFSET@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	_goya_init_tpc_qman
Lloh25:
	adrp	x8, _TPC3_QMAN_BASE_OFFSET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TPC3_QMAN_BASE_OFFSET@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_goya_init_tpc_qman
Lloh28:
	adrp	x8, _TPC4_QMAN_BASE_OFFSET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TPC4_QMAN_BASE_OFFSET@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_goya_init_tpc_qman
Lloh31:
	adrp	x8, _TPC5_QMAN_BASE_OFFSET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TPC5_QMAN_BASE_OFFSET@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #5
	bl	_goya_init_tpc_qman
Lloh34:
	adrp	x8, _TPC6_QMAN_BASE_OFFSET@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TPC6_QMAN_BASE_OFFSET@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #6
	bl	_goya_init_tpc_qman
Lloh37:
	adrp	x8, _TPC7_QMAN_BASE_OFFSET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TPC7_QMAN_BASE_OFFSET@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #7
	bl	_goya_init_tpc_qman
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_goya_init_tpc_cmdq
	add	w20, w20, #1
	ldr	w8, [x24]
	cmp	w20, w8
	b.lt	LBB0_6
LBB0_7:
Lloh40:
	adrp	x8, _HW_CAP_TPC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _HW_CAP_TPC@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_8:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_mmTPC1_CFG_SM_BASE_ADDRESS_LOW,4,2 ; @mmTPC1_CFG_SM_BASE_ADDRESS_LOW
	.comm	_mmTPC0_CFG_SM_BASE_ADDRESS_LOW,4,2 ; @mmTPC0_CFG_SM_BASE_ADDRESS_LOW
	.comm	_HW_CAP_TPC,4,2                 ; @HW_CAP_TPC
	.comm	_CFG_BASE,8,3                   ; @CFG_BASE
	.comm	_mmSYNC_MNGR_SOB_OBJ_0,8,3      ; @mmSYNC_MNGR_SOB_OBJ_0
	.comm	_TPC_MAX_NUM,4,2                ; @TPC_MAX_NUM
	.comm	_mmTPC0_CFG_SM_BASE_ADDRESS_HIGH,4,2 ; @mmTPC0_CFG_SM_BASE_ADDRESS_HIGH
	.comm	_TPC0_QMAN_BASE_OFFSET,4,2      ; @TPC0_QMAN_BASE_OFFSET
	.comm	_TPC1_QMAN_BASE_OFFSET,4,2      ; @TPC1_QMAN_BASE_OFFSET
	.comm	_TPC2_QMAN_BASE_OFFSET,4,2      ; @TPC2_QMAN_BASE_OFFSET
	.comm	_TPC3_QMAN_BASE_OFFSET,4,2      ; @TPC3_QMAN_BASE_OFFSET
	.comm	_TPC4_QMAN_BASE_OFFSET,4,2      ; @TPC4_QMAN_BASE_OFFSET
	.comm	_TPC5_QMAN_BASE_OFFSET,4,2      ; @TPC5_QMAN_BASE_OFFSET
	.comm	_TPC6_QMAN_BASE_OFFSET,4,2      ; @TPC6_QMAN_BASE_OFFSET
	.comm	_TPC7_QMAN_BASE_OFFSET,4,2      ; @TPC7_QMAN_BASE_OFFSET
.subsections_via_symbols
