	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ktd2692_parse_dt
_ktd2692_parse_dt:                      ## @ktd2692_parse_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	%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), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_GPIOD_ASIS@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_5:
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_PTR_ERR_OR_ZERO
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, 8(%r15)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_of_get_next_available_child
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r13
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movl	(%r13), %eax
LBB0_16:
	movl	%eax, (%r15)
	leaq	8(%r14), %rdx
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_22
LBB0_9:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_12
## %bb.10:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_18:
	leaq	4(%r14), %rdx
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_25
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.13(%rip), %rsi
LBB0_22:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_23:
	movq	%r13, %rdi
	callq	_of_node_put
	jmp	LBB0_24
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctrl"

	.comm	_GPIOD_ASIS,4,2                 ## @GPIOD_ASIS
L_.str.1:                               ## @.str.1
	.asciz	"cannot get ctrl-gpios %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"aux"

L_.str.3:                               ## @.str.3
	.asciz	"cannot get aux-gpios %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"vin"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to enable supply: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"No DT child node found for connected LED.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.7:                               ## @.str.7
	.asciz	"label"

L_.str.8:                               ## @.str.8
	.asciz	"led-max-microamp"

L_.str.9:                               ## @.str.9
	.asciz	"failed to parse led-max-microamp\n"

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

L_.str.11:                              ## @.str.11
	.asciz	"failed to parse flash-max-microamp\n"

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

L_.str.13:                              ## @.str.13
	.asciz	"failed to parse flash-max-timeout-us\n"

	.no_dead_strip	_ktd2692_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ktd2692_parse_dt
_ktd2692_parse_dt:                      ; @ktd2692_parse_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x1]
	cbz	x22, LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _GPIOD_ASIS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GPIOD_ASIS@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x21, #24]
	bl	_PTR_ERR_OR_ZERO
	cbz	w0, LBB0_5
; %bb.2:
	mov	x23, x0
	str	x23, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_24
LBB0_3:
Lloh6:
	adrp	x8, _ENXIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_24
LBB0_5:
	ldr	w2, [x24]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x21, #16]
	bl	_PTR_ERR_OR_ZERO
	cbz	w0, LBB0_7
; %bb.6:
	mov	x23, x0
	str	x23, [sp]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_24
LBB0_7:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.8:
	str	xzr, [x21, #8]
LBB0_9:
	mov	x0, x22
	mov	x1, #0
	bl	_of_get_next_available_child
	cbz	x0, LBB0_17
; %bb.10:
	mov	x22, x0
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, #0
	bl	_of_get_property
	cbnz	x0, LBB0_12
; %bb.11:
	ldr	w0, [x22]
LBB0_12:
	str	w0, [x21]
	add	x2, x20, #8
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_18
; %bb.13:
	mov	x23, x0
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_22
LBB0_14:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_9
; %bb.15:
	bl	_regulator_enable
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.16:
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_17:
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_18:
	add	x2, x20, #4
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	w0, LBB0_20
; %bb.19:
	mov	x23, x0
Lloh28:
	adrp	x1, l_.str.11@PAGE
Lloh29:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_22
LBB0_20:
Lloh30:
	adrp	x1, l_.str.12@PAGE
Lloh31:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	bl	_of_property_read_u32
	mov	x23, x0
	cbz	w0, LBB0_23
; %bb.21:
Lloh32:
	adrp	x1, l_.str.13@PAGE
Lloh33:
	add	x1, x1, l_.str.13@PAGEOFF
LBB0_22:
	mov	x0, x19
	bl	_dev_err
LBB0_23:
	mov	x0, x22
	bl	_of_node_put
LBB0_24:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctrl"

	.comm	_GPIOD_ASIS,4,2                 ; @GPIOD_ASIS
l_.str.1:                               ; @.str.1
	.asciz	"cannot get ctrl-gpios %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"aux"

l_.str.3:                               ; @.str.3
	.asciz	"cannot get aux-gpios %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"vin"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to enable supply: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"No DT child node found for connected LED.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.7:                               ; @.str.7
	.asciz	"label"

l_.str.8:                               ; @.str.8
	.asciz	"led-max-microamp"

l_.str.9:                               ; @.str.9
	.asciz	"failed to parse led-max-microamp\n"

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

l_.str.11:                              ; @.str.11
	.asciz	"failed to parse flash-max-microamp\n"

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

l_.str.13:                              ; @.str.13
	.asciz	"failed to parse flash-max-timeout-us\n"

	.no_dead_strip	_ktd2692_parse_dt
.subsections_via_symbols
