	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sm501_init_regs
_sm501_init_regs:                       ## @sm501_init_regs
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movl	28(%rsi), %edx
	movl	32(%rsi), %esi
	callq	_sm501_misc_control
	movq	_SM501_MISC_TIMING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	24(%rbx), %rdx
	movq	%r14, %rdi
	callq	_sm501_init_reg
	movq	_SM501_GPIO31_0_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%rbx), %rdx
	movq	%r14, %rdi
	callq	_sm501_init_reg
	movq	_SM501_GPIO63_32_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%rbx), %rdx
	movq	%r14, %rdi
	callq	_sm501_init_reg
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	(%r14), %edi
	movq	_SM501_CLOCK_M1XCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	callq	_sm501_set_clock
LBB0_2:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movl	(%r14), %edi
	movq	_SM501_CLOCK_MCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sm501_set_clock                ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SM501_MISC_TIMING,4,2          ## @SM501_MISC_TIMING
	.comm	_SM501_GPIO31_0_CONTROL,4,2     ## @SM501_GPIO31_0_CONTROL
	.comm	_SM501_GPIO63_32_CONTROL,4,2    ## @SM501_GPIO63_32_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting M1XCLK to %ld\n"

	.comm	_SM501_CLOCK_M1XCLK,4,2         ## @SM501_CLOCK_M1XCLK
L_.str.1:                               ## @.str.1
	.asciz	"setting MCLK to %ld\n"

	.comm	_SM501_CLOCK_MCLK,4,2           ## @SM501_CLOCK_MCLK
	.no_dead_strip	_sm501_init_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sm501_init_regs
_sm501_init_regs:                       ; @sm501_init_regs
	.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, x1
	mov	x20, x0
	ldr	w0, [x0]
	ldr	w1, [x1, #32]
	ldr	w2, [x19, #28]
	bl	_sm501_misc_control
Lloh0:
	adrp	x8, _SM501_MISC_TIMING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SM501_MISC_TIMING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x19, #24
	mov	x0, x20
	bl	_sm501_init_reg
Lloh3:
	adrp	x8, _SM501_GPIO31_0_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SM501_GPIO31_0_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, x19, #20
	mov	x0, x20
	bl	_sm501_init_reg
Lloh6:
	adrp	x8, _SM501_GPIO63_32_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SM501_GPIO63_32_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, x19, #16
	mov	x0, x20
	bl	_sm501_init_reg
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _SM501_CLOCK_M1XCLK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SM501_CLOCK_M1XCLK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	bl	_sm501_set_clock
LBB0_2:
	ldr	x2, [x19]
	cbz	x2, LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh16:
	adrp	x8, _SM501_CLOCK_MCLK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SM501_CLOCK_MCLK@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh18:
	ldr	w1, [x8]
	ldr	x2, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sm501_set_clock
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SM501_MISC_TIMING,4,2          ; @SM501_MISC_TIMING
	.comm	_SM501_GPIO31_0_CONTROL,4,2     ; @SM501_GPIO31_0_CONTROL
	.comm	_SM501_GPIO63_32_CONTROL,4,2    ; @SM501_GPIO63_32_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting M1XCLK to %ld\n"

	.comm	_SM501_CLOCK_M1XCLK,4,2         ; @SM501_CLOCK_M1XCLK
l_.str.1:                               ; @.str.1
	.asciz	"setting MCLK to %ld\n"

	.comm	_SM501_CLOCK_MCLK,4,2           ; @SM501_CLOCK_MCLK
	.no_dead_strip	_sm501_init_regs
.subsections_via_symbols
