	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_init_mme_qmans            ## -- Begin function goya_init_mme_qmans
	.p2align	4, 0x90
_goya_init_mme_qmans:                   ## @goya_init_mme_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	movq	_HW_CAP_MME@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_CFG_BASE@GOTPCREL(%rip), %rax
	movq	_mmSYNC_MNGR_SOB_OBJ_0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	callq	_lower_32_bits
	movl	%eax, %r14d
	movq	(%r15), %rdi
	movq	_CFG_BASE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_upper_32_bits
	movl	%eax, %r15d
	movq	_mmMME_SM_BASE_ADDRESS_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_WREG32
	movq	_mmMME_SM_BASE_ADDRESS_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_WREG32
	movq	%rbx, %rdi
	callq	_goya_init_mme_qman
	movq	%rbx, %rdi
	callq	_goya_init_mme_cmdq
	movl	(%r13), %eax
	orl	%eax, (%r12)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_CAP_MME,4,2                 ## @HW_CAP_MME
	.comm	_CFG_BASE,8,3                   ## @CFG_BASE
	.comm	_mmSYNC_MNGR_SOB_OBJ_0,8,3      ## @mmSYNC_MNGR_SOB_OBJ_0
	.comm	_mmMME_SM_BASE_ADDRESS_LOW,4,2  ## @mmMME_SM_BASE_ADDRESS_LOW
	.comm	_mmMME_SM_BASE_ADDRESS_HIGH,4,2 ## @mmMME_SM_BASE_ADDRESS_HIGH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_init_mme_qmans            ; -- Begin function goya_init_mme_qmans
	.p2align	2
_goya_init_mme_qmans:                   ; @goya_init_mme_qmans
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x22, [x0]
	ldr	w8, [x22]
Lloh0:
	adrp	x23, _HW_CAP_MME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HW_CAP_MME@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _CFG_BASE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CFG_BASE@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x24, _mmSYNC_MNGR_SOB_OBJ_0@GOTPAGE
Lloh5:
	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
	mov	x21, x0
Lloh6:
	adrp	x8, _mmMME_SM_BASE_ADDRESS_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmMME_SM_BASE_ADDRESS_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_WREG32
Lloh9:
	adrp	x8, _mmMME_SM_BASE_ADDRESS_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mmMME_SM_BASE_ADDRESS_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_WREG32
	mov	x0, x19
	bl	_goya_init_mme_qman
	mov	x0, x19
	bl	_goya_init_mme_cmdq
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_CAP_MME,4,2                 ; @HW_CAP_MME
	.comm	_CFG_BASE,8,3                   ; @CFG_BASE
	.comm	_mmSYNC_MNGR_SOB_OBJ_0,8,3      ; @mmSYNC_MNGR_SOB_OBJ_0
	.comm	_mmMME_SM_BASE_ADDRESS_LOW,4,2  ; @mmMME_SM_BASE_ADDRESS_LOW
	.comm	_mmMME_SM_BASE_ADDRESS_HIGH,4,2 ; @mmMME_SM_BASE_ADDRESS_HIGH
.subsections_via_symbols
