	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetChanAmbColor             ## -- Begin function GX_SetChanAmbColor
	.p2align	4, 0x90
_GX_SetChanAmbColor:                    ## @GX_SetChanAmbColor
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	%rsi, %rbx
	shrq	$32, %rbx
	movq	%rdx, %rdi
	shrq	$32, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$24, %esi
	movl	$8, %edx
	callq	__SHIFTL
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	$16, %esi
	movl	$8, %edx
	callq	__SHIFTL
	movl	%eax, %r15d
	movl	%ebx, %edi
	movl	$8, %esi
	movl	$8, %edx
	callq	__SHIFTL
	addl	$-128, %r13d
	cmpl	$5, %r13d
	ja	LBB0_11
## %bb.1:
	orl	%r12d, %r15d
	orl	%eax, %r15d
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	___gx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movl	%r15d, %eax
	movzbl	4(%rcx), %r15d
	jmp	LBB0_6
LBB0_3:
	movq	___gx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movl	%r15d, %eax
	movzbl	(%rcx), %r15d
	jmp	LBB0_9
LBB0_4:
	movq	___gx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	$-256, %r15d
	andl	4(%rax), %r15d
LBB0_5:
	movzbl	%r14b, %eax
LBB0_6:
	movl	$1, %ecx
	jmp	LBB0_10
LBB0_7:
	movq	___gx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	$-256, %r15d
	andl	(%rax), %r15d
LBB0_8:
	movzbl	%r14b, %eax
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	orl	%r15d, %eax
	movq	___gx@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rsi
	movl	%ecx, %edi
	movl	$256, %ebx                      ## imm = 0x100
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	%eax, (%rsi,%rdi,4)
	orl	%ebx, 8(%rdx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	___gx,8,3                       ## @__gx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GX_SetChanAmbColor             ; -- Begin function GX_SetChanAmbColor
	.p2align	2
_GX_SetChanAmbColor:                    ; @GX_SetChanAmbColor
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	lsr	x23, x1, #32
	lsr	x0, x2, #32
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #24
	mov	w2, #8
	bl	__SHIFTL
	mov	x20, x0
	mov	x0, x21
	mov	w1, #16
	mov	w2, #8
	bl	__SHIFTL
	mov	x21, x0
	mov	x0, x23
	mov	w1, #8
	mov	w2, #8
	bl	__SHIFTL
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.1:
	orr	w9, w21, w20
	orr	w9, w9, w0
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
Lloh2:
	adrp	x8, ___gx@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___gx@GOTPAGEOFF]
	br	x11
LBB0_2:
	ldr	x10, [x8]
	ldr	x10, [x10]
	mov	x11, x9
	ldrb	w9, [x10, #4]
	b	LBB0_7
LBB0_3:
	mov	w10, #0
	b	LBB0_9
LBB0_4:
	mov	w10, #0
	ldr	x11, [x8]
	ldr	x12, [x11]
	mov	x11, x9
	ldrb	w9, [x12]
	b	LBB0_10
LBB0_5:
	ldr	x9, [x8]
	ldr	x9, [x9]
	ldr	w9, [x9, #4]
	and	w9, w9, #0xffffff00
LBB0_6:
	and	w11, w19, #0xff
LBB0_7:
	mov	w10, #1
	b	LBB0_10
LBB0_8:
	mov	w10, #0
	ldr	x9, [x8]
	ldr	x9, [x9]
	ldr	w9, [x9]
	and	w9, w9, #0xffffff00
LBB0_9:
	and	w11, w19, #0xff
LBB0_10:
	orr	w9, w9, w11
	ldr	x8, [x8]
	ldr	x11, [x8]
	str	w9, [x11, w10, uxtw #2]
	mov	w9, #256
	lsl	w9, w9, w10
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
LBB0_11:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	___gx,8,3                       ; @__gx
.subsections_via_symbols
