	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a6xx_get_timestamp
_a6xx_get_timestamp:                    ## @a6xx_get_timestamp
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_to_adreno_gpu
	movq	%rax, %rdi
	callq	_to_a6xx_gpu
	movq	%rax, %rbx
	movq	_GMU_OOB_GPU_SET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_a6xx_gmu_set_oob
	movq	_REG_A6XX_RBBM_PERFCTR_CP_0_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_A6XX_RBBM_PERFCTR_CP_0_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_gpu_read64
	movl	%eax, (%r14)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_a6xx_gmu_clear_oob
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMU_OOB_GPU_SET,4,2            ## @GMU_OOB_GPU_SET
	.comm	_REG_A6XX_RBBM_PERFCTR_CP_0_LO,4,2 ## @REG_A6XX_RBBM_PERFCTR_CP_0_LO
	.comm	_REG_A6XX_RBBM_PERFCTR_CP_0_HI,4,2 ## @REG_A6XX_RBBM_PERFCTR_CP_0_HI
	.no_dead_strip	_a6xx_get_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a6xx_get_timestamp
_a6xx_get_timestamp:                    ; @a6xx_get_timestamp
	.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	x19, x1
	mov	x20, x0
	bl	_to_adreno_gpu
	bl	_to_a6xx_gpu
	mov	x21, x0
Lloh0:
	adrp	x22, _GMU_OOB_GPU_SET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GMU_OOB_GPU_SET@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_a6xx_gmu_set_oob
Lloh2:
	adrp	x8, _REG_A6XX_RBBM_PERFCTR_CP_0_LO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_A6XX_RBBM_PERFCTR_CP_0_LO@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _REG_A6XX_RBBM_PERFCTR_CP_0_HI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_A6XX_RBBM_PERFCTR_CP_0_HI@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_gpu_read64
	str	w0, [x19]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_a6xx_gmu_clear_oob
	mov	w0, #0
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GMU_OOB_GPU_SET,4,2            ; @GMU_OOB_GPU_SET
	.comm	_REG_A6XX_RBBM_PERFCTR_CP_0_LO,4,2 ; @REG_A6XX_RBBM_PERFCTR_CP_0_LO
	.comm	_REG_A6XX_RBBM_PERFCTR_CP_0_HI,4,2 ; @REG_A6XX_RBBM_PERFCTR_CP_0_HI
	.no_dead_strip	_a6xx_get_timestamp
.subsections_via_symbols
