	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dphy_timing_validate      ## -- Begin function mipi_dphy_timing_validate
	.p2align	4, 0x90
_mipi_dphy_timing_validate:             ## @mipi_dphy_timing_validate
	.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
	cmpl	$61, (%rdi)
	jge	LBB0_26
## %bb.1:
	movq	%rdi, %rbx
	movslq	4(%rdi), %rax
	imulq	$52, %rsi, %rcx
	addq	$60, %rcx
	cmpq	%rax, %rcx
	ja	LBB0_26
## %bb.2:
	cmpl	$7, 8(%rbx)
	jle	LBB0_26
## %bb.3:
	movl	12(%rbx), %eax
	leal	-96(%rax), %ecx
	cmpl	$-59, %ecx
	jbe	LBB0_26
## %bb.4:
	movl	$-301, %ecx                     ## imm = 0xFED3
	addl	16(%rbx), %ecx
	cmpl	$-207, %ecx
	jbe	LBB0_26
## %bb.5:
	cmpl	$39, 20(%rbx)
	jge	LBB0_26
## %bb.6:
	cmpl	$59, 24(%rbx)
	jle	LBB0_26
## %bb.7:
	addl	28(%rbx), %eax
	cmpl	$299, %eax                      ## imm = 0x12B
	jle	LBB0_26
## %bb.8:
	movslq	32(%rbx), %rax
	leaq	35(,%rsi,4), %rcx
	cmpq	%rax, %rcx
	jb	LBB0_26
## %bb.9:
	movslq	36(%rbx), %rax
	leaq	(%rsi,%rsi,2), %rcx
	leaq	105(,%rcx,4), %rdx
	cmpq	%rax, %rdx
	jb	LBB0_26
## %bb.10:
	cmpl	$99, 40(%rbx)
	jle	LBB0_26
## %bb.11:
	leaq	(,%rsi,4), %rax
	movslq	44(%rbx), %rdx
	leaq	40(%rax), %rdi
	cmpq	%rdx, %rdi
	ja	LBB0_26
## %bb.12:
	addq	%rcx, %rcx
	addq	$85, %rcx
	cmpq	%rdx, %rcx
	jb	LBB0_26
## %bb.13:
	movslq	48(%rbx), %rdi
	addq	%rdx, %rdi
	leaq	(%rsi,%rsi,4), %rdx
	addq	%rdx, %rdx
	addq	$145, %rdx
	cmpq	%rdi, %rdx
	ja	LBB0_26
## %bb.14:
	movslq	52(%rbx), %rdi
	cmpq	%rdi, %rcx
	ja	LBB0_26
## %bb.15:
	cmpq	%rdi, %rdx
	jb	LBB0_26
## %bb.16:
	movslq	56(%rbx), %rcx
	cmpq	$40, %rcx
	jl	LBB0_26
## %bb.17:
	leaq	55(%rax), %rdx
	cmpq	%rcx, %rdx
	jb	LBB0_26
## %bb.18:
	movq	64(%rbx), %r14
	shll	$3, %esi
	addl	$60, %eax
	movl	%esi, %edi
	movl	%eax, %esi
	callq	_max
	cmpq	%rax, %r14
	jl	LBB0_26
## %bb.19:
	cmpl	$99999, 72(%rbx)                ## imm = 0x1869F
	jle	LBB0_26
## %bb.20:
	movl	76(%rbx), %eax
	cmpl	$49, %eax
	jle	LBB0_26
## %bb.21:
	leal	(%rax,%rax,4), %ecx
	cmpl	%ecx, 80(%rbx)
	jne	LBB0_26
## %bb.22:
	leal	(,%rax,4), %ecx
	cmpl	%ecx, 84(%rbx)
	jne	LBB0_26
## %bb.23:
	movl	88(%rbx), %ecx
	cmpl	%eax, %ecx
	jl	LBB0_26
## %bb.24:
	addl	%eax, %eax
	cmpl	%eax, %ecx
	jg	LBB0_26
## %bb.25:
	xorl	%eax, %eax
	cmpl	$999999, 92(%rbx)               ## imm = 0xF423F
	jg	LBB0_27
LBB0_26:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_27:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mipi_dphy_timing_validate      ; -- Begin function mipi_dphy_timing_validate
	.p2align	2
_mipi_dphy_timing_validate:             ; @mipi_dphy_timing_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
	cmp	w8, #61
	b.ge	LBB0_26
; %bb.1:
	ldrsw	x8, [x0, #4]
	mov	w9, #52
	orr	x10, xzr, #0x3c
	madd	x9, x1, x9, x10
	cmp	x9, x8
	b.hi	LBB0_26
; %bb.2:
	ldr	w8, [x0, #8]
	cmp	w8, #7
	b.le	LBB0_26
; %bb.3:
	ldr	w8, [x0, #12]
	sub	w9, w8, #96
	cmn	w9, #59
	b.ls	LBB0_26
; %bb.4:
	ldr	w9, [x0, #16]
	sub	w9, w9, #301
	cmn	w9, #207
	b.ls	LBB0_26
; %bb.5:
	ldr	w9, [x0, #20]
	cmp	w9, #39
	b.ge	LBB0_26
; %bb.6:
	ldr	w9, [x0, #24]
	cmp	w9, #59
	b.le	LBB0_26
; %bb.7:
	ldr	w9, [x0, #28]
	add	w8, w9, w8
	cmp	w8, #299
	b.le	LBB0_26
; %bb.8:
	ldrsw	x9, [x0, #32]
	lsl	x8, x1, #2
	add	x10, x8, #35
	cmp	x10, x9
	b.lo	LBB0_26
; %bb.9:
	ldrsw	x9, [x0, #36]
	mov	w10, #12
	mul	x10, x1, x10
	add	x10, x10, #105
	cmp	x10, x9
	b.lo	LBB0_26
; %bb.10:
	ldr	w9, [x0, #40]
	cmp	w9, #99
	b.le	LBB0_26
; %bb.11:
	ldrsw	x9, [x0, #44]
	add	x10, x8, #40
	cmp	x10, x9
	b.hi	LBB0_26
; %bb.12:
	mov	w10, #6
	mul	x10, x1, x10
	add	x10, x10, #85
	cmp	x10, x9
	b.lo	LBB0_26
; %bb.13:
	ldrsw	x12, [x0, #48]
	mov	w11, #10
	mul	x11, x1, x11
	add	x11, x11, #145
	add	x9, x12, x9
	cmp	x11, x9
	b.hi	LBB0_26
; %bb.14:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldrsw	x9, [x0, #52]
	cmp	x10, x9
	b.hi	LBB0_26
; %bb.15:
	cmp	x11, x9
	b.lo	LBB0_26
; %bb.16:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldrsw	x9, [x9, #56]
	cmp	w9, #40
	b.lt	LBB0_26
; %bb.17:
	add	x10, x8, #55
	cmp	x10, x9
	b.lo	LBB0_26
; %bb.18:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x19, [x9, #64]
	lsl	w0, w1, #3
	add	w1, w8, #60
	bl	_max
	cmp	x19, x0
	b.lt	LBB0_26
; %bb.19:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x8, #72]
	mov	w9, #34463
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.le	LBB0_26
; %bb.20:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x8, #76]
	cmp	w8, #49
	b.le	LBB0_26
; %bb.21:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9, #80]
	add	w10, w8, w8, lsl #2
	cmp	w9, w10
	b.ne	LBB0_26
; %bb.22:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9, #84]
	cmp	w9, w8, lsl #2
	b.ne	LBB0_26
; %bb.23:
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9, #88]
	cmp	w9, w8
	b.lt	LBB0_26
; %bb.24:
	lsl	w8, w8, #1
	cmp	w9, w8
	b.gt	LBB0_26
; %bb.25:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x8, #92]
	mov	w9, #16959
	movk	w9, #15, lsl #16
	cmp	w8, w9
	b.gt	LBB0_28
LBB0_26:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_27:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_28:
	mov	w0, #0
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
