	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5360_probe
_ad5360_probe:                          ## @ad5360_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_spi_get_device_id
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	_ad5360_chip_info_tbl@GOTPCREL(%rip), %rax
	shlq	$3, %rbx
	addq	(%rax), %rbx
	movq	%rbx, 8(%r15)
	movq	%r14, 16(%r15)
	movq	%r14, 32(%r12)
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movl	4(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_ad5360_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	8(%r15), %rax
	movl	4(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	callq	_ad5360_alloc_channels
	testl	%eax, %eax
	je	LBB0_3
## %bb.29:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_28
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_28
LBB0_3:
	movq	8(%r15), %rax
	movl	(%rax), %esi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	_ad5360_vref_name@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rdx
	xorl	%ecx, %ecx
	cmpl	$8, %esi
	jb	LBB0_15
## %bb.6:
	movq	%rdx, %rdi
	subq	%rax, %rdi
	cmpq	$32, %rdi
	jb	LBB0_15
## %bb.7:
	movl	%esi, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rbx
	movq	%rbx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r8d
	andl	$3, %r8d
	cmpq	$24, %rbx
	jae	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movq	(%r15), %rdx
	jmp	LBB0_19
LBB0_9:
	andq	$-4, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rbx,4), %xmm0
	movups	16(%rax,%rbx,4), %xmm1
	movups	%xmm0, (%rdx,%rbx,4)
	movups	%xmm1, 16(%rdx,%rbx,4)
	movups	32(%rax,%rbx,4), %xmm0
	movups	48(%rax,%rbx,4), %xmm1
	movups	%xmm0, 32(%rdx,%rbx,4)
	movups	%xmm1, 48(%rdx,%rbx,4)
	movups	64(%rax,%rbx,4), %xmm0
	movups	80(%rax,%rbx,4), %xmm1
	movups	%xmm0, 64(%rdx,%rbx,4)
	movups	%xmm1, 80(%rdx,%rbx,4)
	movups	96(%rax,%rbx,4), %xmm0
	movups	112(%rax,%rbx,4), %xmm1
	movups	%xmm0, 96(%rdx,%rbx,4)
	movups	%xmm1, 112(%rdx,%rbx,4)
	addq	$32, %rbx
	addq	$-4, %rdi
	jne	LBB0_10
LBB0_11:
	testq	%r8, %r8
	je	LBB0_14
## %bb.12:
	leaq	(%rdx,%rbx,4), %r9
	addq	$16, %r9
	leaq	(%rax,%rbx,4), %rbx
	addq	$16, %rbx
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rbx,%rdi), %xmm0
	movups	(%rbx,%rdi), %xmm1
	movups	%xmm0, -16(%r9,%rdi)
	movups	%xmm1, (%r9,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_13
LBB0_14:
	cmpq	%rsi, %rcx
	je	LBB0_19
LBB0_15:
	movq	%rcx, %r8
	notq	%r8
	addq	%rsi, %r8
	movq	%rsi, %rbx
	andq	$3, %rbx
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edi
	movl	%edi, (%rdx,%rcx,4)
	incq	%rcx
	decq	%rbx
	jne	LBB0_16
LBB0_17:
	cmpq	$3, %r8
	jb	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx,4), %edi
	movl	%edi, (%rdx,%rcx,4)
	movl	4(%rax,%rcx,4), %edi
	movl	%edi, 4(%rdx,%rcx,4)
	movl	8(%rax,%rcx,4), %edi
	movl	%edi, 8(%rdx,%rcx,4)
	movl	12(%rax,%rcx,4), %edi
	movl	%edi, 12(%rdx,%rcx,4)
	addq	$4, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_18
LBB0_19:
	movq	16(%r15), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_21
LBB0_22:
	movq	(%r15), %rsi
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_21:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_27:
	movl	(%r12), %edi
	callq	_kfree
LBB0_28:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%r12, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_25
## %bb.26:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r15), %rsi
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_regulator_bulk_disable
	jmp	LBB0_27
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad5360_chip_info_tbl,8,3       ## @ad5360_chip_info_tbl
	.comm	_ad5360_info,4,2                ## @ad5360_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate channel spec: %d\n"

	.comm	_ad5360_vref_name,8,3           ## @ad5360_vref_name
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request vref regulators: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to enable vref regulators: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_ad5360_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5360_probe
_ad5360_probe:                          ; @ad5360_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	bl	_spi_get_device_id
	ldr	w22, [x0]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_spi_set_drvdata
Lloh0:
	adrp	x8, _ad5360_chip_info_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad5360_chip_info_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, x22, lsl #3
	stp	x8, x20, [x21, #8]
	str	x20, [x19, #32]
	mov	x0, x20
	bl	_spi_get_device_id
	ldr	w8, [x0, #4]
	str	w8, [x19, #24]
Lloh3:
	adrp	x8, _ad5360_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ad5360_info@GOTPAGEOFF]
Lloh5:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh7:
	ldr	w8, [x9]
	ldr	x9, [x21, #8]
	ldr	w9, [x9, #4]
	stp	w9, w8, [x19, #4]
	mov	x0, x19
	bl	_ad5360_alloc_channels
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_18
LBB0_3:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	w1, [x8]
	cbz	w1, LBB0_11
; %bb.5:
	mov	x8, #0
Lloh15:
	adrp	x9, _ad5360_vref_name@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ad5360_vref_name@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x2, [x21]
	cmp	w1, #16
	b.lo	LBB0_10
; %bb.6:
	sub	x10, x2, x9
	cmp	x10, #64
	b.lo	LBB0_10
; %bb.7:
	mov	x10, #0
	and	x8, x1, #0xfffffff0
	lsl	x11, x1, #2
	and	x11, x11, #0x3ffffffc0
	add	x12, x9, #32
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x13, x12, x10
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13]
	add	x13, x2, x10
	stp	q0, q1, [x13]
	stp	q2, q3, [x13, #32]
	add	x10, x10, #64
	cmp	x11, x10
	b.ne	LBB0_8
; %bb.9:
	cmp	x8, x1
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	str	w11, [x2, x10]
	add	x8, x8, #1
	cmp	x1, x8
	b.ne	LBB0_10
	b	LBB0_12
LBB0_11:
	ldr	x2, [x21]
LBB0_12:
	ldr	x0, [x21, #16]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_devm_regulator_bulk_get
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_14:
	ldp	x1, x8, [x21]
	ldr	w0, [x8]
	bl	_regulator_bulk_enable
	cbz	w0, LBB0_19
; %bb.15:
	mov	x22, x0
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	mov	x0, x20
	bl	_dev_err
LBB0_17:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	ldr	w0, [x19]
	bl	_kfree
LBB0_18:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_19:
	mov	x0, x19
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_18
; %bb.20:
	str	x22, [sp]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldp	x1, x8, [x21]
	ldr	w0, [x8]
	bl	_regulator_bulk_disable
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad5360_chip_info_tbl,8,3       ; @ad5360_chip_info_tbl
	.comm	_ad5360_info,4,2                ; @ad5360_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate channel spec: %d\n"

	.comm	_ad5360_vref_name,8,3           ; @ad5360_vref_name
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request vref regulators: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to enable vref regulators: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_ad5360_probe
.subsections_via_symbols
