	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6e8aa0_brightness_set
_s6e8aa0_brightness_set:                ## @s6e8aa0_brightness_set
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movq	(%rax,%rcx,8), %r14
	cmpl	$142, 8(%rdi)
	jl	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_s6e8aa0_elvss_nvm_set
LBB0_3:
	movq	_GAMMA_TABLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_s6e8aa0_dcs_write
	movq	%rbx, %rdi
	movl	$247, %esi
	movl	$3, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s6e8aa0_dcs_write_seq_static   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GAMMA_TABLE_LEN,4,2            ## @GAMMA_TABLE_LEN
	.no_dead_strip	_s6e8aa0_brightness_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6e8aa0_brightness_set
_s6e8aa0_brightness_set:                ; @s6e8aa0_brightness_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	x20, [x8, x9, lsl #3]
	ldr	w8, [x0, #8]
	cmp	w8, #142
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_s6e8aa0_elvss_nvm_set
LBB0_4:
Lloh0:
	adrp	x8, _GAMMA_TABLE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GAMMA_TABLE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_s6e8aa0_dcs_write
	mov	x0, x19
	mov	w1, #247
	mov	w2, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s6e8aa0_dcs_write_seq_static
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GAMMA_TABLE_LEN,4,2            ; @GAMMA_TABLE_LEN
	.no_dead_strip	_s6e8aa0_brightness_set
.subsections_via_symbols
