	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goya_qman0_set_security
_goya_qman0_set_security:               ## @goya_qman0_set_security
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_HW_CAP_MMU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_mmDMA_QM_0_GLBL_PROT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%esi, %esi
	jne	LBB0_2
## %bb.3:
	movq	_QMAN_DMA_PARTLY_TRUSTED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_QMAN_DMA_FULLY_TRUSTED@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_WREG32
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_RREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_CAP_MMU,4,2                 ## @HW_CAP_MMU
	.comm	_mmDMA_QM_0_GLBL_PROT,4,2       ## @mmDMA_QM_0_GLBL_PROT
	.comm	_QMAN_DMA_FULLY_TRUSTED,4,2     ## @QMAN_DMA_FULLY_TRUSTED
	.comm	_QMAN_DMA_PARTLY_TRUSTED,4,2    ## @QMAN_DMA_PARTLY_TRUSTED
	.no_dead_strip	_goya_qman0_set_security
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goya_qman0_set_security
_goya_qman0_set_security:               ; @goya_qman0_set_security
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _HW_CAP_MMU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HW_CAP_MMU@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x19, _mmDMA_QM_0_GLBL_PROT@GOTPAGE
Lloh4:
	ldr	x19, [x19, _mmDMA_QM_0_GLBL_PROT@GOTPAGEOFF]
Lloh5:
	adrp	x8, _QMAN_DMA_PARTLY_TRUSTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QMAN_DMA_PARTLY_TRUSTED@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh7:
	adrp	x9, _QMAN_DMA_FULLY_TRUSTED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QMAN_DMA_FULLY_TRUSTED@GOTPAGEOFF]
	cmp	w1, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	bl	_WREG32
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RREG32
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_CAP_MMU,4,2                 ; @HW_CAP_MMU
	.comm	_mmDMA_QM_0_GLBL_PROT,4,2       ; @mmDMA_QM_0_GLBL_PROT
	.comm	_QMAN_DMA_FULLY_TRUSTED,4,2     ; @QMAN_DMA_FULLY_TRUSTED
	.comm	_QMAN_DMA_PARTLY_TRUSTED,4,2    ; @QMAN_DMA_PARTLY_TRUSTED
	.no_dead_strip	_goya_qman0_set_security
.subsections_via_symbols
