	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_graphics_mode
_configure_graphics_mode:               ## @configure_graphics_mode
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	_OUTPUT_CSC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OUTPUT_CSC_GRPH_MODE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_REG_SET
	movq	_GRAPHICS_CSC_ADJUST_TYPE_SW@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_CSC_COLOR_MODE_GRAPHICS_OUTPUT_CSC@GOTPCREL(%rip), %rax
	movl	$4, %r12d
	cmpl	%r15d, (%rax)
	jne	LBB0_3
	jmp	LBB0_5
LBB0_2:
	movq	_GRAPHICS_CSC_ADJUST_TYPE_HW@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
LBB0_3:
	addl	$-128, %r14d
	xorl	%eax, %eax
	cmpl	$6, %r14d
	jae	LBB0_6
## %bb.4:
	movslq	%r14d, %rax
	leaq	l_switch.table.configure_graphics_mode.1(%rip), %rcx
	leaq	(%rcx,%rax,4), %rax
	movl	(%rax), %r12d
LBB0_5:
	movq	_OUTPUT_CSC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	movl	%r12d, %ecx
	callq	_REG_SET
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OUTPUT_CSC_CONTROL,4,2         ## @OUTPUT_CSC_CONTROL
	.comm	_OUTPUT_CSC_GRPH_MODE,4,2       ## @OUTPUT_CSC_GRPH_MODE
	.comm	_GRAPHICS_CSC_ADJUST_TYPE_SW,4,2 ## @GRAPHICS_CSC_ADJUST_TYPE_SW
	.comm	_CSC_COLOR_MODE_GRAPHICS_OUTPUT_CSC,4,2 ## @CSC_COLOR_MODE_GRAPHICS_OUTPUT_CSC
	.comm	_GRAPHICS_CSC_ADJUST_TYPE_HW,4,2 ## @GRAPHICS_CSC_ADJUST_TYPE_HW
	.no_dead_strip	_configure_graphics_mode
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.configure_graphics_mode.1
l_switch.table.configure_graphics_mode.1:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_graphics_mode
_configure_graphics_mode:               ; @configure_graphics_mode
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x22, _OUTPUT_CSC_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _OUTPUT_CSC_CONTROL@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _OUTPUT_CSC_GRPH_MODE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _OUTPUT_CSC_GRPH_MODE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #0
	mov	w3, #0
	bl	_REG_SET
Lloh4:
	adrp	x8, _GRAPHICS_CSC_ADJUST_TYPE_SW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GRAPHICS_CSC_ADJUST_TYPE_SW@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _CSC_COLOR_MODE_GRAPHICS_OUTPUT_CSC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSC_COLOR_MODE_GRAPHICS_OUTPUT_CSC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_6
; %bb.2:
	mov	w3, #4
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x8, _GRAPHICS_CSC_ADJUST_TYPE_HW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRAPHICS_CSC_ADJUST_TYPE_HW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.4:
	sub	w8, w19, #128
	cmp	w8, #5
	b.hi	LBB0_7
LBB0_5:
Lloh13:
	adrp	x9, l_switch.table.configure_graphics_mode.1@PAGE
Lloh14:
	add	x9, x9, l_switch.table.configure_graphics_mode.1@PAGEOFF
	ldr	w3, [x9, w8, sxtw #2]
	b	LBB0_9
LBB0_6:
	sub	w8, w19, #128
	cmp	w8, #6
	b.lo	LBB0_5
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	mov	w3, #0
LBB0_9:
	ldr	w0, [x22]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_REG_SET
	mov	w0, #1
LBB0_10:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_OUTPUT_CSC_CONTROL,4,2         ; @OUTPUT_CSC_CONTROL
	.comm	_OUTPUT_CSC_GRPH_MODE,4,2       ; @OUTPUT_CSC_GRPH_MODE
	.comm	_GRAPHICS_CSC_ADJUST_TYPE_SW,4,2 ; @GRAPHICS_CSC_ADJUST_TYPE_SW
	.comm	_CSC_COLOR_MODE_GRAPHICS_OUTPUT_CSC,4,2 ; @CSC_COLOR_MODE_GRAPHICS_OUTPUT_CSC
	.comm	_GRAPHICS_CSC_ADJUST_TYPE_HW,4,2 ; @GRAPHICS_CSC_ADJUST_TYPE_HW
	.no_dead_strip	_configure_graphics_mode
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.configure_graphics_mode.1
l_switch.table.configure_graphics_mode.1:
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	0                               ; 0x0

.subsections_via_symbols
