	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_pwl
_program_pwl:                           ## @program_pwl
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_GAMMA_CORR_LUT_WRITE_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	$7, %esi
	movl	%ecx, %edx
	callq	_set_reg_field_value
	movl	(%r15), %edi
	movq	_mmGAMMA_CORR_LUT_WRITE_EN_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	movl	(%r15), %edi
	movq	_mmGAMMA_CORR_LUT_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%edx, %edx
	callq	_dm_write_reg
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	_mmGAMMA_CORR_LUT_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	8(%r14), %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dm_write_reg
	movl	(%r15), %edi
	movq	8(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dm_write_reg
	movl	(%r15), %edi
	movq	16(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dm_write_reg
	movl	(%r15), %edi
	movq	24(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dm_write_reg
	movl	(%r15), %edi
	movq	32(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dm_write_reg
	movl	(%r15), %edi
	movq	40(%rbx), %rdx
	movq	%r12, %rsi
	callq	_dm_write_reg
	incq	%r13
	addq	$48, %rbx
	cmpq	(%r14), %r13
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GAMMA_CORR_LUT_WRITE_EN_MASK,4,2 ## @GAMMA_CORR_LUT_WRITE_EN_MASK
	.comm	_mmGAMMA_CORR_LUT_WRITE_EN_MASK,8,3 ## @mmGAMMA_CORR_LUT_WRITE_EN_MASK
	.comm	_mmGAMMA_CORR_LUT_INDEX,8,3     ## @mmGAMMA_CORR_LUT_INDEX
	.comm	_mmGAMMA_CORR_LUT_DATA,8,3      ## @mmGAMMA_CORR_LUT_DATA
	.no_dead_strip	_program_pwl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_pwl
_program_pwl:                           ; @program_pwl
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GAMMA_CORR_LUT_WRITE_EN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GAMMA_CORR_LUT_WRITE_EN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, #0
	mov	w1, #7
	mov	x3, x2
	bl	_set_reg_field_value
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _mmGAMMA_CORR_LUT_WRITE_EN_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmGAMMA_CORR_LUT_WRITE_EN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	x2, #0
	bl	_dm_write_reg
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _mmGAMMA_CORR_LUT_INDEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mmGAMMA_CORR_LUT_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	mov	x2, #0
	bl	_dm_write_reg
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x22, #0
Lloh9:
	adrp	x8, _mmGAMMA_CORR_LUT_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mmGAMMA_CORR_LUT_DATA@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	ldr	x23, [x19, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	ldr	x2, [x23]
	mov	x1, x21
	bl	_dm_write_reg
	ldr	w0, [x20]
	ldr	x2, [x23, #8]
	mov	x1, x21
	bl	_dm_write_reg
	ldr	w0, [x20]
	ldr	x2, [x23, #16]
	mov	x1, x21
	bl	_dm_write_reg
	ldr	w0, [x20]
	ldr	x2, [x23, #24]
	mov	x1, x21
	bl	_dm_write_reg
	ldr	w0, [x20]
	ldr	x2, [x23, #32]
	mov	x1, x21
	bl	_dm_write_reg
	ldr	w0, [x20]
	ldr	x2, [x23, #40]
	mov	x1, x21
	bl	_dm_write_reg
	add	x22, x22, #1
	ldr	x8, [x19]
	add	x23, x23, #48
	cmp	x22, x8
	b.ne	LBB0_2
LBB0_3:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GAMMA_CORR_LUT_WRITE_EN_MASK,4,2 ; @GAMMA_CORR_LUT_WRITE_EN_MASK
	.comm	_mmGAMMA_CORR_LUT_WRITE_EN_MASK,8,3 ; @mmGAMMA_CORR_LUT_WRITE_EN_MASK
	.comm	_mmGAMMA_CORR_LUT_INDEX,8,3     ; @mmGAMMA_CORR_LUT_INDEX
	.comm	_mmGAMMA_CORR_LUT_DATA,8,3      ; @mmGAMMA_CORR_LUT_DATA
	.no_dead_strip	_program_pwl
.subsections_via_symbols
