	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_regamma
_build_regamma:                         ## @build_regamma
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kvzalloc
	movq	%rax, %r12
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_build_coefficients
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_pow_buffer@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NUM_PTS_IN_REGION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_pow_buffer_ptr@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	testq	%r15, %r15
	js	LBB0_5
## %bb.3:
	incq	%r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%r13,4), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_translate_from_linear_space_ex
	movl	%eax, (%rbx)
	movl	%eax, 8(%rbx)
	movl	%eax, 4(%rbx)
	incq	%r13
	addq	$12, %rbx
	cmpq	%r13, %r15
	jne	LBB0_4
LBB0_5:
	movq	_pow_buffer_ptr@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	movl	$1, %r13d
LBB0_6:
	movq	%r12, %rdi
	callq	_kfree
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_pow_buffer,4,2                 ## @pow_buffer
	.comm	_NUM_PTS_IN_REGION,4,2          ## @NUM_PTS_IN_REGION
	.comm	_pow_buffer_ptr,4,2             ## @pow_buffer_ptr
	.no_dead_strip	_build_regamma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_regamma
_build_regamma:                         ; @build_regamma
	.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	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kvzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	bl	_build_coefficients
	cbz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _pow_buffer@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pow_buffer@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _NUM_PTS_IN_REGION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUM_PTS_IN_REGION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
Lloh9:
	adrp	x23, _pow_buffer_ptr@GOTPAGE
Lloh10:
	ldr	x23, [x23, _pow_buffer_ptr@GOTPAGEOFF]
	str	wzr, [x23]
	tbnz	x22, #63, LBB0_5
; %bb.3:
	add	x22, x22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20], #4
	mov	x1, x19
	mov	w2, #0
	bl	_translate_from_linear_space_ex
	stp	w0, w0, [x21, #4]
	str	w0, [x21], #12
	subs	x22, x22, #1
	b.ne	LBB0_4
LBB0_5:
	mov	w8, #-1
	str	w8, [x23]
	mov	w20, #1
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_pow_buffer,4,2                 ; @pow_buffer
	.comm	_NUM_PTS_IN_REGION,4,2          ; @NUM_PTS_IN_REGION
	.comm	_pow_buffer_ptr,4,2             ; @pow_buffer_ptr
	.no_dead_strip	_build_regamma
.subsections_via_symbols
