	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drm_mode_to_intf_timing_params
_drm_mode_to_intf_timing_params:        ## @drm_mode_to_intf_timing_params
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$104, %edx
	callq	_memset
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movq	%rcx, %rax
	movq	16(%rbx), %rsi
	movq	24(%rbx), %r8
	subq	%rdx, %rax
	jl	LBB0_9
## %bb.1:
	movq	%rsi, %rdi
	subq	%r8, %rdi
	jl	LBB0_9
## %bb.2:
	movq	32(%rbx), %r10
	movq	40(%rbx), %r9
	subq	%r9, %r10
	jl	LBB0_9
## %bb.3:
	movq	48(%rbx), %r15
	movq	56(%rbx), %r12
	movq	%r15, %r11
	subq	%r12, %r11
	jl	LBB0_9
## %bb.4:
	movq	%rdx, %r13
	subq	%rsi, %r13
	jl	LBB0_9
## %bb.5:
	subq	%r15, %r9
	jl	LBB0_9
## %bb.6:
	movq	%r8, (%r14)
	movq	%r12, 8(%r14)
	movq	%r8, 16(%r14)
	movq	%r12, 24(%r14)
	movq	%rax, 32(%r14)
	movq	%rdi, 40(%r14)
	movq	%r10, 48(%r14)
	movq	%r11, 56(%r14)
	movq	%r13, 64(%r14)
	movq	%r9, 72(%r14)
	movl	64(%rbx), %eax
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 80(%r14)
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 84(%r14)
	movq	$0, 96(%r14)
	movl	$255, 88(%r14)
	movl	68(%rbx), %eax
	movl	%eax, 92(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_INTF_DSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	$0, 80(%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_DPU_ERROR
	movq	48(%rbx), %rsi
	movq	32(%rbx), %rcx
	movq	40(%rbx), %rdx
	movq	56(%rbx), %r8
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid params - hstart:%d,hend:%d,htot:%d,hdisplay:%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"vstart:%d,vend:%d,vtot:%d,vdisplay:%d\n"

	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_INTF_DSI,8,3                   ## @INTF_DSI
	.no_dead_strip	_drm_mode_to_intf_timing_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drm_mode_to_intf_timing_params
_drm_mode_to_intf_timing_params:        ; @drm_mode_to_intf_timing_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #104
	bl	_memset
	ldp	x3, x2, [x19]
	ldp	x1, x4, [x19, #16]
	subs	x8, x3, x2
	ccmp	x1, x4, #8, ge
	b.lt	LBB0_3
; %bb.1:
	ldp	x10, x9, [x19, #32]
	subs	x10, x10, x9
	b.lt	LBB0_3
; %bb.2:
	ldp	x11, x13, [x19, #48]
	subs	x12, x11, x13
	ccmp	x2, x1, #8, ge
	ccmp	x9, x11, #8, ge
	b.ge	LBB0_4
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ERROR
	ldp	x3, x2, [x19, #32]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x1, x4, [x19, #48]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DPU_ERROR
LBB0_4:
	stp	x4, x13, [x20]
	stp	x4, x13, [x20, #16]
	sub	x13, x1, x4
	stp	x8, x13, [x20, #32]
	stp	x10, x12, [x20, #48]
	sub	x8, x2, x1
	sub	x9, x9, x11
Lloh4:
	adrp	x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh5:
	ldr	x10, [x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
	stp	x8, x9, [x20, #64]
Lloh6:
	ldr	w8, [x10]
	ldp	w9, w10, [x19, #64]
	tst	w8, w9
	cset	w8, ne
Lloh7:
	adrp	x11, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh8:
	ldr	x11, [x11, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	tst	w11, w9
	cset	w9, ne
	stp	w8, w9, [x20, #80]
	str	xzr, [x20, #96]
	mov	w8, #255
	stp	w8, w10, [x20, #88]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _INTF_DSI@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INTF_DSI@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	str	xzr, [x20, #80]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid params - hstart:%d,hend:%d,htot:%d,hdisplay:%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"vstart:%d,vend:%d,vtot:%d,vdisplay:%d\n"

	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_INTF_DSI,8,3                   ; @INTF_DSI
	.no_dead_strip	_drm_mode_to_intf_timing_params
.subsections_via_symbols
