	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5758_parse_dt
_ad5758_parse_dt:                       ## @ad5758_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$0, (%rdi)
	movq	16(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	callq	_dev_dbg
	jmp	LBB0_6
LBB0_2:
	movq	_ad5758_dc_dc_ilim@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	_cmpfunc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	$4, %ecx
	callq	_bsearch
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	subq	(%r15), %rax
	shrq	$2, %rax
	movl	%eax, (%r14)
LBB0_6:
	movq	16(%r14), %rdi
	leaq	4(%r14), %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
LBB0_8:
	callq	_dev_err
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_26
## %bb.10:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%rbx), %edi
	callq	_ad5758_is_valid_mode
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movl	4(%r14), %eax
	movq	_AD5758_DCDC_MODE_DPC_VOLTAGE@GOTPCREL(%rip), %rcx
	movq	16(%r14), %rdi
	cmpq	%rax, (%rcx)
	jne	LBB0_16
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movl	$2, %ecx
	callq	_device_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movq	16(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_16:
	leaq	L_.str.7(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movl	$2, %ecx
	callq	_device_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_19
## %bb.17:
	movl	%eax, %r15d
	movq	16(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_8
LBB0_18:
	movq	_ad5758_voltage_range@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_ad5758_current_range@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_ad5758_find_out_range
	movq	16(%r14), %rdi
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r15d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_8
LBB0_22:
	leaq	L_.str.10(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_device_property_read_u32
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movq	16(%r14), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_dev_dbg
	movl	$0, 8(%r14)
	jmp	LBB0_25
LBB0_24:
	movl	-44(%rbp), %eax
	movl	%eax, 8(%r14)
LBB0_25:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adi,dc-dc-ilim-microamp"

L_.str.1:                               ## @.str.1
	.asciz	"Missing \"dc-dc-ilim-microamp\" property\n"

	.comm	_ad5758_dc_dc_ilim,8,3          ## @ad5758_dc_dc_ilim
	.comm	_cmpfunc,4,2                    ## @cmpfunc
L_.str.2:                               ## @.str.2
	.asciz	"dc-dc-ilim out of range\n"

L_.str.3:                               ## @.str.3
	.asciz	"adi,dc-dc-mode"

L_.str.4:                               ## @.str.4
	.asciz	"Missing \"dc-dc-mode\" property\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD5758_DCDC_MODE_DPC_VOLTAGE,8,3 ## @AD5758_DCDC_MODE_DPC_VOLTAGE
L_.str.5:                               ## @.str.5
	.asciz	"adi,range-microvolt"

L_.str.6:                               ## @.str.6
	.asciz	"Missing \"range-microvolt\" property\n"

	.comm	_ad5758_voltage_range,8,3       ## @ad5758_voltage_range
L_.str.7:                               ## @.str.7
	.asciz	"adi,range-microamp"

L_.str.8:                               ## @.str.8
	.asciz	"Missing \"range-microamp\" property\n"

	.comm	_ad5758_current_range,8,3       ## @ad5758_current_range
L_.str.9:                               ## @.str.9
	.asciz	"range invalid\n"

L_.str.10:                              ## @.str.10
	.asciz	"adi,slew-time-us"

L_.str.11:                              ## @.str.11
	.asciz	"Missing \"slew-time-us\" property\n"

	.no_dead_strip	_ad5758_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5758_parse_dt
_ad5758_parse_dt:                       ; @ad5758_parse_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	str	wzr, [x0]
	ldr	x0, [x0, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_device_property_read_u32
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_2:
	bl	_dev_dbg
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x21, _ad5758_dc_dc_ilim@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ad5758_dc_dc_ilim@GOTPAGEOFF]
	ldr	x20, [x21]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
Lloh9:
	adrp	x8, _cmpfunc@GOTPAGE
Lloh10:
	ldr	x8, [x8, _cmpfunc@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	add	x0, sp, #12
	mov	x1, x20
	mov	w3, #4
	bl	_bsearch
	cbz	x0, LBB0_14
; %bb.4:
	ldr	x8, [x21]
	sub	x8, x0, x8
	lsr	x8, x8, #2
	str	w8, [x19]
LBB0_5:
	ldr	x0, [x19, #16]
	add	x21, x19, #4
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_device_property_read_u32
	cbz	w0, LBB0_10
; %bb.6:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_7:
	bl	_dev_err
LBB0_8:
	ldr	x8, [sp, #24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.9:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	w0, [x21]
	bl	_ad5758_is_valid_mode
	cbz	w0, LBB0_15
; %bb.11:
	ldr	w8, [x19, #4]
Lloh19:
	adrp	x9, _AD5758_DCDC_MODE_DPC_VOLTAGE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AD5758_DCDC_MODE_DPC_VOLTAGE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	x0, [x19, #16]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.12:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #16
	mov	w3, #2
	bl	_device_property_read_u32_array
	cbz	w0, LBB0_18
; %bb.13:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_7
LBB0_14:
	ldr	x0, [x19, #16]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_15:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_16:
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #16
	mov	w3, #2
	bl	_device_property_read_u32_array
	cbz	w0, LBB0_19
; %bb.17:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_7
LBB0_18:
Lloh35:
	adrp	x8, _ad5758_voltage_range@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ad5758_voltage_range@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh37:
	adrp	x8, _ad5758_current_range@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ad5758_current_range@GOTPAGEOFF]
LBB0_20:
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	ldp	w3, w4, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_ad5758_find_out_range
	mov	x20, x0
	ldr	x0, [x19, #16]
	cbz	w20, LBB0_22
; %bb.21:
Lloh39:
	adrp	x1, l_.str.9@PAGE
Lloh40:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_7
LBB0_22:
Lloh41:
	adrp	x1, l_.str.10@PAGE
Lloh42:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #12
	bl	_device_property_read_u32
	cbz	w0, LBB0_24
; %bb.23:
	ldr	x0, [x19, #16]
Lloh43:
	adrp	x1, l_.str.11@PAGE
Lloh44:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_dbg
	mov	w20, #0
	str	wzr, [x19, #8]
	b	LBB0_8
LBB0_24:
	mov	w20, #0
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	b	LBB0_8
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adi,dc-dc-ilim-microamp"

l_.str.1:                               ; @.str.1
	.asciz	"Missing \"dc-dc-ilim-microamp\" property\n"

	.comm	_ad5758_dc_dc_ilim,8,3          ; @ad5758_dc_dc_ilim
	.comm	_cmpfunc,4,2                    ; @cmpfunc
l_.str.2:                               ; @.str.2
	.asciz	"dc-dc-ilim out of range\n"

l_.str.3:                               ; @.str.3
	.asciz	"adi,dc-dc-mode"

l_.str.4:                               ; @.str.4
	.asciz	"Missing \"dc-dc-mode\" property\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD5758_DCDC_MODE_DPC_VOLTAGE,8,3 ; @AD5758_DCDC_MODE_DPC_VOLTAGE
l_.str.5:                               ; @.str.5
	.asciz	"adi,range-microvolt"

l_.str.6:                               ; @.str.6
	.asciz	"Missing \"range-microvolt\" property\n"

	.comm	_ad5758_voltage_range,8,3       ; @ad5758_voltage_range
l_.str.7:                               ; @.str.7
	.asciz	"adi,range-microamp"

l_.str.8:                               ; @.str.8
	.asciz	"Missing \"range-microamp\" property\n"

	.comm	_ad5758_current_range,8,3       ; @ad5758_current_range
l_.str.9:                               ; @.str.9
	.asciz	"range invalid\n"

l_.str.10:                              ; @.str.10
	.asciz	"adi,slew-time-us"

l_.str.11:                              ; @.str.11
	.asciz	"Missing \"slew-time-us\" property\n"

	.no_dead_strip	_ad5758_parse_dt
.subsections_via_symbols
