	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpmi_get_clks
_gpmi_get_clks:                         ## @gpmi_get_clks
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	8(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r14), %rax
	movq	%r15, (%rax,%rbx,8)
	incq	%rbx
	movq	8(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_2
LBB0_5:
	movq	%r14, %rdi
	callq	_GPMI_IS_MX6
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	movl	$22000000, %esi                 ## imm = 0x14FB180
	callq	_clk_set_rate
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	%ebx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed in finding the clocks.\n"

	.no_dead_strip	_gpmi_get_clks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpmi_get_clks
_gpmi_get_clks:                         ; @gpmi_get_clks
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	x8, [x8, #8]
	ldr	w1, [x8, x21, lsl #2]
	bl	_devm_clk_get
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	str	x20, [x8, x21, lsl #3]
	add	x21, x21, #1
	ldr	x8, [x19, #8]
	ldrsw	x9, [x8]
	cmp	x21, x9
	b.lt	LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_GPMI_IS_MX6
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	mov	w1, #45440
	movk	w1, #335, lsl #16
	bl	_clk_set_rate
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed in finding the clocks.\n"

	.no_dead_strip	_gpmi_get_clks
.subsections_via_symbols
