	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3601x_parse_node
_lm3601x_parse_node:                    ## @lm3601x_parse_node
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rdi), %rdi
	xorl	%esi, %esi
	callq	_device_get_next_child_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	20(%r15), %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_fwnode_property_read_u32
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_14
LBB0_1:
	negl	%r13d
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_15
LBB0_4:
	movl	(%rbx), %eax
	movq	_LM3601X_LED_TORCH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_6
## %bb.5:
	movq	_LM3601X_LED_IR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_6
## %bb.7:
	leaq	16(%r15), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_fwnode_property_read_u32
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	movq	(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_14
LBB0_6:
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_14:
	movq	%r14, %rdi
	callq	_fwnode_handle_put
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	12(%r15), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_fwnode_property_read_u32
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r13d
	movq	(%r15), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_14
LBB0_11:
	leaq	8(%r15), %rdx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_fwnode_property_read_u32
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r13d
	movq	(%r15), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_14
LBB0_13:
	movq	%r14, (%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No LED Child node\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"reg DT property missing\n"

	.comm	_LM3601X_LED_TORCH,4,2          ## @LM3601X_LED_TORCH
	.comm	_LM3601X_LED_IR,4,2             ## @LM3601X_LED_IR
L_.str.3:                               ## @.str.3
	.asciz	"Invalid led mode requested\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"led-max-microamp DT property missing\n"

L_.str.6:                               ## @.str.6
	.asciz	"flash-max-microamp"

L_.str.7:                               ## @.str.7
	.asciz	"flash-max-microamp DT property missing\n"

L_.str.8:                               ## @.str.8
	.asciz	"flash-max-timeout-us"

L_.str.9:                               ## @.str.9
	.asciz	"flash-max-timeout-us DT property missing\n"

	.no_dead_strip	_lm3601x_parse_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3601x_parse_node
_lm3601x_parse_node:                    ; @lm3601x_parse_node
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	x0, [x0]
	mov	x1, #0
	bl	_device_get_next_child_node
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x23, x20, #20
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_fwnode_property_read_u32
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	x0, [x20]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_13
LBB0_3:
	neg	w21, w21
	ldr	x0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_4:
	ldr	w8, [x23]
Lloh9:
	adrp	x9, _LM3601X_LED_TORCH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LM3601X_LED_TORCH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _LM3601X_LED_IR@GOTPAGE
Lloh13:
	ldr	x10, [x10, _LM3601X_LED_IR@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #8, le
	b.ge	LBB0_6
; %bb.5:
	ldr	x0, [x20]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_6:
	add	x2, x20, #16
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_fwnode_property_read_u32
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	ldr	x0, [x20]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_warn
	b	LBB0_13
LBB0_8:
	add	x2, x20, #12
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_fwnode_property_read_u32
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
	ldr	x0, [x20]
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_warn
	b	LBB0_13
LBB0_10:
	add	x2, x20, #8
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_fwnode_property_read_u32
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x0, [x20]
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_warn
	b	LBB0_13
LBB0_12:
	str	x19, [x22]
LBB0_13:
	mov	x0, x19
	bl	_fwnode_handle_put
LBB0_14:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No LED Child node\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"reg DT property missing\n"

	.comm	_LM3601X_LED_TORCH,4,2          ; @LM3601X_LED_TORCH
	.comm	_LM3601X_LED_IR,4,2             ; @LM3601X_LED_IR
l_.str.3:                               ; @.str.3
	.asciz	"Invalid led mode requested\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"led-max-microamp DT property missing\n"

l_.str.6:                               ; @.str.6
	.asciz	"flash-max-microamp"

l_.str.7:                               ; @.str.7
	.asciz	"flash-max-microamp DT property missing\n"

l_.str.8:                               ; @.str.8
	.asciz	"flash-max-timeout-us"

l_.str.9:                               ; @.str.9
	.asciz	"flash-max-timeout-us DT property missing\n"

	.no_dead_strip	_lm3601x_parse_node
.subsections_via_symbols
