	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp2_set_degamma_pwl           ## -- Begin function dpp2_set_degamma_pwl
	.p2align	4, 0x90
_dpp2_set_degamma_pwl:                  ## @dpp2_set_degamma_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, -20(%rbp)
	movl	$1, %esi
	callq	_dpp1_power_on_degamma_lut
	movq	%rbx, %rdi
	callq	_dpp2_enable_cm_block
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_dpp2_degamma_ram_inuse
	cmpl	$1, -20(%rbp)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dpp1_program_degamma_lutb_settings
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_dpp1_program_degamma_luta_settings
LBB0_3:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	xorl	%ecx, %ecx
	cmpl	$0, -20(%rbp)
	sete	%cl
	movq	%rbx, %rdi
	callq	_dpp2_program_degamma_lut
	xorl	%esi, %esi
	cmpl	$0, -20(%rbp)
	sete	%sil
	movq	%rbx, %rdi
	callq	_dpp1_degamma_ram_select
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpp2_set_degamma_pwl           ; -- Begin function dpp2_set_degamma_pwl
	.p2align	2
_dpp2_set_degamma_pwl:                  ; @dpp2_set_degamma_pwl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	w8, #1
	str	w8, [sp, #12]
	mov	w1, #1
	bl	_dpp1_power_on_degamma_lut
	mov	x0, x19
	bl	_dpp2_enable_cm_block
	add	x1, sp, #12
	mov	x0, x19
	bl	_dpp2_degamma_ram_inuse
	ldr	w8, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_dpp1_program_degamma_lutb_settings
	b	LBB0_3
LBB0_2:
	bl	_dpp1_program_degamma_luta_settings
LBB0_3:
	ldp	w2, w1, [x20]
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w3, eq
	mov	x0, x19
	bl	_dpp2_program_degamma_lut
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_dpp1_degamma_ram_select
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
