	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10fb_setup_pll
_a10fb_setup_pll:                       ## @a10fb_setup_pll
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rdx
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	callq	_clk_get_by_ofw_name
	movl	(%r14), %edi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str.2(%rip), %rdx
	leaq	-28(%rbp), %rcx
	xorl	%esi, %esi
	callq	_clk_get_by_ofw_name
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_4:
	movl	-28(%rbp), %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_clk_set_freq
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_11
LBB0_6:
	movl	-28(%rbp), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	movl	-32(%rbp), %edi
	callq	_clk_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_11:
	callq	_device_printf
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lcd_ch1_sclk1"

L_.str.1:                               ## @.str.1
	.asciz	"cannot find clk 'lcd_ch1_sclk1'\n"

L_.str.2:                               ## @.str.2
	.asciz	"lcd_ch1_sclk2"

L_.str.3:                               ## @.str.3
	.asciz	"cannot find clk 'lcd_ch1_sclk2'\n"

L_.str.4:                               ## @.str.4
	.asciz	"cannot set lcd ch1 frequency\n"

L_.str.5:                               ## @.str.5
	.asciz	"cannot enable lcd ch1 sclk2\n"

L_.str.6:                               ## @.str.6
	.asciz	"cannot enable lcd ch1 sclk1\n"

	.no_dead_strip	_a10fb_setup_pll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10fb_setup_pll
_a10fb_setup_pll:                       ; @a10fb_setup_pll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #12
	mov	w1, #0
	bl	_clk_get_by_ofw_name
	mov	x19, x0
	ldr	w0, [x20]
	cbz	w19, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_2:
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x3, sp, #8
	mov	w1, #0
	bl	_clk_get_by_ofw_name
	cbz	w0, LBB0_4
; %bb.3:
	mov	x19, x0
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_4:
	ldr	w0, [sp, #8]
	mov	x1, x21
	mov	w2, #0
	bl	_clk_set_freq
	cbz	w0, LBB0_6
; %bb.5:
	mov	x19, x0
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	w0, [sp, #8]
	bl	_clk_enable
	cbz	w0, LBB0_8
; %bb.7:
	mov	x19, x0
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	w0, [sp, #12]
	bl	_clk_enable
	mov	x19, x0
	cbz	w0, LBB0_11
; %bb.9:
	ldr	w0, [x20]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_10:
	bl	_device_printf
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lcd_ch1_sclk1"

l_.str.1:                               ; @.str.1
	.asciz	"cannot find clk 'lcd_ch1_sclk1'\n"

l_.str.2:                               ; @.str.2
	.asciz	"lcd_ch1_sclk2"

l_.str.3:                               ; @.str.3
	.asciz	"cannot find clk 'lcd_ch1_sclk2'\n"

l_.str.4:                               ; @.str.4
	.asciz	"cannot set lcd ch1 frequency\n"

l_.str.5:                               ; @.str.5
	.asciz	"cannot enable lcd ch1 sclk2\n"

l_.str.6:                               ; @.str.6
	.asciz	"cannot enable lcd ch1 sclk1\n"

	.no_dead_strip	_a10fb_setup_pll
.subsections_via_symbols
