	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_of_get_resolution
_at91_adc_of_get_resolution:            ## @at91_adc_of_get_resolution
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_iio_priv_to_dev
	movq	%rax, %r15
	movq	(%rbx), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_count_strings
	movl	%eax, %r13d
	cmpl	$1, %eax
	jg	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	movl	%r13d, %ecx
	callq	_of_property_read_u32_array
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_15
LBB0_6:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_string
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -48(%rbp)
LBB0_8:
	movl	%r13d, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r13
	leaq	-80(%rbp), %r15
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	cmpl	%ebx, %r12d
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_of_property_read_string_index
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-48(%rbp), %rdi
	movq	-80(%rbp), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rbx,4), %eax
	movq	%rcx, %rbx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 4(%r14)
	movq	-48(%rbp), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, (%r14)
	movl	4(%r14), %edx
	leaq	L_.str.7(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_13:
	movq	-48(%rbp), %rdx
	leaq	L_.str.8(%rip), %rsi
	xorl	%r13d, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_14:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_15:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel,adc-res-names"

L_.str.1:                               ## @.str.1
	.asciz	"You must specified at least two resolution names for adc-res-names property in the DT\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"atmel,adc-res"

L_.str.3:                               ## @.str.3
	.asciz	"Missing adc-res property in the DT.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"atmel,adc-use-res"

L_.str.5:                               ## @.str.5
	.asciz	"highres"

L_.str.6:                               ## @.str.6
	.asciz	"lowres"

L_.str.7:                               ## @.str.7
	.asciz	"Resolution used: %u bits\n"

L_.str.8:                               ## @.str.8
	.asciz	"There is no resolution for %s\n"

	.no_dead_strip	_at91_adc_of_get_resolution
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_of_get_resolution
_at91_adc_of_get_resolution:            ; @at91_adc_of_get_resolution
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	bl	_iio_priv_to_dev
	mov	x20, x0
	ldr	x22, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_property_count_strings
	mov	x23, x0
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_16
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	mov	x3, x23
	bl	_of_property_read_u32_array
	cbz	x0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_6:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #24
	mov	x0, x22
	bl	_of_property_read_string
	cbz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, l_.str.5@PAGE
Lloh20:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp, #24]
LBB0_8:
	mov	x24, #0
	mov	w25, w23
Lloh21:
	adrp	x23, l_.str@PAGE
Lloh22:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	cmp	w25, w24
	b.eq	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #16
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_of_property_read_string_index
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	x1, x0, [sp, #16]
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.12:
	ldr	w8, [x19, x24, lsl #2]
	str	w8, [x21, #4]
	ldr	x0, [sp, #24]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w8, eq
	str	w8, [x21]
	ldr	w2, [x21, #4]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_14
LBB0_13:
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_14:
	mov	w23, #0
LBB0_15:
	mov	x0, x19
	bl	_kfree
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel,adc-res-names"

l_.str.1:                               ; @.str.1
	.asciz	"You must specified at least two resolution names for adc-res-names property in the DT\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"atmel,adc-res"

l_.str.3:                               ; @.str.3
	.asciz	"Missing adc-res property in the DT.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"atmel,adc-use-res"

l_.str.5:                               ; @.str.5
	.asciz	"highres"

l_.str.6:                               ; @.str.6
	.asciz	"lowres"

l_.str.7:                               ; @.str.7
	.asciz	"Resolution used: %u bits\n"

l_.str.8:                               ; @.str.8
	.asciz	"There is no resolution for %s\n"

	.no_dead_strip	_at91_adc_of_get_resolution
.subsections_via_symbols
