	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_backlight_init_curve
_pmu_backlight_init_curve:              ## @pmu_backlight_init_curve
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r8
	movq	_bl_curve@GOTPCREL(%rip), %r9
	movq	(%r9), %rax
	movq	%rdi, (%rax)
	movq	_FB_BACKLIGHT_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r10d
	cmpl	$32, %eax
	jl	LBB0_7
## %bb.1:
	movq	%rax, %r10
	shrq	$4, %r10
	leaq	-1(%r10), %rdi
	leaq	-2(%r10), %rbx
	movl	%edi, %ecx
	andl	$3, %ecx
	movl	$1, %edx
	cmpq	$3, %rbx
	jb	LBB0_5
## %bb.2:
	andq	$-4, %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rbx
	movq	%rsi, 8(%rbx,%rdx,8)
	movq	(%r9), %rbx
	movq	%rsi, 16(%rbx,%rdx,8)
	movq	(%r9), %rbx
	movq	%rsi, 24(%rbx,%rdx,8)
	movq	(%r9), %rbx
	movq	%rsi, 32(%rbx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rdi
	jne	LBB0_3
## %bb.4:
	incq	%rdx
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9), %rdi
	movq	%rsi, (%rdi,%rdx,8)
	incq	%rdx
	decq	%rcx
	jne	LBB0_6
LBB0_7:
	leal	(%rax,%rax,4), %ecx
	leal	(%rcx,%rcx,2), %eax
	leal	(%rcx,%rcx,2), %r11d
	addl	$15, %r11d
	testl	%eax, %eax
	cmovnsl	%eax, %r11d
	cmpl	$16, %eax
	jl	LBB0_15
## %bb.8:
	movl	%r8d, %r15d
	subl	%esi, %r15d
	sarl	$4, %r11d
	movl	%r11d, %r14d
	andl	$-16, %eax
	cmpl	$16, %eax
	jne	LBB0_10
## %bb.9:
	xorl	%r13d, %r13d
	testb	$1, %r14b
	jne	LBB0_14
	jmp	LBB0_15
LBB0_10:
	addl	%r8d, %r8d
	subl	%esi, %r8d
	subl	%esi, %r8d
	movl	%r14d, %r12d
	andl	$-2, %r12d
	negq	%r12
	xorl	%r13d, %r13d
	movl	%r8d, %edi
	movq	%r10, %rbx
	movl	%r15d, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%r11d
	cltq
	addq	%rsi, %rax
	movq	(%r9), %rdx
	movq	%rax, (%rdx,%rbx,8)
	movl	%edi, %eax
	cltd
	idivl	%r11d
	cltq
	addq	%rsi, %rax
	movq	(%r9), %rdx
	movq	%rax, 8(%rdx,%rbx,8)
	addl	%r8d, %ecx
	addq	$2, %rbx
	addq	$-2, %r13
	addl	%r8d, %edi
	cmpq	%r13, %r12
	jne	LBB0_11
## %bb.12:
	negq	%r13
	testb	$1, %r14b
	je	LBB0_15
LBB0_14:
	leal	1(%r13), %eax
	imull	%r15d, %eax
	cltd
	idivl	%r11d
	cltq
	addq	%rax, %rsi
	movq	(%r9), %rax
	addq	%r13, %r10
	movq	%rsi, (%rax,%r10,8)
LBB0_15:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bl_curve,8,3                   ## @bl_curve
	.comm	_FB_BACKLIGHT_LEVELS,4,2        ## @FB_BACKLIGHT_LEVELS
	.no_dead_strip	_pmu_backlight_init_curve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_backlight_init_curve
_pmu_backlight_init_curve:              ; @pmu_backlight_init_curve
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _bl_curve@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bl_curve@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x0, [x9]
Lloh2:
	adrp	x9, _FB_BACKLIGHT_LEVELS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FB_BACKLIGHT_LEVELS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x9]
	cmp	w10, #32
	b.lt	LBB0_3
; %bb.1:
	lsr	x9, x10, #4
	lsl	x11, x9, #3
	mov	w12, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x8]
	str	x1, [x13, x12]
	add	x12, x12, #8
	cmp	x11, x12
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w9, #1
LBB0_4:
	lsl	w11, w10, #4
	sub	w10, w11, w10
	add	w11, w10, #15
	cmp	w10, #0
	csel	w11, w11, w10, lt
	cmp	w10, #16
	b.lt	LBB0_7
; %bb.5:
	mov	x12, #0
	sub	w10, w2, w1
	asr	w11, w11, #4
	lsl	x9, x9, #3
	mov	x13, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w14, w13, w11
	add	x14, x1, w14, sxtw
	ldr	x15, [x8]
	add	x15, x15, x9
	str	x14, [x15, x12, lsl #3]
	add	x14, x12, #1
	add	w13, w13, w10
	mov	x12, x14
	cmp	x11, x14
	b.ne	LBB0_6
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bl_curve,8,3                   ; @bl_curve
	.comm	_FB_BACKLIGHT_LEVELS,4,2        ; @FB_BACKLIGHT_LEVELS
	.no_dead_strip	_pmu_backlight_init_curve
.subsections_via_symbols
