	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_sync_point_queue       ## -- Begin function etnaviv_sync_point_queue
	.p2align	4, 0x90
_etnaviv_sync_point_queue:              ## @etnaviv_sync_point_queue
	.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
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leaq	12(%rdi), %r12
	movl	12(%rdi), %r14d
	addl	$-16, %r14d
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_etnaviv_buffer_reserve
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_VIVS_GL_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r13d, %edi
	callq	_VIVS_GL_EVENT_EVENT_ID
	movq	_VIVS_GL_EVENT_FROM_PE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_CMD_LOAD_STATE
	movq	%r12, %rdi
	callq	_CMD_END
	movq	%r12, %rdi
	callq	_CMD_WAIT
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_etnaviv_cmdbuf_get_va
	movslq	12(%rbx), %rcx
	leaq	(%rax,%rcx), %rdx
	addq	$-4, %rdx
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_CMD_LINK
	movq	_VIV_FE_LINK_HEADER_OP_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$4, %edi
	callq	_VIV_FE_LINK_HEADER_PREFETCH
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_etnaviv_buffer_replace_wait    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIVS_GL_EVENT,4,2              ## @VIVS_GL_EVENT
	.comm	_VIVS_GL_EVENT_FROM_PE,4,2      ## @VIVS_GL_EVENT_FROM_PE
	.comm	_VIV_FE_LINK_HEADER_OP_LINK,4,2 ## @VIV_FE_LINK_HEADER_OP_LINK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_sync_point_queue       ; -- Begin function etnaviv_sync_point_queue
	.p2align	2
_etnaviv_sync_point_queue:              ; @etnaviv_sync_point_queue
	.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
	mov	x21, x1
	mov	x22, x0
	mov	x19, x0
	ldr	w8, [x19, #12]!
	sub	w20, w8, #16
	add	x0, x0, #8
	bl	_lockdep_assert_held
	mov	x0, x22
	mov	x1, x19
	mov	w2, #4
	bl	_etnaviv_buffer_reserve
	mov	x23, x0
Lloh0:
	adrp	x8, _VIVS_GL_EVENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIVS_GL_EVENT@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_VIVS_GL_EVENT_EVENT_ID
Lloh3:
	adrp	x8, _VIVS_GL_EVENT_FROM_PE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIVS_GL_EVENT_FROM_PE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x24
	bl	_CMD_LOAD_STATE
	mov	x0, x19
	bl	_CMD_END
	mov	x0, x19
	bl	_CMD_WAIT
	ldr	x1, [x22]
	mov	x0, x19
	bl	_etnaviv_cmdbuf_get_va
	ldrsw	x8, [x19]
	add	x8, x0, x8
	sub	x2, x8, #4
	mov	x0, x19
	mov	w1, #2
	bl	_CMD_LINK
Lloh6:
	adrp	x8, _VIV_FE_LINK_HEADER_OP_LINK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIV_FE_LINK_HEADER_OP_LINK@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	mov	w0, #4
	bl	_VIV_FE_LINK_HEADER_PREFETCH
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	mov	x3, x23
	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
	b	_etnaviv_buffer_replace_wait
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIVS_GL_EVENT,4,2              ; @VIVS_GL_EVENT
	.comm	_VIVS_GL_EVENT_FROM_PE,4,2      ; @VIVS_GL_EVENT_FROM_PE
	.comm	_VIV_FE_LINK_HEADER_OP_LINK,4,2 ; @VIV_FE_LINK_HEADER_OP_LINK
.subsections_via_symbols
