	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_buffer_end             ## -- Begin function etnaviv_buffer_end
	.p2align	4, 0x90
_etnaviv_buffer_end:                    ## @etnaviv_buffer_end
	.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, %rbx
	leaq	12(%rdi), %r15
	movl	12(%rdi), %r14d
	addl	$-16, %r14d
	addq	$8, %rdi
	callq	_lockdep_assert_held
	movq	(%rbx), %rax
	movq	_ETNA_PIPE_2D@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_VIVS_GL_FLUSH_CACHE_PE2D@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	jne	LBB0_5
	jmp	LBB0_8
LBB0_2:
	movq	_ETNA_PIPE_3D@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	movq	_VIVS_GL_FLUSH_CACHE_DEPTH@GOTPCREL(%rip), %rax
	movq	_VIVS_GL_FLUSH_CACHE_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_VIVS_GL_FLUSH_CACHE_TEXTURE@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_VIVS_GL_FLUSH_CACHE_TEXTUREVS@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_VIVS_GL_FLUSH_CACHE_SHADER_L2@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$7, %edx
	callq	_etnaviv_buffer_reserve
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_SYNC_RECIPIENT_FE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SYNC_RECIPIENT_PE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_CMD_SEM
	movl	(%r12), %esi
	movq	_SYNC_RECIPIENT_PE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_CMD_STALL
	movq	_VIVS_GL_FLUSH_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_CMD_LOAD_STATE
	movq	(%rbx), %rax
	movq	_ETNA_PIPE_3D@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_VIVS_TS_FLUSH_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VIVS_TS_FLUSH_CACHE_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_CMD_LOAD_STATE
LBB0_7:
	movq	_SYNC_RECIPIENT_FE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_CMD_SEM
	movl	(%rbx), %esi
	movl	(%r12), %edx
	movq	%r15, %rdi
	callq	_CMD_STALL
	movq	%r15, %rdi
	callq	_CMD_END
	movq	_VIV_FE_LINK_HEADER_OP_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$7, %edi
	callq	_VIV_FE_LINK_HEADER_PREFETCH
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_9
LBB0_8:
	movq	_VIV_FE_END_HEADER_OP_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
LBB0_9:
	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	_ETNA_PIPE_2D,8,3               ## @ETNA_PIPE_2D
	.comm	_VIVS_GL_FLUSH_CACHE_PE2D,4,2   ## @VIVS_GL_FLUSH_CACHE_PE2D
	.comm	_ETNA_PIPE_3D,8,3               ## @ETNA_PIPE_3D
	.comm	_VIVS_GL_FLUSH_CACHE_DEPTH,4,2  ## @VIVS_GL_FLUSH_CACHE_DEPTH
	.comm	_VIVS_GL_FLUSH_CACHE_COLOR,4,2  ## @VIVS_GL_FLUSH_CACHE_COLOR
	.comm	_VIVS_GL_FLUSH_CACHE_TEXTURE,4,2 ## @VIVS_GL_FLUSH_CACHE_TEXTURE
	.comm	_VIVS_GL_FLUSH_CACHE_TEXTUREVS,4,2 ## @VIVS_GL_FLUSH_CACHE_TEXTUREVS
	.comm	_VIVS_GL_FLUSH_CACHE_SHADER_L2,4,2 ## @VIVS_GL_FLUSH_CACHE_SHADER_L2
	.comm	_SYNC_RECIPIENT_FE,4,2          ## @SYNC_RECIPIENT_FE
	.comm	_SYNC_RECIPIENT_PE,4,2          ## @SYNC_RECIPIENT_PE
	.comm	_VIVS_GL_FLUSH_CACHE,4,2        ## @VIVS_GL_FLUSH_CACHE
	.comm	_VIVS_TS_FLUSH_CACHE,4,2        ## @VIVS_TS_FLUSH_CACHE
	.comm	_VIVS_TS_FLUSH_CACHE_FLUSH,4,2  ## @VIVS_TS_FLUSH_CACHE_FLUSH
	.comm	_VIV_FE_LINK_HEADER_OP_LINK,4,2 ## @VIV_FE_LINK_HEADER_OP_LINK
	.comm	_VIV_FE_END_HEADER_OP_END,4,2   ## @VIV_FE_END_HEADER_OP_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_etnaviv_buffer_end             ; -- Begin function etnaviv_buffer_end
	.p2align	2
_etnaviv_buffer_end:                    ; @etnaviv_buffer_end
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	mov	x19, x0
	ldr	w8, [x19, #12]!
	sub	w20, w8, #16
	add	x0, x0, #8
	bl	_lockdep_assert_held
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ETNA_PIPE_2D@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETNA_PIPE_2D@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VIVS_GL_FLUSH_CACHE_PE2D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIVS_GL_FLUSH_CACHE_PE2D@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	cbnz	w23, LBB0_4
	b	LBB0_7
LBB0_2:
Lloh6:
	adrp	x9, _ETNA_PIPE_3D@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ETNA_PIPE_3D@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _VIVS_GL_FLUSH_CACHE_DEPTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIVS_GL_FLUSH_CACHE_DEPTH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VIVS_GL_FLUSH_CACHE_COLOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VIVS_GL_FLUSH_CACHE_COLOR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _VIVS_GL_FLUSH_CACHE_TEXTURE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VIVS_GL_FLUSH_CACHE_TEXTURE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _VIVS_GL_FLUSH_CACHE_TEXTUREVS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VIVS_GL_FLUSH_CACHE_TEXTUREVS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _VIVS_GL_FLUSH_CACHE_SHADER_L2@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VIVS_GL_FLUSH_CACHE_SHADER_L2@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w23, w8, w9
	cbz	w23, LBB0_7
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #7
	bl	_etnaviv_buffer_reserve
	mov	x22, x0
Lloh24:
	adrp	x24, _SYNC_RECIPIENT_FE@GOTPAGE
Lloh25:
	ldr	x24, [x24, _SYNC_RECIPIENT_FE@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh26:
	adrp	x25, _SYNC_RECIPIENT_PE@GOTPAGE
Lloh27:
	ldr	x25, [x25, _SYNC_RECIPIENT_PE@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_CMD_SEM
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_CMD_STALL
Lloh28:
	adrp	x8, _VIVS_GL_FLUSH_CACHE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VIVS_GL_FLUSH_CACHE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_CMD_LOAD_STATE
	ldr	x8, [x21]
Lloh31:
	adrp	x9, _ETNA_PIPE_3D@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ETNA_PIPE_3D@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh34:
	adrp	x8, _VIVS_TS_FLUSH_CACHE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _VIVS_TS_FLUSH_CACHE@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _VIVS_TS_FLUSH_CACHE_FLUSH@GOTPAGE
Lloh38:
	ldr	x8, [x8, _VIVS_TS_FLUSH_CACHE_FLUSH@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CMD_LOAD_STATE
LBB0_6:
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_CMD_SEM
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_CMD_STALL
	mov	x0, x19
	bl	_CMD_END
Lloh40:
	adrp	x8, _VIV_FE_LINK_HEADER_OP_LINK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _VIV_FE_LINK_HEADER_OP_LINK@GOTPAGEOFF]
Lloh42:
	ldr	w21, [x8]
	mov	w0, #7
	bl	_VIV_FE_LINK_HEADER_PREFETCH
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	b	LBB0_8
LBB0_7:
Lloh43:
	adrp	x8, _VIV_FE_END_HEADER_OP_END@GOTPAGE
Lloh44:
	ldr	x8, [x8, _VIV_FE_END_HEADER_OP_END@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_etnaviv_buffer_replace_wait
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ETNA_PIPE_2D,8,3               ; @ETNA_PIPE_2D
	.comm	_VIVS_GL_FLUSH_CACHE_PE2D,4,2   ; @VIVS_GL_FLUSH_CACHE_PE2D
	.comm	_ETNA_PIPE_3D,8,3               ; @ETNA_PIPE_3D
	.comm	_VIVS_GL_FLUSH_CACHE_DEPTH,4,2  ; @VIVS_GL_FLUSH_CACHE_DEPTH
	.comm	_VIVS_GL_FLUSH_CACHE_COLOR,4,2  ; @VIVS_GL_FLUSH_CACHE_COLOR
	.comm	_VIVS_GL_FLUSH_CACHE_TEXTURE,4,2 ; @VIVS_GL_FLUSH_CACHE_TEXTURE
	.comm	_VIVS_GL_FLUSH_CACHE_TEXTUREVS,4,2 ; @VIVS_GL_FLUSH_CACHE_TEXTUREVS
	.comm	_VIVS_GL_FLUSH_CACHE_SHADER_L2,4,2 ; @VIVS_GL_FLUSH_CACHE_SHADER_L2
	.comm	_SYNC_RECIPIENT_FE,4,2          ; @SYNC_RECIPIENT_FE
	.comm	_SYNC_RECIPIENT_PE,4,2          ; @SYNC_RECIPIENT_PE
	.comm	_VIVS_GL_FLUSH_CACHE,4,2        ; @VIVS_GL_FLUSH_CACHE
	.comm	_VIVS_TS_FLUSH_CACHE,4,2        ; @VIVS_TS_FLUSH_CACHE
	.comm	_VIVS_TS_FLUSH_CACHE_FLUSH,4,2  ; @VIVS_TS_FLUSH_CACHE_FLUSH
	.comm	_VIV_FE_LINK_HEADER_OP_LINK,4,2 ; @VIV_FE_LINK_HEADER_OP_LINK
	.comm	_VIV_FE_END_HEADER_OP_END,4,2   ; @VIV_FE_END_HEADER_OP_END
.subsections_via_symbols
