	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v3d_flush_l3
_v3d_flush_l3:                          ## @v3d_flush_l3
	.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
	cmpl	$40, (%rdi)
	jg	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_V3D_GCA_CACHE_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_V3D_GCA_READ
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	_V3D_GCA_CACHE_CTRL_FLUSH@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	%eax, %esi
	callq	_V3D_GCA_WRITE
	cmpl	$32, (%rbx)
	jg	LBB0_2
## %bb.3:
	movl	(%r15), %edi
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, %r14d
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_V3D_GCA_WRITE                  ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V3D_GCA_CACHE_CTRL,4,2         ## @V3D_GCA_CACHE_CTRL
	.comm	_V3D_GCA_CACHE_CTRL_FLUSH,4,2   ## @V3D_GCA_CACHE_CTRL_FLUSH
	.no_dead_strip	_v3d_flush_l3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v3d_flush_l3
_v3d_flush_l3:                          ; @v3d_flush_l3
	.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
	ldr	w8, [x0]
	cmp	w8, #40
	b.gt	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _V3D_GCA_CACHE_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _V3D_GCA_CACHE_CTRL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_V3D_GCA_READ
	mov	x20, x0
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _V3D_GCA_CACHE_CTRL_FLUSH@GOTPAGE
Lloh3:
	ldr	x22, [x22, _V3D_GCA_CACHE_CTRL_FLUSH@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w1, w8, w20
	bl	_V3D_GCA_WRITE
	ldr	w8, [x19]
	cmp	w8, #32
	b.gt	LBB0_3
; %bb.2:
	ldr	w0, [x21]
	ldr	w8, [x22]
	bic	w1, w20, w8
	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	_V3D_GCA_WRITE
LBB0_3:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_V3D_GCA_CACHE_CTRL,4,2         ; @V3D_GCA_CACHE_CTRL
	.comm	_V3D_GCA_CACHE_CTRL_FLUSH,4,2   ; @V3D_GCA_CACHE_CTRL_FLUSH
	.no_dead_strip	_v3d_flush_l3
.subsections_via_symbols
