	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_ldb_get_clk
_imx_ldb_get_clk:                       ## @imx_ldb_get_clk
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	movl	%ebx, %ecx
	callq	_snprintf
	movl	8(%r14), %edi
	movq	%r15, %rsi
	callq	_devm_clk_get
	movq	16(%r14), %rcx
	movslq	%ebx, %rbx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_PTR_ERR
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	$16, %esi
	movl	%ebx, %ecx
	callq	_snprintf
	movl	8(%r14), %edi
	movq	%r15, %rsi
	callq	_devm_clk_get
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_PTR_ERR_OR_ZERO
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"di%d"

L_.str.1:                               ## @.str.1
	.asciz	"di%d_pll"

	.no_dead_strip	_imx_ldb_get_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_ldb_get_clk
_imx_ldb_get_clk:                       ; @imx_ldb_get_clk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	mov	x3, x20
	bl	_snprintf
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	bl	_devm_clk_get
	ldr	x8, [x19, #16]
	sxtw	x21, w20
	sbfiz	x9, x20, #3, #32
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x21, lsl #3]
	bl	_PTR_ERR
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	mov	x3, x20
	bl	_snprintf
	ldr	w0, [x19, #8]
	add	x1, sp, #8
	bl	_devm_clk_get
	ldr	x8, [x19]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x0, [x8, x9]
	bl	_PTR_ERR_OR_ZERO
LBB0_3:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"di%d"

l_.str.1:                               ; @.str.1
	.asciz	"di%d_pll"

	.no_dead_strip	_imx_ldb_get_clk
.subsections_via_symbols
