	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tilcdc_crtc_mode_fixup
_tilcdc_crtc_mode_fixup:                ## @tilcdc_crtc_mode_fixup
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_to_tilcdc_crtc
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	16(%rbx), %rax
	subq	8(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	_DRM_MODE_FLAG_HSKEW@GOTPCREL(%rip), %rcx
	movl	(%r14), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	movl	(%rbx), %edi
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rsi
	andl	%ecx, %edi
	je	LBB0_2
## %bb.3:
	movl	(%rsi), %ecx
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %rdx
LBB0_4:
	orl	%eax, %ecx
	movl	%ecx, (%r14)
	movl	(%rdx), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%r14)
LBB0_5:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_HSKEW,4,2        ## @DRM_MODE_FLAG_HSKEW
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.no_dead_strip	_tilcdc_crtc_mode_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tilcdc_crtc_mode_fixup
_tilcdc_crtc_mode_fixup:                ; @tilcdc_crtc_mode_fixup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_to_tilcdc_crtc
	ldr	w8, [x0]
	cbz	w8, LBB0_2
; %bb.1:
	ldp	x9, x8, [x20, #8]
	sub	x8, x8, x9
	str	x8, [x19, #24]
Lloh0:
	adrp	x8, _DRM_MODE_FLAG_HSKEW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_FLAG_HSKEW@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x20]
Lloh3:
	adrp	x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
	ldr	w11, [x10]
Lloh5:
	adrp	x12, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh6:
	ldr	x12, [x12, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
	ldr	w13, [x12]
	tst	w11, w9
	csel	w9, w11, w13, eq
	orr	w8, w9, w8
	str	w8, [x19]
	csel	x9, x12, x10, eq
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_2:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_HSKEW,4,2        ; @DRM_MODE_FLAG_HSKEW
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.no_dead_strip	_tilcdc_crtc_mode_fixup
.subsections_via_symbols
