	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dce110_get_min_vblank_time_us
_dce110_get_min_vblank_time_us:         ## @dce110_get_min_vblank_time_us
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	8(%rdi), %r9
	movl	$-1, %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rsi,8), %rdi
	movl	4(%rdi), %eax
	subl	8(%rdi), %eax
	imull	(%rdi), %eax
	imull	$10000, %eax, %eax              ## imm = 0x2710
	cltd
	idivl	12(%rdi)
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %ecx
LBB0_4:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dce110_get_min_vblank_time_us
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dce110_get_min_vblank_time_us
_dce110_get_min_vblank_time_us:         ; @dce110_get_min_vblank_time_us
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	.cfi_offset w23, -40
	.cfi_offset w24, -48
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x0, #8]
	cmp	x8, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w0, #-1
	b	LBB0_7
LBB0_3:
	mov	w0, #-1
	b	LBB0_9
LBB0_4:
	and	x10, x8, #0xfffffffffffffffc
	add	x12, x9, #16
	mov	w11, #-1
	mov	w14, #10000
	mov	x16, x10
	mov	w17, #-1
	mov	w15, #-1
	mov	w13, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x0, x1, [x12, #-16]
	ldp	x2, x3, [x12], #32
	ldp	w4, w5, [x0]
	ldp	w6, w7, [x1]
	ldp	w19, w20, [x2]
	ldp	w21, w22, [x3]
	ldp	w23, w0, [x0, #8]
	sub	w5, w5, w23
	ldp	w23, w1, [x1, #8]
	sub	w7, w7, w23
	ldp	w23, w2, [x2, #8]
	sub	w20, w20, w23
	ldp	w23, w3, [x3, #8]
	sub	w22, w22, w23
	mul	w4, w4, w5
	mul	w5, w6, w7
	mul	w6, w19, w20
	mul	w7, w21, w22
	mul	w4, w4, w14
	mul	w5, w5, w14
	mul	w6, w6, w14
	mul	w7, w7, w14
	sdiv	w0, w4, w0
	sdiv	w1, w5, w1
	sdiv	w2, w6, w2
	cmp	w11, w0
	csel	w11, w11, w0, lt
	cmp	w17, w1
	csel	w17, w17, w1, lt
	sdiv	w0, w7, w3
	cmp	w15, w2
	csel	w15, w15, w2, lt
	cmp	w13, w0
	csel	w13, w13, w0, lt
	subs	x16, x16, #4
	b.ne	LBB0_5
; %bb.6:
	cmp	w11, w17
	csel	w11, w11, w17, lt
	cmp	w11, w15
	csel	w11, w11, w15, lt
	cmp	w11, w13
	csel	w0, w11, w13, lt
	cmp	x8, x10
	b.eq	LBB0_9
LBB0_7:
	sub	x8, x8, x10
	add	x9, x9, x10, lsl #3
	mov	w10, #10000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	ldp	w12, w13, [x11]
	ldp	w14, w11, [x11, #8]
	sub	w13, w13, w14
	mul	w12, w12, w13
	mul	w12, w12, w10
	sdiv	w11, w12, w11
	cmp	w0, w11
	csel	w0, w0, w11, lt
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dce110_get_min_vblank_time_us
.subsections_via_symbols
