	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp77_clk_read
_mcp77_clk_read:                        ## @mcp77_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_mcp77_clk
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	movl	$49236, %esi                    ## imm = 0xC054
	callq	_nvkm_rd32
	movl	%eax, %r12d
	leal	-128(%r15), %ecx
	cmpl	$9, %ecx
	ja	LBB0_15
## %bb.1:
	movl	%eax, %r13d
	movl	$100000, %eax                   ## imm = 0x186A0
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	%r14, %rdi
	callq	_read_div
	movl	%eax, %ebx
	shrl	$8, %ebx
	andl	$7, %ebx
	testl	$4194304, %r13d                 ## imm = 0x400000
	jne	LBB0_22
## %bb.3:
	movl	$500000, %eax                   ## imm = 0x7A120
	movl	%ebx, %ecx
	shrl	%cl, %eax
	jmp	LBB0_41
LBB0_4:
	andl	$786432, %r13d                  ## imm = 0xC0000
	cmpl	$786432, %r13d                  ## imm = 0xC0000
	je	LBB0_24
## %bb.5:
	cmpl	$524288, %r13d                  ## imm = 0x80000
	je	LBB0_30
## %bb.6:
	testl	%r13d, %r13d
	je	LBB0_29
	jmp	LBB0_15
LBB0_7:
	movl	%r13d, %eax
	notl	%eax
	testl	$50331648, %eax                 ## imm = 0x3000000
	jne	LBB0_9
## %bb.8:
	testl	$512, %r13d                     ## imm = 0x200
	jne	LBB0_25
LBB0_9:
	movq	%r14, %rdi
	movl	$136, %esi
	jmp	LBB0_31
LBB0_10:
	movq	%rbx, %rdi
	movl	$16416, %esi                    ## imm = 0x4020
	callq	_nvkm_rd32
	movl	%eax, %ebx
	shrl	$16, %ebx
	andl	$7, %ebx
	andl	$48, %r13d
	cmpl	$48, %r13d
	je	LBB0_32
## %bb.11:
	cmpl	$32, %r13d
	je	LBB0_33
## %bb.12:
	testl	%r13d, %r13d
	jne	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	testb	$64, %r12b
	jne	LBB0_42
## %bb.14:
	movl	$135, %esi
	jmp	LBB0_23
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_nvkm_debug
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_41
LBB0_17:
	movq	%r14, %rdi
	movl	$131, %esi
	callq	_nvkm_clk_read
                                        ## kill: def $eax killed $eax def $rax
	shll	$2, %eax
	jmp	LBB0_41
LBB0_18:
	movq	%r14, %rdi
	movl	$131, %esi
	callq	_nvkm_clk_read
	addl	%eax, %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	jmp	LBB0_41
LBB0_19:
	movl	(%rbx), %eax
	jmp	LBB0_41
LBB0_20:
	movq	%rbx, %rdi
	movl	$16424, %esi                    ## imm = 0x4028
	callq	_nvkm_rd32
	movl	%eax, %r15d
	shrl	$16, %r15d
	andl	$7, %r15d
	andl	$3, %r13d
	xorl	%eax, %eax
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%r13,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_21:
	movq	%r14, %rdi
	movl	$135, %esi
	jmp	LBB0_37
LBB0_22:
	movq	%r14, %rdi
	movl	$136, %esi
LBB0_23:
	callq	_nvkm_clk_read
	jmp	LBB0_35
LBB0_24:
	movq	%r14, %rdi
	movl	$137, %esi
	jmp	LBB0_31
LBB0_25:
	andl	$3072, %r13d                    ## imm = 0xC00
	cmpl	$2048, %r13d                    ## imm = 0x800
	je	LBB0_29
## %bb.26:
	cmpl	$1024, %r13d                    ## imm = 0x400
	je	LBB0_30
## %bb.27:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	jne	LBB0_41
## %bb.28:
	movq	%r14, %rdi
	movl	$131, %esi
	jmp	LBB0_31
LBB0_29:
	movq	%r14, %rdi
	movl	$134, %esi
	jmp	LBB0_31
LBB0_30:
	movq	%r14, %rdi
	movl	$133, %esi
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_clk_read                  ## TAILCALL
LBB0_32:
	movq	%r14, %rdi
	movl	$16416, %esi                    ## imm = 0x4020
	jmp	LBB0_34
LBB0_33:
	movq	%r14, %rdi
	movl	$16424, %esi                    ## imm = 0x4028
LBB0_34:
	callq	_read_pll
LBB0_35:
                                        ## kill: def $eax killed $eax def $rax
	movl	%ebx, %ecx
	jmp	LBB0_40
LBB0_36:
	movq	%r14, %rdi
	movl	$133, %esi
LBB0_37:
	callq	_nvkm_clk_read
	jmp	LBB0_39
LBB0_38:
	movq	%r14, %rdi
	movl	$16424, %esi                    ## imm = 0x4028
	callq	_read_pll
LBB0_39:
                                        ## kill: def $eax killed $eax def $rax
	movl	%r15d, %ecx
LBB0_40:
	sarl	%cl, %eax
LBB0_41:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	movl	$131, %esi
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_16
	.long	L0_0_set_41
	.long	L0_0_set_4
	.long	L0_0_set_17
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_7
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_41, LBB0_41-LJTI0_1
.set L0_1_set_36, LBB0_36-LJTI0_1
.set L0_1_set_38, LBB0_38-LJTI0_1
LJTI0_1:
	.long	L0_1_set_21
	.long	L0_1_set_41
	.long	L0_1_set_36
	.long	L0_1_set_38
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown clock source %d %08x\n"

	.no_dead_strip	_mcp77_clk_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp77_clk_read
_mcp77_clk_read:                        ; @mcp77_clk_read
	.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	x21, x1
	bl	_mcp77_clk
	mov	x19, x0
	ldr	x22, [x0]
	mov	x0, x22
	mov	w1, #49236
	bl	_nvkm_rd32
	mov	x20, x0
	sub	w8, w21, #128
	cmp	w8, #9
	b.hi	LBB0_15
; %bb.1:
	mov	w0, #34464
	movk	w0, #1, lsl #16
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
	bl	_read_div
	ubfx	w21, w0, #8, #3
	tbnz	w20, #22, LBB0_22
; %bb.3:
	mov	w8, #41248
	movk	w8, #7, lsl #16
	lsr	w0, w8, w21
	b	LBB0_37
LBB0_4:
	and	w8, w20, #0xc0000
	cmp	w8, #192, lsl #12               ; =786432
	b.eq	LBB0_23
; %bb.5:
	cmp	w8, #128, lsl #12               ; =524288
	b.eq	LBB0_29
; %bb.6:
	cbz	w8, LBB0_28
	b	LBB0_15
LBB0_7:
	mvn	w8, w20
	tst	w8, #0x3000000
	b.ne	LBB0_9
; %bb.8:
	tbnz	w20, #9, LBB0_24
LBB0_9:
	mov	x0, x19
	mov	w1, #136
	b	LBB0_30
LBB0_10:
	mov	x0, x22
	mov	w1, #16416
	bl	_nvkm_rd32
	ubfx	w22, w0, #16, #3
	and	w8, w20, #0x30
	cmp	w8, #48
	b.eq	LBB0_31
; %bb.11:
	cmp	w8, #32
	b.eq	LBB0_32
; %bb.12:
	cbnz	w8, LBB0_15
; %bb.13:
	mov	x0, x19
	tbnz	w20, #6, LBB0_39
; %bb.14:
	mov	w1, #135
	b	LBB0_40
LBB0_15:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_nvkm_debug
LBB0_16:
	mov	w0, #0
	b	LBB0_37
LBB0_17:
	mov	x0, x19
	mov	w1, #131
	bl	_nvkm_clk_read
	lsl	w0, w0, #2
	b	LBB0_37
LBB0_18:
	mov	x0, x19
	mov	w1, #131
	bl	_nvkm_clk_read
	lsl	w8, w0, #1
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w0, w8, w9
	b	LBB0_37
LBB0_19:
	ldr	w0, [x22]
	b	LBB0_37
LBB0_20:
	mov	x0, x22
	mov	w1, #16424
	bl	_nvkm_rd32
	mov	x8, x0
	ubfx	w21, w0, #16, #3
	and	w8, w20, #0x3
	mov	w0, #0
Lloh4:
	adrp	x9, lJTI0_1@PAGE
Lloh5:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_21
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_21:
	mov	x0, x19
	mov	w1, #135
	b	LBB0_35
LBB0_22:
	mov	x0, x19
	mov	w1, #136
	b	LBB0_35
LBB0_23:
	mov	x0, x19
	mov	w1, #137
	b	LBB0_30
LBB0_24:
	and	w8, w20, #0xc00
	cmp	w8, #2048
	b.eq	LBB0_28
; %bb.25:
	cmp	w8, #1024
	b.eq	LBB0_29
; %bb.26:
	cbnz	w8, LBB0_16
; %bb.27:
	mov	x0, x19
	mov	w1, #131
	b	LBB0_30
LBB0_28:
	mov	x0, x19
	mov	w1, #134
	b	LBB0_30
LBB0_29:
	mov	x0, x19
	mov	w1, #133
LBB0_30:
	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
	b	_nvkm_clk_read
LBB0_31:
	mov	x0, x19
	mov	w1, #16416
	b	LBB0_33
LBB0_32:
	mov	x0, x19
	mov	w1, #16424
LBB0_33:
	bl	_read_pll
	asr	w0, w0, w22
	b	LBB0_37
LBB0_34:
	mov	x0, x19
	mov	w1, #133
LBB0_35:
	bl	_nvkm_clk_read
LBB0_36:
	asr	w0, w0, w21
LBB0_37:
	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
LBB0_38:
	mov	x0, x19
	mov	w1, #16424
	bl	_read_pll
	b	LBB0_36
LBB0_39:
	mov	w1, #131
LBB0_40:
	bl	_nvkm_clk_read
	asr	w0, w0, w22
	b	LBB0_37
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_37-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_37-LBB0_21)>>2
	.byte	(LBB0_34-LBB0_21)>>2
	.byte	(LBB0_38-LBB0_21)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown clock source %d %08x\n"

	.no_dead_strip	_mcp77_clk_read
.subsections_via_symbols
