	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_horiz_timing_omap3
_check_horiz_timing_omap3:              ## @check_horiz_timing_omap3
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rbp), %rsi
	movq	%r9, %rdi
	callq	_DIV_ROUND_UP
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rdi
	movq	24(%r15), %rdx
	addq	8(%r15), %rdi
	movq	%rdi, %r13
	movq	16(%rbp), %rsi
	subq	%rsi, %r13
	addq	(%r15), %r13
	xorl	%eax, %eax
	cmpq	%r14, 24(%rbp)
	movq	%rbx, %r15
	setl	%al
	leaq	1(%rax), %rbx
	cmpq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	cmovgeq	%rax, %rbx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addq	%rdx, %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	imulq	%r12, %rdi
	movq	%r15, %rsi
	callq	_div_u64
	movq	%rax, %r14
	leaq	_check_horiz_timing_omap3.limits(%rip), %rax
	movslq	(%rax,%rbx,4), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_DSSDBG
	cmpq	%rbx, %r14
	jbe	LBB0_5
## %bb.1:
	cmpl	$0, 32(%rbp)
	je	LBB0_2
## %bb.3:
	addq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	subq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	imulq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	movq	%r15, %rsi
	callq	_div_u64
	movq	%rax, %r12
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	-2(%rax), %r15d
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_max
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	imull	%eax, %edx
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_DSSDBG
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_max
	imulq	%rbx, %rax
	cmpq	%rax, %r12
	jb	LBB0_5
## %bb.4:
	imulq	-64(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_div_u64
	movq	%rax, %r15
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	decl	%ebx
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_max
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %edx
	imull	%eax, %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_DSSDBG
	xorl	%edi, %edi
	movl	%ebx, %esi
	callq	_max
	imulq	%r12, %rax
	cmpq	%rax, %r15
	jae	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @check_horiz_timing_omap3.limits
_check_horiz_timing_omap3.limits:
	.long	8                               ## 0x8
	.long	10                              ## 0xa
	.long	20                              ## 0x14

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blanking period + ppl = %llu (limit = %u)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"(nonactive - pos_x) * pcd = %llu max(0, DS - 2) * width = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"nonactive * pcd  = %llu, max(0, DS - 1) * width = %d\n"

	.no_dead_strip	_check_horiz_timing_omap3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_horiz_timing_omap3
_check_horiz_timing_omap3:              ; @check_horiz_timing_omap3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x7
	mov	x24, x6
	mov	x26, x5
	mov	x19, x4
	mov	x23, x3
	mov	x27, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x5
	mov	x1, x7
	bl	_DIV_ROUND_UP
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldp	x28, x8, [x27]
	ldp	x9, x27, [x27, #16]
	cmp	x25, x26
	cset	w10, lt
	mov	w11, #1
	cinc	x11, x11, lt
	cmp	x24, x19
	csel	x26, x11, x10, lt
	add	x22, x9, x8
	add	x8, x22, x27
	mul	x0, x8, x21
	mov	x1, x20
	bl	_div_u64
	mov	x25, x0
Lloh0:
	adrp	x8, _check_horiz_timing_omap3.limits@PAGE
Lloh1:
	add	x8, x8, _check_horiz_timing_omap3.limits@PAGEOFF
	ldrsw	x26, [x8, x26, lsl #2]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	x2, x26
	bl	_DSSDBG
	cmp	x25, x26
	b.ls	LBB0_4
; %bb.1:
	ldr	w8, [x29, #16]
	cbz	w8, LBB0_5
; %bb.2:
	sub	x8, x22, x24
	add	x8, x8, x28
	add	x25, x8, x27
	sub	x8, x25, x23
	mul	x0, x8, x21
	mov	x1, x20
	bl	_div_u64
	mov	x23, x0
	ldr	w22, [sp, #12]                  ; 4-byte Folded Reload
	sub	w24, w22, #2
	mov	w0, #0
	mov	x1, x24
	bl	_max
	mul	w2, w0, w19
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x23
	bl	_DSSDBG
	mov	w0, #0
	mov	x1, x24
	bl	_max
	mul	x8, x0, x19
	cmp	x23, x8
	b.lo	LBB0_4
; %bb.3:
	mul	x0, x25, x21
	mov	x1, x20
	bl	_div_u64
	mov	x20, x0
	sub	w21, w22, #1
	mov	w0, #0
	mov	x1, x21
	bl	_max
	mul	w2, w0, w19
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_DSSDBG
	mov	w0, #0
	mov	x1, x21
	bl	_max
	mov	x8, x0
	mov	w0, #0
	mul	x8, x8, x19
	cmp	x20, x8
	b.hs	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @check_horiz_timing_omap3.limits
_check_horiz_timing_omap3.limits:
	.long	8                               ; 0x8
	.long	10                              ; 0xa
	.long	20                              ; 0x14

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blanking period + ppl = %llu (limit = %u)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"(nonactive - pos_x) * pcd = %llu max(0, DS - 2) * width = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"nonactive * pcd  = %llu, max(0, DS - 1) * width = %d\n"

	.no_dead_strip	_check_horiz_timing_omap3
.subsections_via_symbols
