	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function psb_intel_sdvo_get_dtd_from_mode
_psb_intel_sdvo_get_dtd_from_mode:      ## @psb_intel_sdvo_get_dtd_from_mode
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %r12d
	movl	4(%rsi), %r9d
	movl	8(%rsi), %ebx
	movl	12(%rsi), %r14d
	subl	%r14d, %ebx
	movl	16(%rsi), %r11d
	movl	20(%rsi), %r10d
	subl	%r10d, %r11d
	movl	24(%rsi), %eax
	movl	28(%rsi), %r15d
	subl	%r15d, %eax
	movl	32(%rsi), %r13d
	movl	36(%rsi), %r8d
	subl	%r8d, %r13d
	subl	%r14d, %r10d
	subl	%r15d, %r8d
	movslq	40(%rsi), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	movl	%ecx, 40(%rdi)
	movzbl	%r12b, %ecx
	movl	%ecx, 44(%rdi)
	movzbl	%bl, %ecx
	movl	%ecx, 48(%rdi)
	shrl	$4, %r12d
	andl	$240, %r12d
	shrl	$8, %ebx
	andl	$15, %ebx
	orl	%r12d, %ebx
	movl	%ebx, 52(%rdi)
	movzbl	%r9b, %ecx
	movl	%ecx, 56(%rdi)
	movzbl	%al, %ecx
	movl	%ecx, 60(%rdi)
	shrl	$4, %r9d
	andl	$240, %r9d
	shrl	$8, %eax
	andl	$15, %eax
	orl	%r9d, %eax
	movl	%eax, 64(%rdi)
	movzbl	%r10b, %eax
	movl	%eax, (%rdi)
	movzbl	%r11b, %eax
	movl	%eax, 4(%rdi)
	movl	%r8d, %eax
	shll	$4, %eax
	movzbl	%al, %eax
	movl	%r13d, %ecx
	andl	$15, %ecx
	orl	%eax, %ecx
	movl	%ecx, 8(%rdi)
	shrl	$2, %r10d
	andl	$192, %r10d
	shrl	$4, %r11d
	andl	$48, %r11d
	orl	%r10d, %r11d
	movl	%r8d, %eax
	shrl	$2, %eax
	andl	$12, %eax
	orl	%r11d, %eax
	shrl	$4, %r13d
	andl	$3, %r13d
	orl	%eax, %r13d
	movl	%r13d, 12(%rdi)
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	44(%rsi), %eax
	setne	%cl
	leal	(%rcx,%rcx), %eax
	addl	$24, %eax
	movl	%eax, 16(%rdi)
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 44(%rsi)
	je	LBB0_2
## %bb.1:
	orl	$4, %eax
	movl	%eax, 16(%rdi)
LBB0_2:
	andl	$192, %r8d
	movl	%r8d, 20(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rdi)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.no_dead_strip	_psb_intel_sdvo_get_dtd_from_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psb_intel_sdvo_get_dtd_from_mode
_psb_intel_sdvo_get_dtd_from_mode:      ; @psb_intel_sdvo_get_dtd_from_mode
	.cfi_startproc
; %bb.0:
	ldp	w11, w9, [x1]
	ldp	w8, w15, [x1, #8]
	sub	w13, w8, w15
	ldp	w8, w16, [x1, #16]
	sub	w10, w8, w16
	ldp	w8, w17, [x1, #24]
	sub	w14, w8, w17
	ldp	w8, w2, [x1, #32]
	sub	w12, w8, w2
	sub	w15, w16, w15
	sub	w8, w2, w17
	mov	w16, #26215
	movk	w16, #26214, lsl #16
	ldp	w17, w2, [x1, #40]
                                        ; kill: def $w17 killed $w17 def $x17
	sxtw	x17, w17
	mul	x16, x17, x16
	lsr	x17, x16, #32
	lsr	x16, x16, #63
	add	w16, w16, w17, asr #2
	and	w17, w11, #0xff
	stp	w16, w17, [x0, #40]
	and	w16, w13, #0xff
	lsr	w11, w11, #4
	and	w11, w11, #0xf0
	bfxil	w11, w13, #8, #4
	stp	w16, w11, [x0, #48]
	and	w11, w9, #0xff
	and	w13, w14, #0xff
	stp	w11, w13, [x0, #56]
	lsr	w9, w9, #4
	and	w9, w9, #0xf0
	bfxil	w9, w14, #8, #4
	str	w9, [x0, #64]
	and	w9, w15, #0xff
	and	w11, w10, #0xff
	stp	w9, w11, [x0]
	and	w9, w12, #0xf
	bfi	w9, w8, #4, #4
	lsr	w11, w15, #2
	and	w11, w11, #0xc0
	bfxil	w11, w10, #4, #6
	bfxil	w11, w8, #2, #4
	bfxil	w11, w12, #4, #2
Lloh0:
	adrp	x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
	stp	w9, w11, [x0, #8]
Lloh2:
	ldr	w9, [x10]
	tst	w9, w2
	mov	w9, #26
	mov	w10, #24
	csel	w9, w10, w9, eq
	str	w9, [x0, #16]
	ldr	w10, [x1, #44]
Lloh3:
	adrp	x11, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
	orr	w9, w9, #0x4
	str	w9, [x0, #16]
LBB0_2:
	and	w8, w8, #0xc0
	str	w8, [x0, #20]
	stp	xzr, xzr, [x0, #24]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.no_dead_strip	_psb_intel_sdvo_get_dtd_from_mode
.subsections_via_symbols
