	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ti_lmu_common_get_brt_res      ## -- Begin function ti_lmu_common_get_brt_res
	.p2align	4, 0x90
_ti_lmu_common_get_brt_res:             ## @ti_lmu_common_get_brt_res
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_fwnode_property_read_u32
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	(%rbx), %rdx
	testq	%rdx, %rdx
	jle	LBB0_4
## %bb.5:
	movq	_MAX_BRIGHTNESS_11BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rdx
	jg	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movq	_MAX_BRIGHTNESS_8BIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_6:
	movq	%rcx, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,brightness-resolution"

	.comm	_MAX_BRIGHTNESS_8BIT,8,3        ## @MAX_BRIGHTNESS_8BIT
	.comm	_MAX_BRIGHTNESS_11BIT,8,3       ## @MAX_BRIGHTNESS_11BIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ti_lmu_common_get_brt_res      ; -- Begin function ti_lmu_common_get_brt_res
	.p2align	2
_ti_lmu_common_get_brt_res:             ; @ti_lmu_common_get_brt_res
	.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
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_property_read_u32
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_fwnode_property_read_u32
LBB0_2:
	ldr	x9, [x19]
	cmp	x9, #0
	b.le	LBB0_4
; %bb.3:
	mov	w0, #0
	mov	w1, #0
Lloh4:
	adrp	x8, _MAX_BRIGHTNESS_11BIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAX_BRIGHTNESS_11BIT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x9, x8
	b.gt	LBB0_5
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x8, _MAX_BRIGHTNESS_8BIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_BRIGHTNESS_8BIT@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
LBB0_5:
	str	x8, [x19]
	mov	x1, x0
LBB0_6:
	mov	x0, x1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,brightness-resolution"

	.comm	_MAX_BRIGHTNESS_8BIT,8,3        ; @MAX_BRIGHTNESS_8BIT
	.comm	_MAX_BRIGHTNESS_11BIT,8,3       ; @MAX_BRIGHTNESS_11BIT
.subsections_via_symbols
