	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is31fl32xx_parse_child_dt
_is31fl32xx_parse_child_dt:             ## @is31fl32xx_parse_child_dt
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	24(%rdx), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_string
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %eax
	movl	%eax, (%rbx)
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	-36(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_6:
	movl	%eax, (%r14)
	leaq	20(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_string
	movq	_is31fl32xx_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"label"

L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"Child node %pOF does not have a valid reg property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"linux,default-trigger"

	.comm	_is31fl32xx_brightness_set,4,2  ## @is31fl32xx_brightness_set
	.no_dead_strip	_is31fl32xx_parse_child_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is31fl32xx_parse_child_dt
_is31fl32xx_parse_child_dt:             ; @is31fl32xx_parse_child_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
	add	x22, x2, #24
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_of_property_read_string
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	str	w8, [x22]
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_6
LBB0_5:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	str	w8, [x19]
	add	x2, x19, #20
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_string
	mov	w0, #0
Lloh11:
	adrp	x8, _is31fl32xx_brightness_set@GOTPAGE
Lloh12:
	ldr	x8, [x8, _is31fl32xx_brightness_set@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"label"

l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"Child node %pOF does not have a valid reg property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"linux,default-trigger"

	.comm	_is31fl32xx_brightness_set,4,2  ; @is31fl32xx_brightness_set
	.no_dead_strip	_is31fl32xx_parse_child_dt
.subsections_via_symbols
