	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_lmu_common_update_brightness
_ti_lmu_common_update_brightness:       ## @ti_lmu_common_update_brightness
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	16(%rdi), %r15
	movq	_MAX_BRIGHTNESS_11BIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	8(%rbx), %esi
	movq	_LMU_11BIT_LSB_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_LMU_11BIT_MSB_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
LBB0_3:
	movl	12(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BRIGHTNESS_11BIT,8,3       ## @MAX_BRIGHTNESS_11BIT
	.comm	_LMU_11BIT_LSB_MASK,4,2         ## @LMU_11BIT_LSB_MASK
	.comm	_LMU_11BIT_MSB_SHIFT,4,2        ## @LMU_11BIT_MSB_SHIFT
	.no_dead_strip	_ti_lmu_common_update_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_lmu_common_update_brightness
_ti_lmu_common_update_brightness:       ; @ti_lmu_common_update_brightness
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX_BRIGHTNESS_11BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_BRIGHTNESS_11BIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w1, [x21, #8]
Lloh3:
	adrp	x8, _LMU_11BIT_LSB_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LMU_11BIT_LSB_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_regmap_update_bits
	cbz	w0, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, _LMU_11BIT_MSB_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LMU_11BIT_MSB_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	asr	w19, w19, w8
LBB0_4:
	ldr	w1, [x21, #12]
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_regmap_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BRIGHTNESS_11BIT,8,3       ; @MAX_BRIGHTNESS_11BIT
	.comm	_LMU_11BIT_LSB_MASK,4,2         ; @LMU_11BIT_LSB_MASK
	.comm	_LMU_11BIT_MSB_SHIFT,4,2        ; @LMU_11BIT_MSB_SHIFT
	.no_dead_strip	_ti_lmu_common_update_brightness
.subsections_via_symbols
