	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6e3ha2_set_vint
_s6e3ha2_set_vint:                      ## @s6e3ha2_set_vint
	.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	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	_S6E3HA2_VINT_STATUS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	imull	(%rcx), %eax
	movw	$-29708, -19(%rbp)              ## imm = 0x8BF4
	movq	_vint_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_S6E3HA2_MAX_BRIGHTNESS@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	divl	(%rsi)
                                        ## kill: def $eax killed $eax def $rax
	movb	(%rcx,%rax,4), %al
	movb	%al, -17(%rbp)
	leaq	-19(%rbp), %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_s6e3ha2_dcs_write
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vint_table,8,3                 ## @vint_table
	.comm	_S6E3HA2_VINT_STATUS_MAX,4,2    ## @S6E3HA2_VINT_STATUS_MAX
	.comm	_S6E3HA2_MAX_BRIGHTNESS,4,2     ## @S6E3HA2_MAX_BRIGHTNESS
	.no_dead_strip	_s6e3ha2_set_vint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6e3ha2_set_vint
_s6e3ha2_set_vint:                      ; @s6e3ha2_set_vint
	.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	x19, x0
	ldr	x8, [x0]
	mov	w9, #35828
	sturh	w9, [sp, #13]
Lloh0:
	adrp	x9, _vint_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _vint_table@GOTPAGEOFF]
Lloh2:
	adrp	x10, _S6E3HA2_VINT_STATUS_MAX@GOTPAGE
Lloh3:
	ldr	x10, [x10, _S6E3HA2_VINT_STATUS_MAX@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh4:
	ldr	w10, [x10]
	sub	w10, w10, #1
	mul	w8, w10, w8
Lloh5:
	adrp	x10, _S6E3HA2_MAX_BRIGHTNESS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _S6E3HA2_MAX_BRIGHTNESS@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	w10, [x10]
	udiv	w8, w8, w10
	ldr	w8, [x9, w8, uxtw #2]
	strb	w8, [sp, #15]
	add	x0, sp, #13
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #13
	mov	x0, x19
	bl	_s6e3ha2_dcs_write
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_vint_table,8,3                 ; @vint_table
	.comm	_S6E3HA2_VINT_STATUS_MAX,4,2    ; @S6E3HA2_VINT_STATUS_MAX
	.comm	_S6E3HA2_MAX_BRIGHTNESS,4,2     ; @S6E3HA2_MAX_BRIGHTNESS
	.no_dead_strip	_s6e3ha2_set_vint
.subsections_via_symbols
