	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm501_check_clocks
_sm501_check_clocks:                    ## @sm501_check_clocks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SM501_CURRENT_CLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%rdi), %rax
	movq	%rax, %rdi
	callq	_smc501_readl
	movq	_SM501_POWERMODE_M_SRC@GOTPCREL(%rip), %rsi
	movq	_SM501_POWERMODE_M1_SRC@GOTPCREL(%rip), %rdx
	testq	%rax, (%rdx)
	setne	%dl
	sete	%dil
	testq	%rax, (%rsi)
	sete	%al
	setne	%cl
	andb	%dl, %al
	andb	%dil, %cl
	orb	%al, %cl
	movzbl	%cl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SM501_CURRENT_CLOCK,8,3        ## @SM501_CURRENT_CLOCK
	.comm	_SM501_POWERMODE_M_SRC,8,3      ## @SM501_POWERMODE_M_SRC
	.comm	_SM501_POWERMODE_M1_SRC,8,3     ## @SM501_POWERMODE_M1_SRC
	.no_dead_strip	_sm501_check_clocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm501_check_clocks
_sm501_check_clocks:                    ; @sm501_check_clocks
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SM501_CURRENT_CLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SM501_CURRENT_CLOCK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_smc501_readl
Lloh3:
	adrp	x8, _SM501_POWERMODE_M_SRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SM501_POWERMODE_M_SRC@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SM501_POWERMODE_M1_SRC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SM501_POWERMODE_M1_SRC@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
	tst	x8, x0
	cset	w8, eq
	cset	w10, ne
	tst	x9, x0
	cset	w9, ne
	and	w8, w8, w9
	cset	w9, eq
	and	w9, w10, w9
	orr	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SM501_CURRENT_CLOCK,8,3        ; @SM501_CURRENT_CLOCK
	.comm	_SM501_POWERMODE_M_SRC,8,3      ; @SM501_POWERMODE_M_SRC
	.comm	_SM501_POWERMODE_M1_SRC,8,3     ; @SM501_POWERMODE_M1_SRC
	.no_dead_strip	_sm501_check_clocks
.subsections_via_symbols
