	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_cpu_clock_sel
_show_cpu_clock_sel:                    ## @show_cpu_clock_sel
	.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
	callq	_ics932s401_update_device
	movq	(%rax), %rdx
	movq	_ICS932S401_REG_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rdx,%rcx,4), %ecx
	movq	_ICS932S401_MN_ENABLED@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	callq	_calculate_cpu_freq
	movl	%eax, %edx
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_2:
	movq	_ICS932S401_REG_CFG7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ICS932S401_FS_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	(%rdx,%rax,4), %esi
	movslq	%esi, %rax
	movq	_fs_speeds@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,4), %edx
	movq	_ICS932S401_CPU_ALT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.3:
	cmpl	$333333, %edx                   ## imm = 0x51615
	je	LBB0_6
## %bb.4:
	cmpl	$166666, %edx                   ## imm = 0x28B0A
	jne	LBB0_7
## %bb.5:
	movl	$160000, %edx                   ## imm = 0x27100
	jmp	LBB0_7
LBB0_6:
	movl	$320000, %edx                   ## imm = 0x4E200
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ICS932S401_REG_CTRL,8,3        ## @ICS932S401_REG_CTRL
	.comm	_ICS932S401_MN_ENABLED,4,2      ## @ICS932S401_MN_ENABLED
	.comm	_ICS932S401_REG_CFG7,8,3        ## @ICS932S401_REG_CFG7
	.comm	_ICS932S401_FS_MASK,4,2         ## @ICS932S401_FS_MASK
	.comm	_fs_speeds,8,3                  ## @fs_speeds
	.comm	_ICS932S401_CPU_ALT,4,2         ## @ICS932S401_CPU_ALT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_show_cpu_clock_sel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_cpu_clock_sel
_show_cpu_clock_sel:                    ; @show_cpu_clock_sel
	.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
	bl	_ics932s401_update_device
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _ICS932S401_REG_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICS932S401_REG_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
Lloh3:
	adrp	x10, _ICS932S401_MN_ENABLED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ICS932S401_MN_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_3
; %bb.1:
	bl	_calculate_cpu_freq
	mov	x2, x0
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sprintf
LBB0_3:
Lloh8:
	adrp	x10, _ICS932S401_REG_CFG7@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ICS932S401_REG_CFG7@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
Lloh11:
	adrp	x10, _ICS932S401_FS_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ICS932S401_FS_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh14:
	adrp	x10, _fs_speeds@GOTPAGE
Lloh15:
	ldr	x10, [x10, _fs_speeds@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	ldr	w2, [x10, w9, sxtw #2]
Lloh17:
	adrp	x9, _ICS932S401_CPU_ALT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ICS932S401_CPU_ALT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.4:
	mov	w8, #5653
	movk	w8, #5, lsl #16
	cmp	w2, w8
	b.eq	LBB0_7
; %bb.5:
	mov	w8, #35594
	movk	w8, #2, lsl #16
	cmp	w2, w8
	b.ne	LBB0_2
; %bb.6:
	mov	w2, #28928
	movk	w2, #2, lsl #16
	b	LBB0_2
LBB0_7:
	mov	w2, #57856
	movk	w2, #4, lsl #16
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ICS932S401_REG_CTRL,8,3        ; @ICS932S401_REG_CTRL
	.comm	_ICS932S401_MN_ENABLED,4,2      ; @ICS932S401_MN_ENABLED
	.comm	_ICS932S401_REG_CFG7,8,3        ; @ICS932S401_REG_CFG7
	.comm	_ICS932S401_FS_MASK,4,2         ; @ICS932S401_FS_MASK
	.comm	_fs_speeds,8,3                  ; @fs_speeds
	.comm	_ICS932S401_CPU_ALT,4,2         ; @ICS932S401_CPU_ALT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_show_cpu_clock_sel
.subsections_via_symbols
