	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpg_get_color
_tpg_get_color:                         ## @tpg_get_color
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r8d
	leal	-128(%r8), %ecx
	cmpl	$20, %ecx
	ja	LBB0_3
## %bb.1:
	movl	$170, %eax
	leaq	LJTI0_0(%rip), %r9
	movslq	(%r9,%rcx,4), %rcx
	addq	%r9, %rcx
	jmpq	*%rcx
LBB0_2:
	shll	$3, %edx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	4(%rdi)
                                        ## kill: def $eax killed $eax def $rax
	andl	$7, %eax
	shlq	$5, %r8
	leaq	_tpg_get_color.bars(%rip), %rcx
	addq	%r8, %rcx
	movl	(%rcx,%rax,4), %eax
	popq	%rbp
	retq
LBB0_3:
	movl	$165, %eax
	jmp	LBB0_12
LBB0_4:
	movl	$164, %eax
	popq	%rbp
	retq
LBB0_5:
	movl	$167, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	_TPG_COLOR_RAMP@GOTPCREL(%rip), %rcx
	movl	4(%rdi), %esi
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %eax
	shll	$8, %eax
	xorl	%edx, %edx
	divl	%esi
	addl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	testl	%esi, %esi
	jne	LBB0_12
## %bb.8:
	movl	4(%rdi), %ecx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	incl	%edx
	shrl	%edx
	shrl	$2, %ecx
	cmpl	%ecx, %edx
	jmp	LBB0_25
LBB0_9:
	testl	%esi, %esi
	jne	LBB0_12
## %bb.10:
	movl	4(%rdi), %ecx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	shrl	%ecx
	cmpl	%ecx, %edx
	jmp	LBB0_25
LBB0_11:
	testl	%esi, %esi
	je	LBB0_24
LBB0_12:
	popq	%rbp
	retq
LBB0_13:
	shrl	%edx
LBB0_14:
	xorl	%esi, %edx
	xorl	%eax, %eax
	testb	$1, %dl
	sete	%al
	leal	165(,%rax,4), %eax
	popq	%rbp
	retq
LBB0_15:
	shrl	%edx
LBB0_16:
	xorl	%esi, %edx
LBB0_17:
	testb	$1, %dl
	jmp	LBB0_25
LBB0_18:
	shrl	$4, %edx
	xorl	%esi, %edx
	testb	$1, %dl
	movl	$164, %ecx
	movl	$170, %eax
	jmp	LBB0_26
LBB0_19:
	movl	$169, %eax
	popq	%rbp
	retq
LBB0_20:
	testl	%esi, %esi
	jmp	LBB0_25
LBB0_21:
	movl	%esi, %eax
	jmp	LBB0_23
LBB0_22:
	shll	$3, %edx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	4(%rdi)
                                        ## kill: def $eax killed $eax def $rax
	addl	%esi, %eax
	andl	$7, %eax
LBB0_23:
	leaq	_tpg_get_color.bars(%rip), %rcx
	movl	32(%rcx,%rax,4), %eax
	popq	%rbp
	retq
LBB0_24:
	movl	4(%rdi), %ecx
	movl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	addl	$10, %edx
	movl	$3435973837, %eax               ## imm = 0xCCCCCCCD
	imulq	%rax, %rdx
	shrq	$36, %rdx
	imulq	%rax, %rcx
	shrq	$37, %rcx
	cmpl	%ecx, %edx
LBB0_25:
	movl	$170, %ecx
	movl	$164, %eax
LBB0_26:
	cmovel	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_19
	.long	L0_0_set_12
	.long	L0_0_set_17
	.long	L0_0_set_20
	.long	L0_0_set_2
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @tpg_get_color.bars
_tpg_get_color.bars:
	.long	150                             ## 0x96
	.long	157                             ## 0x9d
	.long	161                             ## 0xa1
	.long	160                             ## 0xa0
	.long	159                             ## 0x9f
	.long	158                             ## 0x9e
	.long	162                             ## 0xa2
	.long	170                             ## 0xaa
	.long	164                             ## 0xa4
	.long	163                             ## 0xa3
	.long	168                             ## 0xa8
	.long	167                             ## 0xa7
	.long	166                             ## 0xa6
	.long	165                             ## 0xa5
	.long	169                             ## 0xa9
	.long	170                             ## 0xaa
	.long	150                             ## 0x96
	.long	149                             ## 0x95
	.long	154                             ## 0x9a
	.long	153                             ## 0x99
	.long	152                             ## 0x98
	.long	151                             ## 0x97
	.long	155                             ## 0x9b
	.long	156                             ## 0x9c

	.comm	_TPG_COLOR_RAMP,4,2             ## @TPG_COLOR_RAMP
	.no_dead_strip	_tpg_get_color
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpg_get_color
_tpg_get_color:                         ; @tpg_get_color
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	sub	w10, w9, #128
	cmp	w10, #20
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x0
	mov	w0, #170
Lloh0:
	adrp	x11, lJTI0_0@PAGE
Lloh1:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	lsl	w10, w2, #3
	ldr	w8, [x8, #4]
	udiv	w8, w10, w8
	and	w8, w8, #0x7
Lloh2:
	adrp	x10, _tpg_get_color.bars@PAGE
Lloh3:
	add	x10, x10, _tpg_get_color.bars@PAGEOFF
	add	x9, x10, x9, lsl #5
	ldr	w0, [x9, w8, uxtw #2]
	ret
LBB0_3:
	mov	w0, #165
	b	LBB0_13
LBB0_4:
	mov	w0, #164
	ret
LBB0_5:
	mov	w0, #167
	ret
LBB0_6:
Lloh4:
	adrp	x9, _TPG_COLOR_RAMP@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TPG_COLOR_RAMP@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	w8, [x8, #4]
	udiv	w10, w2, w8
	msub	w10, w10, w8, w2
	lsl	w10, w10, #8
	udiv	w8, w10, w8
	add	w0, w8, w9
	ret
LBB0_7:
	mov	w0, #170
	cbnz	w1, LBB0_13
; %bb.8:
	ldr	w8, [x8, #4]
	udiv	w9, w2, w8
	msub	w9, w9, w8, w2
	add	w9, w9, #1
	lsr	w9, w9, #1
	cmp	w9, w8, lsr #2
	b	LBB0_11
LBB0_9:
	mov	w0, #170
	cbnz	w1, LBB0_13
; %bb.10:
	ldr	w8, [x8, #4]
	udiv	w9, w2, w8
	msub	w9, w9, w8, w2
	cmp	w9, w8, lsr #1
LBB0_11:
	mov	w8, #164
	csel	w0, w0, w8, eq
	ret
LBB0_12:
	mov	w0, #170
	cbz	w1, LBB0_27
LBB0_13:
	ret
LBB0_14:
	eor	w8, w1, w2, lsr #1
	b	LBB0_16
LBB0_15:
	eor	w8, w2, w1
LBB0_16:
	tst	w8, #0x1
	mov	w8, #165
	mov	w9, #169
	csel	w0, w9, w8, eq
	ret
LBB0_17:
	eor	w8, w1, w2, lsr #1
	b	LBB0_19
LBB0_18:
	eor	w8, w2, w1
LBB0_19:
	tst	w8, #0x1
	b	LBB0_23
LBB0_20:
	eor	w8, w1, w2, lsr #4
	tst	w8, #0x1
	mov	w8, #170
	mov	w9, #164
	csel	w0, w9, w8, eq
	ret
LBB0_21:
	mov	w0, #169
	ret
LBB0_22:
	tst	w2, #0x1
LBB0_23:
	mov	w8, #164
	mov	w9, #170
	csel	w0, w9, w8, eq
	ret
LBB0_24:
	mov	w8, #164
	mov	w9, #170
	cmp	w1, #0
	csel	w0, w9, w8, eq
	ret
LBB0_25:
Lloh7:
	adrp	x8, _tpg_get_color.bars@PAGE
Lloh8:
	add	x8, x8, _tpg_get_color.bars@PAGEOFF
	add	x8, x8, w1, uxtw #2
	ldr	w0, [x8, #32]
	ret
LBB0_26:
	lsl	w9, w2, #3
	ldr	w8, [x8, #4]
	udiv	w8, w9, w8
	add	w8, w8, w1
	and	w8, w8, #0x7
Lloh9:
	adrp	x9, _tpg_get_color.bars@PAGE
Lloh10:
	add	x9, x9, _tpg_get_color.bars@PAGEOFF
	add	x8, x9, w8, uxtw #2
	ldr	w0, [x8, #32]
	ret
LBB0_27:
	ldr	w8, [x8, #4]
	udiv	w9, w2, w8
	msub	w9, w9, w8, w2
	add	w9, w9, #10
	mov	w10, #52429
	movk	w10, #52428, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #36
	mul	x8, x8, x10
	lsr	x8, x8, #37
	mov	w10, #164
	cmp	w9, w8
	csel	w0, w0, w10, eq
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.p2align	2                               ; @tpg_get_color.bars
_tpg_get_color.bars:
	.long	150                             ; 0x96
	.long	157                             ; 0x9d
	.long	161                             ; 0xa1
	.long	160                             ; 0xa0
	.long	159                             ; 0x9f
	.long	158                             ; 0x9e
	.long	162                             ; 0xa2
	.long	170                             ; 0xaa
	.long	164                             ; 0xa4
	.long	163                             ; 0xa3
	.long	168                             ; 0xa8
	.long	167                             ; 0xa7
	.long	166                             ; 0xa6
	.long	165                             ; 0xa5
	.long	169                             ; 0xa9
	.long	170                             ; 0xaa
	.long	150                             ; 0x96
	.long	149                             ; 0x95
	.long	154                             ; 0x9a
	.long	153                             ; 0x99
	.long	152                             ; 0x98
	.long	151                             ; 0x97
	.long	155                             ; 0x9b
	.long	156                             ; 0x9c

	.comm	_TPG_COLOR_RAMP,4,2             ; @TPG_COLOR_RAMP
	.no_dead_strip	_tpg_get_color
.subsections_via_symbols
