	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_encoder_mode_set
_cdn_dp_encoder_mode_set:               ## @cdn_dp_encoder_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_encoder_to_dp
	movl	20(%rax), %ecx
	xorl	%edx, %edx
	cmpl	$6, %ecx
	setne	%dl
	addl	%edx, %edx
	addl	$6, %edx
	cmpl	$10, %ecx
	cmovel	%ecx, %edx
	movl	%edx, 4(%rax)
	movq	_PXL_RGB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	(%rbx), %ecx
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%ecx, %edx
	setne	%sil
	movl	%esi, 8(%rax)
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	andl	(%rdx), %ecx
	setne	%sil
	movl	%esi, 12(%rax)
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PXL_RGB,4,2                    ## @PXL_RGB
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.no_dead_strip	_cdn_dp_encoder_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_encoder_mode_set
_cdn_dp_encoder_mode_set:               ; @cdn_dp_encoder_mode_set
	.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	_encoder_to_dp
	ldr	w8, [x0, #20]
	mov	w9, #8
	cmp	w8, #6
	csel	w9, w8, w9, eq
	cmp	w8, #10
	csel	w8, w8, w9, eq
Lloh0:
	adrp	x9, _PXL_RGB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PXL_RGB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x20]
Lloh3:
	adrp	x11, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	cset	w11, ne
	stp	w8, w11, [x0, #4]
Lloh6:
	adrp	x8, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w10
	cset	w8, ne
	stp	w8, w9, [x0, #12]
	mov	x1, x19
	mov	w2, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PXL_RGB,4,2                    ; @PXL_RGB
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.no_dead_strip	_cdn_dp_encoder_mode_set
.subsections_via_symbols
