	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kfd_ioctl_get_clock_counters
_kfd_ioctl_get_clock_counters:          ## @kfd_ioctl_get_clock_counters
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	24(%rdx), %edi
	callq	_kfd_device_by_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %edi
	callq	_amdgpu_amdkfd_get_gpu_clock_counter
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_ktime_get_raw_ns
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
	callq	_ktime_get_boottime_ns
	movl	%eax, 4(%rbx)
	movl	$1000000000, (%rbx)             ## imm = 0x3B9ACA00
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_kfd_ioctl_get_clock_counters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kfd_ioctl_get_clock_counters
_kfd_ioctl_get_clock_counters:          ; @kfd_ioctl_get_clock_counters
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	w0, [x2, #24]
	bl	_kfd_device_by_id
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x0]
	bl	_amdgpu_amdkfd_get_gpu_clock_counter
LBB0_2:
	str	x0, [x19, #16]
	bl	_ktime_get_raw_ns
	str	w0, [x19, #8]
	bl	_ktime_get_boottime_ns
	mov	w8, #51712
	movk	w8, #15258, lsl #16
	stp	w8, w0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_kfd_ioctl_get_clock_counters
.subsections_via_symbols
