	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_gpu_start_fe           ## -- Begin function etnaviv_gpu_start_fe
	.p2align	4, 0x90
_etnaviv_gpu_start_fe:                  ## @etnaviv_gpu_start_fe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %edx
	movq	%rdi, %r12
	movq	_VIVS_FE_COMMAND_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gpu_write
	movq	_VIVS_FE_COMMAND_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_VIVS_FE_COMMAND_CONTROL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_VIVS_FE_COMMAND_CONTROL_PREFETCH
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_gpu_write
	movq	(%r12), %rax
	movq	_ETNA_SEC_KERNEL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_VIVS_MMUv2_SEC_COMMAND_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_VIVS_MMUv2_SEC_COMMAND_CONTROL_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_VIVS_MMUv2_SEC_COMMAND_CONTROL_PREFETCH
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpu_write                      ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIVS_FE_COMMAND_ADDRESS,4,2    ## @VIVS_FE_COMMAND_ADDRESS
	.comm	_VIVS_FE_COMMAND_CONTROL,4,2    ## @VIVS_FE_COMMAND_CONTROL
	.comm	_VIVS_FE_COMMAND_CONTROL_ENABLE,4,2 ## @VIVS_FE_COMMAND_CONTROL_ENABLE
	.comm	_ETNA_SEC_KERNEL,8,3            ## @ETNA_SEC_KERNEL
	.comm	_VIVS_MMUv2_SEC_COMMAND_CONTROL,4,2 ## @VIVS_MMUv2_SEC_COMMAND_CONTROL
	.comm	_VIVS_MMUv2_SEC_COMMAND_CONTROL_ENABLE,4,2 ## @VIVS_MMUv2_SEC_COMMAND_CONTROL_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_gpu_start_fe           ; -- Begin function etnaviv_gpu_start_fe
	.p2align	2
_etnaviv_gpu_start_fe:                  ; @etnaviv_gpu_start_fe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VIVS_FE_COMMAND_ADDRESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIVS_FE_COMMAND_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gpu_write
Lloh3:
	adrp	x8, _VIVS_FE_COMMAND_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIVS_FE_COMMAND_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _VIVS_FE_COMMAND_CONTROL_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIVS_FE_COMMAND_CONTROL_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_VIVS_FE_COMMAND_CONTROL_PREFETCH
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	bl	_gpu_write
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _ETNA_SEC_KERNEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ETNA_SEC_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _VIVS_MMUv2_SEC_COMMAND_CONTROL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIVS_MMUv2_SEC_COMMAND_CONTROL@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
Lloh15:
	adrp	x8, _VIVS_MMUv2_SEC_COMMAND_CONTROL_ENABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIVS_MMUv2_SEC_COMMAND_CONTROL_ENABLE@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_VIVS_MMUv2_SEC_COMMAND_CONTROL_PREFETCH
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gpu_write
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VIVS_FE_COMMAND_ADDRESS,4,2    ; @VIVS_FE_COMMAND_ADDRESS
	.comm	_VIVS_FE_COMMAND_CONTROL,4,2    ; @VIVS_FE_COMMAND_CONTROL
	.comm	_VIVS_FE_COMMAND_CONTROL_ENABLE,4,2 ; @VIVS_FE_COMMAND_CONTROL_ENABLE
	.comm	_ETNA_SEC_KERNEL,8,3            ; @ETNA_SEC_KERNEL
	.comm	_VIVS_MMUv2_SEC_COMMAND_CONTROL,4,2 ; @VIVS_MMUv2_SEC_COMMAND_CONTROL
	.comm	_VIVS_MMUv2_SEC_COMMAND_CONTROL_ENABLE,4,2 ; @VIVS_MMUv2_SEC_COMMAND_CONTROL_ENABLE
.subsections_via_symbols
