	.file	"extr_color_gamma.c_build_regamma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	build_regamma, @function
build_regamma:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, 4
	call	kvzalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L4
	mov	esi, ebp
	mov	rdi, rax
	call	build_coefficients@PLT
	test	eax, eax
	jne	.L13
.L4:
	xor	r12d, r12d
.L3:
	mov	rdi, r14
	call	kfree@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR NUM_PTS_IN_REGION[rip]
	mov	edi, DWORD PTR pow_buffer[rip]
	xor	esi, esi
	lea	edx, 0[0+rax*4]
	call	memset@PLT
	mov	DWORD PTR pow_buffer_ptr[rip], 0
	test	r12, r12
	js	.L5
	add	r12, 1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 0[r13+rbp*4]
	xor	edx, edx
	mov	rsi, r14
	add	rbp, 1
	add	rbx, 12
	call	translate_from_linear_space_ex@PLT
	mov	DWORD PTR -12[rbx], eax
	mov	DWORD PTR -4[rbx], eax
	mov	DWORD PTR -8[rbx], eax
	cmp	rbp, r12
	jne	.L6
.L5:
	mov	DWORD PTR pow_buffer_ptr[rip], -1
	mov	r12d, 1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	build_regamma, .-build_regamma
	.comm	pow_buffer_ptr,4,4
	.comm	pow_buffer,4,4
	.comm	NUM_PTS_IN_REGION,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_color_gamma.c_build_regamma.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_regamma, %function
build_regamma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r1
	ldr	r1, .L14
	mov	r4, r0
	ldr	r1, [r1]
	mov	r0, #4
	mov	r6, r2
	mov	r5, r3
	bl	kvzalloc
	subs	r7, r0, #0
	beq	.L4
	mov	r1, r5
	bl	build_coefficients
	cmp	r0, #0
	bne	.L13
.L4:
	mov	r4, #0
.L3:
	mov	r0, r7
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	mov	r5, #0
	ldr	r2, .L14+4
	ldr	r3, .L14+8
	ldr	r2, [r2]
	mov	r1, #0
	ldr	r0, [r3]
	ldr	r8, .L14+12
	lsl	r2, r2, #2
	bl	memset
	cmp	r9, r5
	str	r5, [r8]
	blt	.L5
	add	r4, r4, #12
	sub	r6, r6, #4
	add	r9, r9, #1
.L6:
	mov	r2, #0
	mov	r1, r7
	ldr	r0, [r6, #4]!
	bl	translate_from_linear_space_ex
	add	r5, r5, #1
	cmp	r5, r9
	str	r0, [r4, #-12]
	str	r0, [r4, #-4]
	str	r0, [r4, #-8]
	add	r4, r4, #12
	bne	.L6
.L5:
	mvn	r3, #0
	mov	r4, #1
	str	r3, [r8]
	b	.L3
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	NUM_PTS_IN_REGION
	.word	pow_buffer
	.word	pow_buffer_ptr
	.size	build_regamma, .-build_regamma
	.comm	pow_buffer_ptr,4,4
	.comm	pow_buffer,4,4
	.comm	NUM_PTS_IN_REGION,4,4
	.comm	GFP_KERNEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
