	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_get_mode_from_dtd
_intel_sdvo_get_mode_from_dtd:          ## @intel_sdvo_get_mode_from_dtd
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	$0, -88(%rbp)
	movl	32(%rsi), %edx
	movl	%edx, %ebx
	shll	$4, %ebx
	andl	$3840, %ebx                     ## imm = 0xF00
	addq	72(%rsi), %rbx
	movq	%rbx, -40(%rbp)
	movq	24(%rsi), %r8
	addq	%rbx, %r8
	movl	(%rsi), %r10d
	leal	(,%r10,4), %r9d
	movl	%r9d, %ecx
	andl	$768, %ecx                      ## imm = 0x300
	addq	%r8, %rcx
	movq	%rcx, -24(%rbp)
	shll	$4, %r10d
	movl	%r10d, %eax
	andl	$768, %eax                      ## imm = 0x300
	addq	16(%rsi), %rax
	movq	%rdi, %r14
	addq	%rcx, %rax
	movq	%rax, -32(%rbp)
	andl	$15, %edx
	shlq	$8, %rdx
	addq	%rbx, %rdx
	addq	64(%rsi), %rdx
	movq	%rdx, -48(%rbp)
	movl	36(%rsi), %edx
	movl	%edx, %edi
	shll	$4, %edi
	andl	$3840, %edi                     ## imm = 0xF00
	addq	56(%rsi), %rdi
	movq	%rdi, -72(%rbp)
	movl	4(%rsi), %r8d
	movl	8(%rsi), %ebx
	movl	%r8d, %eax
	shrl	$4, %eax
	andl	$15, %eax
	andl	$48, %r9d
	addq	%rdi, %r9
	addq	%rax, %r9
	andl	$192, %ebx
	addq	%r9, %rbx
	movq	%rbx, -56(%rbp)
	andl	$15, %r8d
	andl	$48, %r10d
	orq	%r8, %r10
	addq	%rbx, %r10
	movq	%r10, -64(%rbp)
	andl	$15, %edx
	shlq	$8, %rdx
	addq	%rdi, %rdx
	addq	48(%rsi), %rdx
	movq	%rdx, -80(%rbp)
	movl	40(%rsi), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, -88(%rbp)
	movl	12(%rsi), %ecx
	movq	_DTD_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_DTD_FLAG_HSYNC_POSITIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%ecx, %edx
	jne	LBB0_4
## %bb.5:
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rdx
LBB0_6:
	orl	(%rdx), %eax
	movq	_DTD_FLAG_VSYNC_POSITIVE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %ecx
	jne	LBB0_7
## %bb.8:
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rcx
LBB0_9:
	orl	(%rcx), %eax
	movl	%eax, -84(%rbp)
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_mode_set_crtcinfo
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_drm_mode_copy
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DTD_FLAG_INTERLACE,4,2         ## @DTD_FLAG_INTERLACE
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_DTD_FLAG_HSYNC_POSITIVE,4,2    ## @DTD_FLAG_HSYNC_POSITIVE
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_DTD_FLAG_VSYNC_POSITIVE,4,2    ## @DTD_FLAG_VSYNC_POSITIVE
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.no_dead_strip	_intel_sdvo_get_mode_from_dtd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_sdvo_get_mode_from_dtd
_intel_sdvo_get_mode_from_dtd:          ; @intel_sdvo_get_mode_from_dtd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	ldp	w8, w9, [x1, #32]
	lsl	w10, w8, #4
	and	x10, x10, #0xf00
	ldp	x12, x11, [x1, #16]
	ldp	x14, x13, [x1, #64]
	add	x10, x13, x10
	add	x11, x10, x11
	ldp	w13, w15, [x1]
	lsl	w16, w13, #2
	and	w17, w16, #0x300
	add	x11, x11, x17
	str	x11, [sp, #72]
	lsl	w13, w13, #4
	and	w17, w13, #0x300
	add	x12, x12, x17
	add	x11, x12, x11
	stp	x10, x11, [sp, #56]
	lsl	w8, w8, #8
	and	x8, x8, #0xf00
	add	x8, x10, x8
	add	x10, x8, x14
	lsl	w8, w9, #4
	and	x8, x8, #0xf00
	ubfx	x11, x15, #4, #4
	and	w12, w16, #0x30
	ldp	x16, x14, [x1, #48]
	add	x14, x14, x8
	add	x12, x14, x12
	ldp	w17, w8, [x1, #8]
	and	x17, x17, #0xc0
	add	x11, x12, x11
	add	x11, x11, x17
	stp	x11, x10, [sp, #40]
	and	x10, x13, #0x30
	bfxil	x10, x15, #0, #4
	add	x10, x11, x10
	stp	x14, x10, [sp, #24]
	lsl	w9, w9, #8
	and	x9, x9, #0xf00
	add	x9, x14, x9
	add	x9, x9, x16
	stp	xzr, x9, [sp, #8]
	ldr	w9, [x1, #40]
	add	w9, w9, w9, lsl #2
	lsl	w9, w9, #1
	str	w9, [sp, #8]
Lloh0:
	adrp	x9, _DTD_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DTD_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [sp, #12]
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
Lloh6:
	adrp	x10, _DTD_FLAG_HSYNC_POSITIVE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DTD_FLAG_HSYNC_POSITIVE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh10:
	ldr	x11, [x11, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh11:
	adrp	x12, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh12:
	ldr	x12, [x12, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
	tst	w10, w8
	csel	x10, x11, x12, eq
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh13:
	adrp	x10, _DTD_FLAG_VSYNC_POSITIVE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _DTD_FLAG_VSYNC_POSITIVE@GOTPAGEOFF]
Lloh15:
	adrp	x11, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh16:
	ldr	x11, [x11, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh17:
	adrp	x12, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh18:
	ldr	x12, [x12, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w8
	csel	x8, x11, x12, eq
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [sp, #12]
	add	x0, sp, #8
	mov	w1, #0
	bl	_drm_mode_set_crtcinfo
	add	x1, sp, #8
	mov	x0, x19
	bl	_drm_mode_copy
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh19
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DTD_FLAG_INTERLACE,4,2         ; @DTD_FLAG_INTERLACE
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_DTD_FLAG_HSYNC_POSITIVE,4,2    ; @DTD_FLAG_HSYNC_POSITIVE
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_DTD_FLAG_VSYNC_POSITIVE,4,2    ; @DTD_FLAG_VSYNC_POSITIVE
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.no_dead_strip	_intel_sdvo_get_mode_from_dtd
.subsections_via_symbols
