	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tfp410_parse_timings
_tfp410_parse_timings:                  ## @tfp410_parse_timings
	.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	$0, -36(%rbp)
	movl	$24, -32(%rbp)
	movl	$0, -28(%rbp)
	movq	_tfp410_default_timings@GOTPCREL(%rip), %rax
	movq	16(%rax), %rcx
	movq	%rcx, 32(%rdi)
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%rdi)
	xorl	%ebx, %ebx
	testl	%esi, %esi
	jne	LBB0_14
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	leaq	16(%r14), %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rax, %rdi
	callq	_of_property_read_u32
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movq	%r15, %rdi
	callq	_of_node_put
	movq	_DRM_BUS_FLAG_DE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	-36(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.5:
	cmpl	$1, %ecx
	jne	LBB0_12
## %bb.6:
	movq	_DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE@GOTPCREL(%rip), %rdx
	movq	_DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_4:
	movq	_DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE@GOTPCREL(%rip), %rdx
	movq	_DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, (%rbx)
	movl	-32(%rbp), %eax
	cmpl	$12, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$24, %eax
	jne	LBB0_12
## %bb.10:
	movq	_MEDIA_BUS_FMT_RGB888_1X24@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_MEDIA_BUS_FMT_RGB888_2X12_LE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	(%r14), %rax
	movq	(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_of_property_read_u32
	movl	-28(%rbp), %eax
	leal	-4(%rax), %ecx
	cmpl	$-9, %ecx
	ja	LBB0_13
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_13:
	imull	$-350, %eax, %esi               ## imm = 0xFEA2
	addl	$1200, %esi                     ## imm = 0x4B0
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_min
	movq	%rax, 32(%r14)
	imull	$350, -28(%rbp), %esi           ## imm = 0x15E
	addl	$1300, %esi                     ## imm = 0x514
	xorl	%edi, %edi
	callq	_min
	movq	%rax, 24(%r14)
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tfp410_default_timings,24,3    ## @tfp410_default_timings
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pclk-sample"

L_.str.1:                               ## @.str.1
	.asciz	"bus-width"

	.comm	_DRM_BUS_FLAG_DE_HIGH,4,2       ## @DRM_BUS_FLAG_DE_HIGH
	.comm	_DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,4,2 ## @DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE
	.comm	_DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,4,2 ## @DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE
	.comm	_DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,4,2 ## @DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
	.comm	_DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE,4,2 ## @DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE
	.comm	_MEDIA_BUS_FMT_RGB888_2X12_LE,4,2 ## @MEDIA_BUS_FMT_RGB888_2X12_LE
	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ## @MEDIA_BUS_FMT_RGB888_1X24
L_.str.2:                               ## @.str.2
	.asciz	"ti,deskew"

	.no_dead_strip	_tfp410_parse_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tfp410_parse_timings
_tfp410_parse_timings:                  ; @tfp410_parse_timings
	.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	x19, x0
	mov	w0, #0
	mov	w8, #24
	stp	w8, wzr, [sp, #8]
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _tfp410_default_timings@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tfp410_default_timings@GOTPAGEOFF]
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [x19, #16]
	str	x9, [x19, #32]
	cbnz	w1, LBB0_12
; %bb.1:
	ldr	x8, [x19]
	ldr	x0, [x8]
	mov	w2, #0
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
	add	x21, x19, #16
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	mov	x0, x20
	bl	_of_node_put
Lloh6:
	adrp	x8, _DRM_BUS_FLAG_DE_HIGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_BUS_FLAG_DE_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x21]
	ldr	w9, [sp, #12]
	cbz	w9, LBB0_5
; %bb.3:
	cmp	w9, #1
	b.ne	LBB0_11
; %bb.4:
Lloh9:
	adrp	x9, _DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE@GOTPAGEOFF]
Lloh11:
	adrp	x10, _DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x9, _DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE@GOTPAGEOFF]
Lloh15:
	adrp	x10, _DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE@GOTPAGEOFF]
LBB0_6:
	ldr	w10, [x10]
	ldr	w9, [x9]
	orr	w9, w9, w10
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	w8, [sp, #8]
	cmp	w8, #12
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #24
	b.ne	LBB0_11
; %bb.8:
Lloh17:
	adrp	x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh19:
	adrp	x8, _MEDIA_BUS_FMT_RGB888_2X12_LE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB888_2X12_LE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #4
	bl	_of_property_read_u32
	ldr	w8, [sp, #4]
	sub	w9, w8, #4
	cmn	w9, #9
	b.hi	LBB0_13
LBB0_11:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
	mov	w9, #-350
	mul	w8, w8, w9
	add	w1, w8, #1200
	mov	w0, #0
	bl	_min
	str	x0, [x19, #32]
	ldr	w8, [sp, #4]
	mov	w9, #350
	mul	w8, w8, w9
	add	w1, w8, #1300
	mov	w0, #0
	bl	_min
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #24]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_tfp410_default_timings,24,3    ; @tfp410_default_timings
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pclk-sample"

l_.str.1:                               ; @.str.1
	.asciz	"bus-width"

	.comm	_DRM_BUS_FLAG_DE_HIGH,4,2       ; @DRM_BUS_FLAG_DE_HIGH
	.comm	_DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,4,2 ; @DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE
	.comm	_DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,4,2 ; @DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE
	.comm	_DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,4,2 ; @DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
	.comm	_DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE,4,2 ; @DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE
	.comm	_MEDIA_BUS_FMT_RGB888_2X12_LE,4,2 ; @MEDIA_BUS_FMT_RGB888_2X12_LE
	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ; @MEDIA_BUS_FMT_RGB888_1X24
l_.str.2:                               ; @.str.2
	.asciz	"ti,deskew"

	.no_dead_strip	_tfp410_parse_timings
.subsections_via_symbols
