	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atombios_set_crtc_dtd_timing
_atombios_set_crtc_dtd_timing:          ## @atombios_set_crtc_dtd_timing
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_to_radeon_crtc
	movq	%rax, %r12
	movq	(%r14), %rax
	movq	(%rax), %r13
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SetCRTC_UsingDTDTiming@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r14d
	leaq	-128(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$88, %edx
	callq	_memset
	movq	48(%rbx), %rdi
	movslq	(%r12), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movq	64(%rbx), %rax
	subq	48(%rbx), %rax
	movslq	(%r12), %rcx
	leaq	(%rax,%rcx,2), %rdi
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movq	24(%rbx), %rdi
	movslq	4(%r12), %rax
	addq	%rax, %rax
	subq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movq	56(%rbx), %rax
	subq	24(%rbx), %rax
	movslq	4(%r12), %rcx
	leaq	(%rax,%rcx,2), %rdi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	movq	32(%rbx), %rax
	subq	48(%rbx), %rax
	movslq	(%r12), %rdi
	addq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	movq	40(%rbx), %rdi
	subq	32(%rbx), %rdi
	callq	_cpu_to_le16
	movq	%rax, -88(%rbp)
	movq	8(%rbx), %rax
	subq	24(%rbx), %rax
	movslq	4(%r12), %rdi
	addq	%rax, %rdi
	callq	_cpu_to_le16
	movq	%rax, -96(%rbp)
	movq	16(%rbx), %rdi
	subq	8(%rbx), %rdi
	callq	_cpu_to_le16
	movq	%rax, -104(%rbp)
	movl	(%r12), %eax
	movl	%eax, -128(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -124(%rbp)
	movl	(%rbx), %eax
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	$0, %ecx
	andl	%eax, %edx
	je	LBB0_2
## %bb.1:
	movq	_ATOM_VSYNC_POLARITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_2:
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	$0, %edi
	andl	%eax, %edx
	je	LBB0_4
## %bb.3:
	movq	_ATOM_HSYNC_POLARITY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
LBB0_4:
	movq	_DRM_MODE_FLAG_CSYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	$0, %edx
	andl	%eax, %esi
	je	LBB0_6
## %bb.5:
	movq	_ATOM_COMPOSITESYNC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
LBB0_6:
	orq	%rcx, %rdi
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$0, %ecx
	andl	%eax, %esi
	je	LBB0_8
## %bb.7:
	movq	_ATOM_INTERLACE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_8:
	orq	%rcx, %rdx
	orq	%rdx, %rdi
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	movq	_ATOM_DOUBLE_CLOCK_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_10:
	orq	%r15, %rdi
	callq	_cpu_to_le16
	movq	%rax, -112(%rbp)
	movl	8(%r12), %eax
	movl	%eax, -120(%rbp)
	movl	(%r13), %edi
	movl	%r14d, %esi
	leaq	-128(%rbp), %rdx
	callq	_atom_execute_table
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_SetCRTC_UsingDTDTiming,4,2     ## @SetCRTC_UsingDTDTiming
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_ATOM_VSYNC_POLARITY,8,3        ## @ATOM_VSYNC_POLARITY
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_ATOM_HSYNC_POLARITY,8,3        ## @ATOM_HSYNC_POLARITY
	.comm	_DRM_MODE_FLAG_CSYNC,4,2        ## @DRM_MODE_FLAG_CSYNC
	.comm	_ATOM_COMPOSITESYNC,8,3         ## @ATOM_COMPOSITESYNC
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_ATOM_INTERLACE,8,3             ## @ATOM_INTERLACE
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_ATOM_DOUBLE_CLOCK_MODE,8,3     ## @ATOM_DOUBLE_CLOCK_MODE
	.no_dead_strip	_atombios_set_crtc_dtd_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atombios_set_crtc_dtd_timing
_atombios_set_crtc_dtd_timing:          ; @atombios_set_crtc_dtd_timing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x1
	mov	x20, x0
	bl	_to_radeon_crtc
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SetCRTC_UsingDTDTiming@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SetCRTC_UsingDTDTiming@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #88
	bl	_memset
	ldr	x8, [x21, #48]
	ldrsw	x9, [x19]
	sub	x0, x8, x9, lsl #1
	bl	_cpu_to_le16
	str	x0, [sp, #88]
	ldr	x8, [x21, #64]
	ldr	x9, [x21, #48]
	sub	x8, x8, x9
	ldrsw	x9, [x19]
	add	x0, x8, x9, lsl #1
	bl	_cpu_to_le16
	str	x0, [sp, #80]
	ldr	x8, [x21, #24]
	ldrsw	x9, [x19, #4]
	sub	x0, x8, x9, lsl #1
	bl	_cpu_to_le16
	str	x0, [sp, #72]
	ldr	x8, [x21, #56]
	ldr	x9, [x21, #24]
	sub	x8, x8, x9
	ldrsw	x9, [x19, #4]
	add	x0, x8, x9, lsl #1
	bl	_cpu_to_le16
	str	x0, [sp, #64]
	ldr	x8, [x21, #32]
	ldr	x9, [x21, #48]
	ldrsw	x10, [x19]
	sub	x8, x8, x9
	add	x0, x8, x10
	bl	_cpu_to_le16
	str	x0, [sp, #56]
	ldp	x9, x8, [x21, #32]
	sub	x0, x8, x9
	bl	_cpu_to_le16
	str	x0, [sp, #48]
	ldr	x8, [x21, #8]
	ldr	x9, [x21, #24]
	ldrsw	x10, [x19, #4]
	sub	x8, x8, x9
	add	x0, x8, x10
	bl	_cpu_to_le16
	str	x0, [sp, #40]
	ldp	x9, x8, [x21, #8]
	sub	x0, x8, x9
	bl	_cpu_to_le16
	str	x0, [sp, #32]
	ldr	d0, [x19]
	str	d0, [sp, #8]
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ATOM_VSYNC_POLARITY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ATOM_VSYNC_POLARITY@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x9, xzr, x10, eq
Lloh12:
	adrp	x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _ATOM_HSYNC_POLARITY@GOTPAGE
Lloh16:
	ldr	x11, [x11, _ATOM_HSYNC_POLARITY@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	tst	w10, w8
	csel	x10, xzr, x11, eq
	orr	x9, x10, x9
Lloh18:
	adrp	x10, _DRM_MODE_FLAG_CSYNC@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DRM_MODE_FLAG_CSYNC@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _ATOM_COMPOSITESYNC@GOTPAGE
Lloh22:
	ldr	x11, [x11, _ATOM_COMPOSITESYNC@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x11]
	tst	w10, w8
	csel	x10, xzr, x11, eq
	orr	x9, x9, x10
Lloh24:
	adrp	x10, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _ATOM_INTERLACE@GOTPAGE
Lloh28:
	ldr	x11, [x11, _ATOM_INTERLACE@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	tst	w10, w8
	csel	x10, xzr, x11, eq
	orr	x9, x9, x10
Lloh30:
	adrp	x10, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh31:
	ldr	x10, [x10, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
Lloh33:
	adrp	x11, _ATOM_DOUBLE_CLOCK_MODE@GOTPAGE
Lloh34:
	ldr	x11, [x11, _ATOM_DOUBLE_CLOCK_MODE@GOTPAGEOFF]
Lloh35:
	ldr	x11, [x11]
	tst	w10, w8
	csel	x8, xzr, x11, eq
	orr	x0, x9, x8
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	ldr	w8, [x19, #8]
	str	w8, [sp, #16]
	ldr	w0, [x22]
	add	x2, sp, #8
	mov	x1, x20
	bl	_atom_execute_table
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_SetCRTC_UsingDTDTiming,4,2     ; @SetCRTC_UsingDTDTiming
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_ATOM_VSYNC_POLARITY,8,3        ; @ATOM_VSYNC_POLARITY
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_ATOM_HSYNC_POLARITY,8,3        ; @ATOM_HSYNC_POLARITY
	.comm	_DRM_MODE_FLAG_CSYNC,4,2        ; @DRM_MODE_FLAG_CSYNC
	.comm	_ATOM_COMPOSITESYNC,8,3         ; @ATOM_COMPOSITESYNC
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_ATOM_INTERLACE,8,3             ; @ATOM_INTERLACE
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_ATOM_DOUBLE_CLOCK_MODE,8,3     ; @ATOM_DOUBLE_CLOCK_MODE
	.no_dead_strip	_atombios_set_crtc_dtd_timing
.subsections_via_symbols
