	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_sdvo_get_preferred_input_mode
_intel_sdvo_get_preferred_input_mode:   ## @intel_sdvo_get_preferred_input_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_intel_sdvo_set_target_input
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movslq	(%rbx), %rax
	imulq	$1717986919, %rax, %rdx         ## imm = 0x66666667
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$34, %rdx
	addl	%eax, %edx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_intel_sdvo_create_preferred_input_timing
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_intel_sdvo_get_preferred_input_timing
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_intel_sdvo_get_mode_from_dtd
	movl	-48(%rbp), %eax
	movl	%eax, (%r13)
	movl	$1, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_intel_sdvo_get_preferred_input_mode
.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_preferred_input_mode
_intel_sdvo_get_preferred_input_mode:   ; @intel_sdvo_get_preferred_input_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_intel_sdvo_set_target_input
	cbz	w0, LBB0_4
; %bb.1:
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	ldp	w9, w4, [x22]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	mul	x8, x9, x8
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w2, w8, w9
	ldr	w3, [x22, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_intel_sdvo_create_preferred_input_timing
	cbz	w0, LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x0, x19
	bl	_intel_sdvo_get_preferred_input_timing
	cbz	w0, LBB0_4
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_intel_sdvo_get_mode_from_dtd
	ldr	w8, [sp, #8]
	str	w8, [x19]
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_intel_sdvo_get_preferred_input_mode
.subsections_via_symbols
