	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gt215_clk_read
_gt215_clk_read:                        ## @gt215_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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_gt215_clk
	movq	%rax, %r14
	leal	-128(%rbx), %eax
	cmpl	$8, %eax
	ja	LBB0_15
## %bb.1:
	movq	(%r14), %rdi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16896, %edx                    ## imm = 0x4200
	jmp	LBB0_4
LBB0_15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
LBB0_16:
	callq	_nvkm_error
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_17
LBB0_9:
	movq	%r14, %rdi
	movl	$33, %esi
	jmp	LBB0_8
LBB0_5:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$16928, %edx                    ## imm = 0x4220
	jmp	LBB0_4
LBB0_10:
	movq	%r14, %rdi
	movl	$37, %esi
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$16384, %edx                    ## imm = 0x4000
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_read_pll                       ## TAILCALL
LBB0_11:
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nvkm_rd32
                                        ## kill: def $eax killed $eax def $rax
	shrl	$28, %eax
	andl	$3, %eax
	movl	$277000, %ecx                   ## imm = 0x43A08
	leal	-2(%rax), %edx
	cmpl	$2, %edx
	jb	LBB0_17
## %bb.12:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movl	$29, %esi
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	movl	$32, %esi
LBB0_8:
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_read_clk                       ## TAILCALL
LBB0_2:
	movl	(%rdi), %ecx
LBB0_17:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown HOST clock source %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid clock source %d\n"

	.no_dead_strip	_gt215_clk_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gt215_clk_read
_gt215_clk_read:                        ; @gt215_clk_read
	.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	x20, x1
	bl	_gt215_clk
	mov	x19, x0
	sub	w8, w20, #128
	cmp	w8, #8
	b.hi	LBB0_3
; %bb.1:
	ldr	x0, [x19]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16896
	b	LBB0_9
LBB0_3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_4:
	bl	_nvkm_error
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_5:
	mov	x0, x19
	mov	w1, #33
	b	LBB0_13
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #16928
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	mov	w1, #37
	b	LBB0_13
LBB0_8:
	mov	x0, x19
	mov	w1, #2
	mov	w2, #16384
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_read_pll
LBB0_10:
	mov	w1, #49216
	bl	_nvkm_rd32
	ubfx	w2, w0, #28, #2
	sub	w8, w2, #2
	cmp	w8, #2
	b.hs	LBB0_17
; %bb.11:
	mov	w0, #14856
	movk	w0, #4, lsl #16
	b	LBB0_16
LBB0_12:
	mov	x0, x19
	mov	w1, #32
LBB0_13:
	mov	w2, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_read_clk
LBB0_15:
	ldr	w0, [x0]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
	cbnz	w2, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #29
	b	LBB0_14
LBB0_19:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown HOST clock source %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid clock source %d\n"

	.no_dead_strip	_gt215_clk_read
.subsections_via_symbols
