	.file	"597706.c"
	.intel_syntax noprefix
	.text
	.globl	XmuGetColormapAllocation
	.type	XmuGetColormapAllocation, @function
XmuGetColormapAllocation:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -56[rbp], r8
	mov	DWORD PTR -4[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 2
	jg	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, 25
	cmp	rax, 5
	ja	.L4
	lea	rdx, 0[0+rax*4]
	lea	rax, .L6[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L6[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L6:
	.long	.L11-.L6
	.long	.L10-.L6
	.long	.L9-.L6
	.long	.L8-.L6
	.long	.L7-.L6
	.long	.L5-.L6
	.text
.L9:
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	default_allocation
	mov	DWORD PTR -4[rbp], eax
	jmp	.L12
.L11:
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	best_allocation
	jmp	.L12
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	edi, eax
	mov	eax, 0
	call	gray_allocation
	jmp	.L12
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L12
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L12
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L12
.L4:
	mov	DWORD PTR -4[rbp], 0
.L12:
	mov	eax, DWORD PTR -4[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	XmuGetColormapAllocation, .-XmuGetColormapAllocation
	.type	gray_allocation, @function
gray_allocation:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 30
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 59
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	add	rsi, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rsi, rax
	mov	rax, rdx
	sub	rax, rsi
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gray_allocation, .-gray_allocation
	.type	default_allocation, @function
default_allocation:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 5
	je	.L15
	cmp	eax, 5
	jg	.L16
	cmp	eax, 4
	je	.L17
	cmp	eax, 4
	jg	.L16
	cmp	eax, 1
	je	.L18
	cmp	eax, 3
	jne	.L16
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 65000
	jle	.L19
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], 27
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L24
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 4000
	jle	.L21
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], 12
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L24
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 249
	jg	.L22
	mov	eax, 0
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	sub	eax, 125
	mov	edi, eax
	mov	eax, 0
	call	icbrt
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L24
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 9
	jg	.L25
	mov	eax, 0
	jmp	.L23
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L24
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 32[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 32[rdx]
	neg	rdx
	mov	rdi, rdx
	and	rdi, rcx
	mov	edx, 0
	div	rdi
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 40[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 40[rdx]
	neg	rdx
	mov	rsi, rdx
	and	rsi, rcx
	mov	edx, 0
	div	rsi
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 48[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 48[rdx]
	neg	rdx
	mov	rdi, rdx
	and	rdi, rcx
	mov	edx, 0
	div	rdi
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L24
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 65000
	jle	.L26
	mov	DWORD PTR -4[rbp], 4096
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 4000
	jle	.L28
	mov	DWORD PTR -4[rbp], 512
	jmp	.L27
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	eax, 249
	jg	.L29
	mov	eax, 0
	jmp	.L23
.L29:
	mov	DWORD PTR -4[rbp], 12
.L27:
	mov	rcx, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	gray_allocation
	jmp	.L24
.L16:
	mov	eax, 0
	jmp	.L23
.L24:
	mov	eax, 1
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	default_allocation, .-default_allocation
	.type	best_allocation, @function
best_allocation:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 40
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 5
	je	.L31
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	eax, 4
	jne	.L32
.L31:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L33
.L34:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	shr	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
.L33:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	and	eax, 1
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L35
.L36:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	shr	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
.L35:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	and	eax, 1
	test	rax, rax
	je	.L36
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L37
.L38:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	shr	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
.L37:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	and	eax, 1
	test	rax, rax
	je	.L38
	jmp	.L39
.L32:
	mov	r12d, 1
	mov	ebx, 0
	jmp	.L40
.L41:
	add	r12d, r12d
	add	ebx, 1
.L40:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	r12d, eax
	jl	.L41
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 56[rax]
	cmp	r12d, eax
	jne	.L42
	movsx	rax, ebx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	edx, ebx
	sar	edx, 31
	mov	r12d, eax
	sub	r12d, edx
	movsx	rax, ebx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	edx, ebx
	sar	edx, 31
	sub	eax, edx
	mov	edx, eax
	add	edx, edx
	add	edx, eax
	mov	eax, ebx
	sub	eax, edx
	test	eax, eax
	setne	al
	movzx	eax, al
	lea	r13d, [r12+rax]
	movsx	rax, ebx
	imul	rax, rax, 1431655766
	shr	rax, 32
	mov	edx, ebx
	sar	edx, 31
	sub	eax, edx
	mov	edx, eax
	add	edx, edx
	add	edx, eax
	mov	eax, ebx
	sub	eax, edx
	cmp	eax, 2
	sete	al
	movzx	eax, al
	lea	ebx, [r12+rax]
	mov	eax, 1
	mov	ecx, ebx
	sal	eax, cl
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
	mov	ecx, r13d
	sal	eax, cl
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
	mov	ecx, r12d
	sal	eax, cl
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L43
.L42:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 56[rax]
	mov	esi, ebx
	mov	edi, eax
	mov	eax, 0
	call	icbrt_with_bits
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 56[rax]
	cdqe
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	rsi, rdx
	imul	rsi, rcx
	mov	edx, 0
	div	rsi
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
.L43:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
.L39:
	nop
	add	rsp, 40
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	best_allocation, .-best_allocation
	.type	icbrt, @function
icbrt:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -20[rbp], edi
	mov	r12d, 0
	mov	ebx, DWORD PTR -20[rbp]
	jmp	.L46
.L47:
	add	r12d, 1
	shr	ebx
.L46:
	test	ebx, ebx
	jne	.L47
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, r12d
	mov	edi, eax
	mov	eax, 0
	call	icbrt_with_bits
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	icbrt, .-icbrt
	.type	icbrt_with_bits, @function
icbrt_with_bits:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	mov	eax, 0
	call	icbrt_with_guess
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	icbrt_with_bits, .-icbrt_with_bits
	.type	icbrt_with_guess, @function
icbrt_with_guess:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	.cfi_offset 3, -24
	mov	DWORD PTR -12[rbp], edi
	mov	DWORD PTR -16[rbp], esi
	cmp	DWORD PTR -12[rbp], 0
	jg	.L52
	mov	eax, 0
	jmp	.L53
.L52:
	cmp	DWORD PTR -16[rbp], 0
	jg	.L55
	mov	DWORD PTR -16[rbp], 1
.L55:
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, eax
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdq
	idiv	ecx
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	sub	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ebx, edx
	sub	ebx, eax
	sub	DWORD PTR -16[rbp], ebx
	test	ebx, ebx
	jne	.L55
	mov	eax, DWORD PTR -16[rbp]
	imul	eax, eax
	imul	eax, DWORD PTR -16[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L56
	sub	DWORD PTR -16[rbp], 1
.L56:
	mov	eax, DWORD PTR -16[rbp]
.L53:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	icbrt_with_guess, .-icbrt_with_guess
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"597706.c"
	.text
	.align	2
	.global	XmuGetColormapAllocation
	.syntax unified
	.arm
	.fpu softvfp
	.type	XmuGetColormapAllocation, %function
XmuGetColormapAllocation:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	cmp	r3, #2
	bgt	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #25
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L5
.L9:
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	default_allocation
	str	r0, [fp, #-8]
	b	.L12
.L11:
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	best_allocation
	b	.L12
.L8:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #32]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	bl	gray_allocation
	b	.L12
.L5:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	b	.L12
.L7:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #4]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #4]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	b	.L12
.L10:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #4]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	b	.L12
.L4:
	mov	r3, #0
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	XmuGetColormapAllocation, .-XmuGetColormapAllocation
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gray_allocation, %function
gray_allocation:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, .L14
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, .L14
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	ldr	r2, .L14
	smull	r1, r2, r3, r2
	asr	r2, r2, #5
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r1, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r0, r0, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r0, r3
	sub	r3, r1, r3
	add	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	1374389535
	.size	gray_allocation, .-gray_allocation
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	default_allocation, %function
default_allocation:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L17
.L19:
	.word	.L22
	.word	.L17
	.word	.L21
	.word	.L20
	.word	.L18
.L21:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	ldr	r2, .L34
	cmp	r3, r2
	ble	.L23
	ldr	r3, [fp, #-28]
	mov	r2, #27
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L28
.L23:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	cmp	r3, #4000
	ble	.L25
	ldr	r3, [fp, #-28]
	mov	r2, #12
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L28
.L25:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	cmp	r3, #249
	bgt	.L26
	mov	r3, #0
	b	.L27
.L26:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	sub	r3, r3, #125
	mov	r0, r3
	bl	icbrt
	mov	r3, r0
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L28
.L18:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	cmp	r3, #9
	bgt	.L29
	mov	r3, #0
	b	.L27
.L29:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	b	.L28
.L20:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #20]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	rsb	r3, r3, #0
	and	r3, r3, r2
	mov	r1, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #24]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	rsb	r3, r3, #0
	and	r3, r3, r2
	mov	r1, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	rsb	r3, r3, #0
	and	r3, r3, r2
	mov	r1, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	b	.L28
.L22:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	ldr	r2, .L34
	cmp	r3, r2
	ble	.L30
	mov	r3, #4096
	str	r3, [fp, #-8]
	b	.L31
.L30:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	cmp	r3, #4000
	ble	.L32
	mov	r3, #512
	str	r3, [fp, #-8]
	b	.L31
.L32:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #32]
	cmp	r3, #249
	bgt	.L33
	mov	r3, #0
	b	.L27
.L33:
	mov	r3, #12
	str	r3, [fp, #-8]
.L31:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	gray_allocation
	b	.L28
.L17:
	mov	r3, #0
	b	.L27
.L28:
	mov	r3, #1
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	65000
	.size	default_allocation, .-default_allocation
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	best_allocation, %function
best_allocation:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	cmp	r3, #5
	beq	.L37
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	cmp	r3, #4
	bne	.L38
.L37:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	b	.L39
.L40:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	lsr	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
.L39:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	b	.L41
.L42:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	lsr	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3]
.L41:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L43
.L44:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	lsr	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
.L43:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L44
	b	.L45
.L38:
	mov	r5, #1
	mov	r4, #0
	b	.L46
.L47:
	lsl	r5, r5, #1
	add	r4, r4, #1
.L46:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	cmp	r5, r3
	blt	.L47
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	cmp	r5, r3
	bne	.L48
	ldr	r3, .L51
	smull	r1, r2, r3, r4
	asr	r3, r4, #31
	sub	r5, r2, r3
	ldr	r3, .L51
	smull	r1, r2, r3, r4
	asr	r3, r4, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r4, r3
	cmp	r2, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	add	r6, r5, r3
	ldr	r3, .L51
	smull	r1, r2, r3, r4
	asr	r3, r4, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r4, r3
	cmp	r2, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	add	r4, r5, r3
	mov	r3, #1
	lsl	r3, r3, r4
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	mov	r3, #1
	lsl	r3, r3, r6
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	mov	r3, #1
	lsl	r3, r3, r5
	mov	r2, r3
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	b	.L49
.L48:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	mov	r1, r4
	mov	r0, r3
	bl	icbrt_with_bits
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	mov	r0, r3
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r2, [r2]
	mul	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-32]
	str	r2, [r3]
.L49:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
.L45:
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L52:
	.align	2
.L51:
	.word	1431655766
	.size	best_allocation, .-best_allocation
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	icbrt, %function
icbrt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	mov	r5, #0
	ldr	r4, [fp, #-16]
	b	.L54
.L55:
	add	r5, r5, #1
	lsr	r4, r4, #1
.L54:
	cmp	r4, #0
	bne	.L55
	mov	r1, r5
	ldr	r0, [fp, #-16]
	bl	icbrt_with_bits
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	icbrt, .-icbrt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	icbrt_with_bits, %function
icbrt_with_bits:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	ldr	r2, .L59
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	asr	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	icbrt_with_guess
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	1431655766
	.size	icbrt_with_bits, .-icbrt_with_bits
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	icbrt_with_guess, %function
icbrt_with_guess:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L62
	mov	r3, #0
	b	.L63
.L62:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L65
	mov	r3, #1
	str	r3, [fp, #-20]
.L65:
	ldr	r3, [fp, #-20]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-20]
	sub	r3, r3, r2
	ldr	r2, .L67
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r4, r2, r3
	ldr	r3, [fp, #-20]
	sub	r3, r3, r4
	str	r3, [fp, #-20]
	cmp	r4, #0
	bne	.L65
	ldr	r3, [fp, #-20]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L66
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
.L66:
	ldr	r3, [fp, #-20]
.L63:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L68:
	.align	2
.L67:
	.word	1431655766
	.size	icbrt_with_guess, .-icbrt_with_guess
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
