	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_clk_read                 ## -- Begin function gk20a_clk_read
	.p2align	4, 0x90
_gk20a_clk_read:                        ## @gk20a_clk_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_gk20a_clk
	movq	%rax, %r14
	cmpl	$128, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_4
## %bb.2:
	movq	(%r14), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_3:
	leaq	-24(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gk20a_pllg_read_mnp
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gk20a_pllg_calc_rate
	movq	_GK20A_CLK_GPC_MDIV@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_nvkm_error
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GK20A_CLK_GPC_MDIV,4,2         ## @GK20A_CLK_GPC_MDIV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid clock source %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gk20a_clk_read                 ; -- Begin function gk20a_clk_read
	.p2align	2
_gk20a_clk_read:                        ; @gk20a_clk_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	bl	_gk20a_clk
	mov	x19, x0
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_gk20a_pllg_read_mnp
	add	x1, sp, #8
	mov	x0, x19
	bl	_gk20a_pllg_calc_rate
Lloh0:
	adrp	x8, _GK20A_CLK_GPC_MDIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GK20A_CLK_GPC_MDIV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w0, w0, w8
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_nvkm_error
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GK20A_CLK_GPC_MDIV,4,2         ; @GK20A_CLK_GPC_MDIV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid clock source %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
