	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_SetColorMode                 ## -- Begin function R_SetColorMode
	.p2align	4, 0x90
_R_SetColorMode:                        ## @R_SetColorMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	movd	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rdi)
	movq	_MODE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edx, %eax
	jge	LBB0_2
## %bb.1:
	movq	_STEREO_LEFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movq	_STEREO_RIGHT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	cmpq	%rsi, %r9
	movq	%rsi, %rcx
	cmoveq	%r8, %rcx
	cmpq	%rsi, %r8
	cmoveq	%r9, %rcx
	subl	%eax, %edx
	movq	%rcx, %rsi
LBB0_2:
	movq	_MODE_GREEN_MAGENTA@GOTPCREL(%rip), %rcx
	movq	_STEREO_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	(%rcx), %edx
	jne	LBB0_5
## %bb.3:
	cmpq	%rax, %rsi
	jne	LBB0_7
## %bb.4:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movl	%eax, (%rdi)
	popq	%rbp
	retq
LBB0_5:
	cmpq	%rax, %rsi
	jne	LBB0_9
## %bb.6:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	jmp	LBB0_12
LBB0_7:
	movq	_STEREO_RIGHT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_15
## %bb.8:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_STEREO_RIGHT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_15
## %bb.10:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movq	_MODE_RED_BLUE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_13
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	movl	%eax, 4(%rdi)
	popq	%rbp
	retq
LBB0_13:
	movq	_MODE_RED_GREEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_15
## %bb.14:
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
LBB0_15:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
	.comm	_MODE_MAX,4,2                   ## @MODE_MAX
	.comm	_STEREO_LEFT,8,3                ## @STEREO_LEFT
	.comm	_STEREO_RIGHT,8,3               ## @STEREO_RIGHT
	.comm	_MODE_GREEN_MAGENTA,4,2         ## @MODE_GREEN_MAGENTA
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_MODE_RED_BLUE,4,2              ## @MODE_RED_BLUE
	.comm	_MODE_RED_GREEN,4,2             ## @MODE_RED_GREEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_SetColorMode                 ; -- Begin function R_SetColorMode
	.p2align	2
_R_SetColorMode:                        ; @R_SetColorMode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	ld1r.4s	{ v0 }, [x8]
	str	q0, [x0]
Lloh2:
	adrp	x8, _MODE_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MODE_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
Lloh5:
	adrp	x8, _STEREO_LEFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STEREO_LEFT@GOTPAGEOFF]
	cmp	w9, w2
	b.ge	LBB0_2
; %bb.1:
	ldr	x10, [x8]
Lloh7:
	adrp	x11, _STEREO_RIGHT@GOTPAGE
Lloh8:
	ldr	x11, [x11, _STEREO_RIGHT@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	cmp	x11, x1
	csel	x12, x10, x1, eq
	cmp	x10, x1
	csel	x1, x11, x12, eq
	sub	w2, w2, w9
LBB0_2:
Lloh10:
	adrp	x9, _MODE_GREEN_MAGENTA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MODE_GREEN_MAGENTA@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	x8, [x8]
	cmp	w2, w9
	b.ne	LBB0_5
; %bb.3:
	cmp	x1, x8
	b.ne	LBB0_7
; %bb.4:
Lloh13:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	w8, [x0]
	ret
LBB0_5:
	cmp	x1, x8
	b.ne	LBB0_9
; %bb.6:
Lloh16:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	stp	w8, w8, [x0, #4]
	ret
LBB0_7:
Lloh19:
	adrp	x8, _STEREO_RIGHT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STEREO_RIGHT@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_14
; %bb.8:
Lloh22:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh24:
	adrp	x8, _STEREO_RIGHT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _STEREO_RIGHT@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_14
; %bb.10:
Lloh27:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x0]
Lloh29:
	adrp	x9, _MODE_RED_BLUE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MODE_RED_BLUE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w2, w9
	b.ne	LBB0_12
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ret
LBB0_12:
Lloh32:
	adrp	x9, _MODE_RED_GREEN@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MODE_RED_GREEN@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	cmp	w2, w9
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x8]
	str	w8, [x0, #8]
LBB0_14:
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
	.comm	_MODE_MAX,4,2                   ; @MODE_MAX
	.comm	_STEREO_LEFT,8,3                ; @STEREO_LEFT
	.comm	_STEREO_RIGHT,8,3               ; @STEREO_RIGHT
	.comm	_MODE_GREEN_MAGENTA,4,2         ; @MODE_GREEN_MAGENTA
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_MODE_RED_BLUE,4,2              ; @MODE_RED_BLUE
	.comm	_MODE_RED_GREEN,4,2             ; @MODE_RED_GREEN
.subsections_via_symbols
