	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function udl_crtc_mode_set
_udl_crtc_mode_set:                     ## @udl_crtc_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r15
	movq	(%rax), %rdi
	callq	_to_udl_fb
	movq	%rax, %r13
	movq	(%r15), %r12
	movq	%rbx, 16(%r12)
	movq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_udl_vidreg_lock
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_udl_set_color_depth
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_udl_set_base16bpp
	movl	(%r14), %esi
	imull	4(%r14), %esi
	addl	%esi, %esi
	movq	%rax, %rdi
	callq	_udl_set_base8bpp
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_udl_set_vid_cmds
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_udl_set_blank
	movq	%rax, %rdi
	callq	_udl_vidreg_unlock
	movq	%rax, %rdi
	callq	_udl_dummy_render
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rbx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_to_udl_fb
	movl	$0, (%rax)
LBB0_2:
	movl	$1, (%r13)
	subl	%r15d, %ebx
	movl	%ebx, (%r12)
	movl	4(%r13), %r8d
	movl	8(%r13), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_udl_handle_damage
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ## @DRM_MODE_DPMS_ON
	.no_dead_strip	_udl_crtc_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function udl_crtc_mode_set
_udl_crtc_mode_set:                     ; @udl_crtc_mode_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x5
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldp	x8, x24, [x0]
	ldr	x0, [x8]
	bl	_to_udl_fb
	mov	x19, x0
	ldr	x24, [x24]
	str	x21, [x24, #16]
	ldr	x21, [x24, #8]
	mov	x0, x21
	bl	_udl_vidreg_lock
	mov	w1, #0
	bl	_udl_set_color_depth
	mov	w1, #0
	bl	_udl_set_base16bpp
	ldp	w8, w9, [x23]
	mul	w8, w8, w9
	lsl	w1, w8, #1
	bl	_udl_set_base8bpp
	mov	x1, x22
	bl	_udl_set_vid_cmds
Lloh0:
	adrp	x8, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_udl_set_blank
	bl	_udl_vidreg_unlock
	bl	_udl_dummy_render
	mov	x22, x0
	cbz	x20, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_to_udl_fb
	str	wzr, [x0]
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	sub	w8, w22, w21
	str	w8, [x24]
	ldp	w4, w3, [x19, #4]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_udl_handle_damage
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_ON,4,2           ; @DRM_MODE_DPMS_ON
	.no_dead_strip	_udl_crtc_mode_set
.subsections_via_symbols
