	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_get_int_queue_base        ## -- Begin function goya_get_int_queue_base
	.p2align	4, 0x90
_goya_get_int_queue_base:               ## @goya_get_int_queue_base
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movl	16(%rdi), %esi
	movl	%esi, (%rdx)
	leal	-128(%rax), %esi
	cmpl	$9, %esi
	jae	LBB0_1
## %bb.2:
	movq	8(%rdi), %r8
	movq	_SRAM_CFG_BAR_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movslq	%esi, %rax
	leaq	l_switch.table.goya_get_int_queue_base(%rip), %rsi
	movq	(%rsi,%rax,8), %rsi
	leaq	l_switch.table.goya_get_int_queue_base.1(%rip), %rdi
	movq	(%rdi,%rax,8), %rax
	movslq	(%rsi), %rsi
	movl	(%rax), %edi
	movq	%rsi, %rax
	addq	(%r8,%r9,8), %rax
	movl	%edi, (%rcx)
	addl	%esi, (%rdx)
	popq	%rbp
	retq
LBB0_1:
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRAM_CFG_BAR_ID,8,3            ## @SRAM_CFG_BAR_ID
	.comm	_MME_QMAN_BASE_OFFSET,4,2       ## @MME_QMAN_BASE_OFFSET
	.comm	_MME_QMAN_LENGTH,4,2            ## @MME_QMAN_LENGTH
	.comm	_TPC0_QMAN_BASE_OFFSET,4,2      ## @TPC0_QMAN_BASE_OFFSET
	.comm	_TPC_QMAN_LENGTH,4,2            ## @TPC_QMAN_LENGTH
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got invalid queue id %d\n"

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.goya_get_int_queue_base
l_switch.table.goya_get_int_queue_base:
	.quad	_TPC7_QMAN_BASE_OFFSET
	.quad	_TPC6_QMAN_BASE_OFFSET
	.quad	_TPC5_QMAN_BASE_OFFSET
	.quad	_TPC4_QMAN_BASE_OFFSET
	.quad	_TPC3_QMAN_BASE_OFFSET
	.quad	_TPC2_QMAN_BASE_OFFSET
	.quad	_TPC1_QMAN_BASE_OFFSET
	.quad	_TPC0_QMAN_BASE_OFFSET
	.quad	_MME_QMAN_BASE_OFFSET

	.p2align	3                               ## @switch.table.goya_get_int_queue_base.1
l_switch.table.goya_get_int_queue_base.1:
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_MME_QMAN_LENGTH

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_get_int_queue_base        ; -- Begin function goya_get_int_queue_base
	.p2align	2
_goya_get_int_queue_base:               ; @goya_get_int_queue_base
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w9, [x0, #16]
	str	w9, [x2]
	sub	w9, w1, #128
	cmp	w9, #9
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x10, _SRAM_CFG_BAR_ID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SRAM_CFG_BAR_ID@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x8, [x8, x10, lsl #3]
	sbfiz	x9, x9, #3, #32
Lloh3:
	adrp	x10, l_switch.table.goya_get_int_queue_base@PAGE
Lloh4:
	add	x10, x10, l_switch.table.goya_get_int_queue_base@PAGEOFF
	ldr	x10, [x10, x9]
Lloh5:
	adrp	x11, l_switch.table.goya_get_int_queue_base.1@PAGE
Lloh6:
	add	x11, x11, l_switch.table.goya_get_int_queue_base.1@PAGEOFF
	ldr	x9, [x11, x9]
	ldrsw	x10, [x10]
	ldr	w9, [x9]
	str	w9, [x3]
	add	x0, x8, x10
	ldr	w8, [x2]
	add	w8, w8, w10
	str	w8, [x2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x8, x1
	ldr	w0, [x0]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_err
	mov	x0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SRAM_CFG_BAR_ID,8,3            ; @SRAM_CFG_BAR_ID
	.comm	_MME_QMAN_BASE_OFFSET,4,2       ; @MME_QMAN_BASE_OFFSET
	.comm	_MME_QMAN_LENGTH,4,2            ; @MME_QMAN_LENGTH
	.comm	_TPC0_QMAN_BASE_OFFSET,4,2      ; @TPC0_QMAN_BASE_OFFSET
	.comm	_TPC_QMAN_LENGTH,4,2            ; @TPC_QMAN_LENGTH
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got invalid queue id %d\n"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.goya_get_int_queue_base
l_switch.table.goya_get_int_queue_base:
	.quad	_TPC7_QMAN_BASE_OFFSET
	.quad	_TPC6_QMAN_BASE_OFFSET
	.quad	_TPC5_QMAN_BASE_OFFSET
	.quad	_TPC4_QMAN_BASE_OFFSET
	.quad	_TPC3_QMAN_BASE_OFFSET
	.quad	_TPC2_QMAN_BASE_OFFSET
	.quad	_TPC1_QMAN_BASE_OFFSET
	.quad	_TPC0_QMAN_BASE_OFFSET
	.quad	_MME_QMAN_BASE_OFFSET

	.p2align	3                               ; @switch.table.goya_get_int_queue_base.1
l_switch.table.goya_get_int_queue_base.1:
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_TPC_QMAN_LENGTH
	.quad	_MME_QMAN_LENGTH

.subsections_via_symbols
