	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adreno_submit                  ## -- Begin function adreno_submit
	.p2align	4, 0x90
_adreno_submit:                         ## @adreno_submit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_to_adreno_gpu
	movq	%rax, %r12
	movq	16(%rbx), %r15
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_OUT_PKT3
	movq	8(%rbx), %rax
	movl	8(%rax,%r13), %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movq	8(%rbx), %rax
	movl	4(%rax,%r13), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movq	%r15, %rdi
	callq	_OUT_PKT2
	movl	(%rbx), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movl	%eax, %ecx
	addq	$12, %r13
	cmpq	%rcx, %r14
	jae	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rcx
	movl	(%rcx,%r13), %ecx
	cmpl	$130, %ecx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %ecx
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rcx, (%rdx)
	je	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_adreno_is_a430
	movq	_CP_INDIRECT_BUFFER_PFE@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CP_INDIRECT_BUFFER_PFD@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_9:
	movq	_REG_AXXX_CP_SCRATCH_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_OUT_PKT0
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movq	%r12, %rdi
	callq	_adreno_is_a3xx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_adreno_is_a4xx
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	_CP_EVENT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_OUT_PKT3
	movq	_HLSQ_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
LBB0_12:
	movq	_CP_WAIT_FOR_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_OUT_PKT3
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_OUT_RING
	movq	%r12, %rdi
	callq	_adreno_is_a2xx
	movl	%eax, %r13d
	movq	_CP_EVENT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$3, %edx
	callq	_OUT_PKT3
	movq	_CACHE_FLUSH_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.14:
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_OUT_RING
	movq	_fence@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rbmemptr
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movq	_CP_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_OUT_PKT3
	movl	$-2147483648, %esi              ## imm = 0x80000000
	jmp	LBB0_15
LBB0_13:
	movl	$31, %edi
	callq	_BIT
	orl	%eax, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_OUT_RING
	movq	_fence@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rbmemptr
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_OUT_RING
	movl	4(%rbx), %esi
LBB0_15:
	movq	%r15, %rdi
	callq	_OUT_RING
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_INDIRECT_BUFFER_PFE,4,2     ## @CP_INDIRECT_BUFFER_PFE
	.comm	_CP_INDIRECT_BUFFER_PFD,4,2     ## @CP_INDIRECT_BUFFER_PFD
	.comm	_REG_AXXX_CP_SCRATCH_REG2,4,2   ## @REG_AXXX_CP_SCRATCH_REG2
	.comm	_CP_EVENT_WRITE,4,2             ## @CP_EVENT_WRITE
	.comm	_HLSQ_FLUSH,4,2                 ## @HLSQ_FLUSH
	.comm	_CP_WAIT_FOR_IDLE,4,2           ## @CP_WAIT_FOR_IDLE
	.comm	_CACHE_FLUSH_TS,4,2             ## @CACHE_FLUSH_TS
	.comm	_fence,4,2                      ## @fence
	.comm	_CP_INTERRUPT,4,2               ## @CP_INTERRUPT
	.comm	_CP_SET_CONSTANT,4,2            ## @CP_SET_CONSTANT
	.comm	_REG_A3XX_HLSQ_CL_KERNEL_GROUP_X_REG,4,2 ## @REG_A3XX_HLSQ_CL_KERNEL_GROUP_X_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adreno_submit                  ; -- Begin function adreno_submit
	.p2align	2
_adreno_submit:                         ; @adreno_submit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	bl	_to_adreno_gpu
	mov	x22, x0
	ldr	x20, [x21, #16]
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	ldr	x9, [x19, #8]
	ldr	x26, [x9]
Lloh0:
	adrp	x27, _CP_INDIRECT_BUFFER_PFE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _CP_INDIRECT_BUFFER_PFE@GOTPAGEOFF]
Lloh2:
	adrp	x28, _CP_INDIRECT_BUFFER_PFD@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CP_INDIRECT_BUFFER_PFD@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_adreno_is_a430
	cmp	w0, #0
	csel	x8, x28, x27, eq
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #2
	bl	_OUT_PKT3
	ldr	x8, [x21, #8]
	add	x8, x8, x24
	ldr	w0, [x8, #8]
	bl	_lower_32_bits
	mov	x1, x0
	mov	x0, x20
	bl	_OUT_RING
	ldr	x8, [x21, #8]
	add	x8, x8, x24
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_PKT2
	ldr	w8, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	add	x24, x24, #12
	cmp	x25, w8, uxtw
	b.hs	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	w9, [x9, x24]
	cmp	w9, #130
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #129
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	cmp	x9, x23
	b.ne	LBB0_2
	b	LBB0_3
LBB0_7:
Lloh4:
	adrp	x8, _REG_AXXX_CP_SCRATCH_REG2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REG_AXXX_CP_SCRATCH_REG2@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_OUT_PKT0
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_OUT_RING
	mov	x0, x22
	bl	_adreno_is_a3xx
Lloh7:
	adrp	x24, _CP_EVENT_WRITE@GOTPAGE
Lloh8:
	ldr	x24, [x24, _CP_EVENT_WRITE@GOTPAGEOFF]
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x22
	bl	_adreno_is_a4xx
	cbz	x0, LBB0_10
LBB0_9:
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #1
	bl	_OUT_PKT3
Lloh9:
	adrp	x8, _HLSQ_FLUSH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HLSQ_FLUSH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_OUT_RING
LBB0_10:
Lloh12:
	adrp	x8, _CP_WAIT_FOR_IDLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CP_WAIT_FOR_IDLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_OUT_PKT3
	mov	x0, x20
	mov	w1, #0
	bl	_OUT_RING
	mov	x0, x22
	bl	_adreno_is_a2xx
	mov	x23, x0
	ldr	w1, [x24]
	mov	x0, x20
	mov	w2, #3
	bl	_OUT_PKT3
Lloh15:
	adrp	x8, _CACHE_FLUSH_TS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CACHE_FLUSH_TS@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	cbz	w23, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x22
	bl	_OUT_RING
Lloh18:
	adrp	x8, _fence@GOTPAGE
Lloh19:
	ldr	x8, [x8, _fence@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rbmemptr
	mov	x1, x0
	mov	x0, x20
	bl	_OUT_RING
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_OUT_RING
Lloh21:
	adrp	x8, _CP_INTERRUPT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CP_INTERRUPT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_OUT_PKT3
	mov	w1, #-2147483648
	b	LBB0_13
LBB0_12:
	mov	w0, #31
	bl	_BIT
	orr	w1, w0, w22
	mov	x0, x20
	bl	_OUT_RING
Lloh24:
	adrp	x8, _fence@GOTPAGE
Lloh25:
	ldr	x8, [x8, _fence@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rbmemptr
	mov	x1, x0
	mov	x0, x20
	bl	_OUT_RING
	ldr	w1, [x21, #4]
LBB0_13:
	mov	x0, x20
	bl	_OUT_RING
	ldr	x8, [x19]
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_INDIRECT_BUFFER_PFE,4,2     ; @CP_INDIRECT_BUFFER_PFE
	.comm	_CP_INDIRECT_BUFFER_PFD,4,2     ; @CP_INDIRECT_BUFFER_PFD
	.comm	_REG_AXXX_CP_SCRATCH_REG2,4,2   ; @REG_AXXX_CP_SCRATCH_REG2
	.comm	_CP_EVENT_WRITE,4,2             ; @CP_EVENT_WRITE
	.comm	_HLSQ_FLUSH,4,2                 ; @HLSQ_FLUSH
	.comm	_CP_WAIT_FOR_IDLE,4,2           ; @CP_WAIT_FOR_IDLE
	.comm	_CACHE_FLUSH_TS,4,2             ; @CACHE_FLUSH_TS
	.comm	_fence,4,2                      ; @fence
	.comm	_CP_INTERRUPT,4,2               ; @CP_INTERRUPT
	.comm	_CP_SET_CONSTANT,4,2            ; @CP_SET_CONSTANT
	.comm	_REG_A3XX_HLSQ_CL_KERNEL_GROUP_X_REG,4,2 ; @REG_A3XX_HLSQ_CL_KERNEL_GROUP_X_REG
.subsections_via_symbols
