	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_intel_lvds_mode_set
_cdv_intel_lvds_mode_set:               ## @cdv_intel_lvds_mode_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movl	(%rdi), %edi
	callq	_to_gma_crtc
	movq	(%rbx), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	xorl	%edx, %edx
	cmpq	8(%r14), %rcx
	je	LBB0_3
LBB0_2:
	movq	_PFIT_ENABLE@GOTPCREL(%rip), %rcx
	movq	_VERT_AUTO_SCALE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_HORIZ_AUTO_SCALE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_VERT_INTERP_BILINEAR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_HORIZ_INTERP_BILINEAR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
LBB0_3:
	movl	(%rax), %esi
	movq	_PFIT_PIPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	orl	%edx, %esi
	xorl	%eax, %eax
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.4:
	movq	_PANEL_8TO6_DITHER_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %esi
	movq	_PFIT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PFIT_ENABLE,4,2                ## @PFIT_ENABLE
	.comm	_VERT_AUTO_SCALE,4,2            ## @VERT_AUTO_SCALE
	.comm	_HORIZ_AUTO_SCALE,4,2           ## @HORIZ_AUTO_SCALE
	.comm	_VERT_INTERP_BILINEAR,4,2       ## @VERT_INTERP_BILINEAR
	.comm	_HORIZ_INTERP_BILINEAR,4,2      ## @HORIZ_INTERP_BILINEAR
	.comm	_PFIT_PIPE_SHIFT,4,2            ## @PFIT_PIPE_SHIFT
	.comm	_PANEL_8TO6_DITHER_ENABLE,4,2   ## @PANEL_8TO6_DITHER_ENABLE
	.comm	_PFIT_CONTROL,4,2               ## @PFIT_CONTROL
	.no_dead_strip	_cdv_intel_lvds_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_intel_lvds_mode_set
_cdv_intel_lvds_mode_set:               ; @cdv_intel_lvds_mode_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x20, x1
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	w0, [x0]
	bl	_to_gma_crtc
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _PFIT_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PFIT_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VERT_AUTO_SCALE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VERT_AUTO_SCALE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _HORIZ_AUTO_SCALE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HORIZ_AUTO_SCALE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _VERT_INTERP_BILINEAR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VERT_INTERP_BILINEAR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _HORIZ_INTERP_BILINEAR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HORIZ_INTERP_BILINEAR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
LBB0_4:
	ldr	w9, [x0]
Lloh15:
	adrp	x10, _PFIT_PIPE_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PFIT_PIPE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	ldr	x9, [x21]
Lloh18:
	adrp	x10, _PANEL_8TO6_DITHER_ENABLE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _PANEL_8TO6_DITHER_ENABLE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w1, w8, w9
Lloh21:
	adrp	x8, _PFIT_CONTROL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PFIT_CONTROL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_REG_WRITE
	.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
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PFIT_ENABLE,4,2                ; @PFIT_ENABLE
	.comm	_VERT_AUTO_SCALE,4,2            ; @VERT_AUTO_SCALE
	.comm	_HORIZ_AUTO_SCALE,4,2           ; @HORIZ_AUTO_SCALE
	.comm	_VERT_INTERP_BILINEAR,4,2       ; @VERT_INTERP_BILINEAR
	.comm	_HORIZ_INTERP_BILINEAR,4,2      ; @HORIZ_INTERP_BILINEAR
	.comm	_PFIT_PIPE_SHIFT,4,2            ; @PFIT_PIPE_SHIFT
	.comm	_PANEL_8TO6_DITHER_ENABLE,4,2   ; @PANEL_8TO6_DITHER_ENABLE
	.comm	_PFIT_CONTROL,4,2               ; @PFIT_CONTROL
	.no_dead_strip	_cdv_intel_lvds_mode_set
.subsections_via_symbols
