	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_lvds_get_clocks
_rcar_lvds_get_clocks:                  ## @rcar_lvds_get_clocks
	.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	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_rcar_lvds_get_clock
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	24(%rbx), %rdi
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	32(%rbx), %rax
	movq	_RCAR_LVDS_QUIRK_EXT_PLL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rcar_lvds_get_clock
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	16(%rbx), %rdi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rcar_lvds_get_clock
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	jmp	LBB0_2
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rcar_lvds_get_clock
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	8(%rbx), %rax
	movq	8(%rax), %rdi
	jmp	LBB0_2
LBB0_10:
	cmpq	$0, 16(%rbx)
	jne	LBB0_14
## %bb.11:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.12:
	cmpq	$0, 8(%rax)
	jne	LBB0_14
## %bb.13:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_LVDS_QUIRK_EXT_PLL,4,2    ## @RCAR_LVDS_QUIRK_EXT_PLL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"extal"

L_.str.1:                               ## @.str.1
	.asciz	"dclkin.0"

L_.str.2:                               ## @.str.2
	.asciz	"dclkin.1"

L_.str.3:                               ## @.str.3
	.asciz	"no input clock (extal, dclkin.0 or dclkin.1)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rcar_lvds_get_clocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_lvds_get_clocks
_rcar_lvds_get_clocks:                  ; @rcar_lvds_get_clocks
	.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, x0
	mov	x1, #0
	mov	w2, #0
	bl	_rcar_lvds_get_clock
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #24]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _RCAR_LVDS_QUIRK_EXT_PLL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RCAR_LVDS_QUIRK_EXT_PLL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_rcar_lvds_get_clock
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x19, #16]
	b	LBB0_2
LBB0_6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_rcar_lvds_get_clock
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	b	LBB0_2
LBB0_8:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_rcar_lvds_get_clock
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	b	LBB0_2
LBB0_10:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cbnz	x9, LBB0_13
; %bb.12:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_LVDS_QUIRK_EXT_PLL,4,2    ; @RCAR_LVDS_QUIRK_EXT_PLL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"extal"

l_.str.1:                               ; @.str.1
	.asciz	"dclkin.0"

l_.str.2:                               ; @.str.2
	.asciz	"dclkin.1"

l_.str.3:                               ; @.str.3
	.asciz	"no input clock (extal, dclkin.0 or dclkin.1)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rcar_lvds_get_clocks
.subsections_via_symbols
