	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is31fl319x_parse_child_dt
_is31fl319x_parse_child_dt:             ## @is31fl319x_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	leaq	12(%rdx), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_string
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	movl	%eax, (%rbx)
LBB0_2:
	leaq	8(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_8
LBB0_4:
	movq	_IS31FL319X_CURRENT_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	(%r14), %rdi
	movq	_IS31FL319X_CURRENT_MIN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_IS31FL319X_CURRENT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	%rax, (%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"linux,default-trigger"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IS31FL319X_CURRENT_DEFAULT,8,3 ## @IS31FL319X_CURRENT_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"led-max-microamp"

	.comm	_IS31FL319X_CURRENT_MIN,8,3     ## @IS31FL319X_CURRENT_MIN
	.comm	_IS31FL319X_CURRENT_MAX,4,2     ## @IS31FL319X_CURRENT_MAX
	.no_dead_strip	_is31fl319x_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 is31fl319x_parse_child_dt
_is31fl319x_parse_child_dt:             ; @is31fl319x_parse_child_dt
	.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, x2
	mov	x20, x1
	add	x21, x2, #12
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_of_property_read_string
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	str	w8, [x21]
LBB0_2:
	add	x2, x19, #8
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_string
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
LBB0_4:
Lloh7:
	adrp	x8, _IS31FL319X_CURRENT_DEFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IS31FL319X_CURRENT_DEFAULT@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_of_property_read_u32
	cbz	w0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19]
Lloh12:
	adrp	x8, _IS31FL319X_CURRENT_MIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IS31FL319X_CURRENT_MIN@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _IS31FL319X_CURRENT_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IS31FL319X_CURRENT_MAX@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_min
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_9:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"label"

l_.str.1:                               ; @.str.1
	.asciz	"linux,default-trigger"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IS31FL319X_CURRENT_DEFAULT,8,3 ; @IS31FL319X_CURRENT_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"led-max-microamp"

	.comm	_IS31FL319X_CURRENT_MIN,8,3     ; @IS31FL319X_CURRENT_MIN
	.comm	_IS31FL319X_CURRENT_MAX,4,2     ; @IS31FL319X_CURRENT_MAX
	.no_dead_strip	_is31fl319x_parse_child_dt
.subsections_via_symbols
