	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7124_probe
_ad7124_probe:                          ## @ad7124_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	%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	%rdi, %r14
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movq	_ad7124_chip_info_tbl@GOTPCREL(%rip), %rcx
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, 16(%r13)
	leaq	12(%r13), %rdi
	movq	_ad7124_sigma_delta_info@GOTPCREL(%rip), %rcx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_ad_sd_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r14, 16(%rbx)
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ad7124_info@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ad7124_of_parse_channel_config
	testl	%eax, %eax
	js	LBB0_13
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	movq	_AD7124_INT_REF@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ad7124_ref_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_devm_regulator_get_optional
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_4
LBB0_13:
	movl	%eax, %r12d
	jmp	LBB0_31
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_31
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 8(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	8(%r13), %edi
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_26
LBB0_14:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_20
## %bb.15:
	movq	%r13, %rdi
	callq	_ad7124_soft_reset
	testl	%eax, %eax
	js	LBB0_24
## %bb.16:
	movq	%r13, %rdi
	callq	_ad7124_setup
	testl	%eax, %eax
	js	LBB0_24
## %bb.17:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ad_sd_setup_buffer_and_trigger
	testl	%eax, %eax
	js	LBB0_24
## %bb.18:
	movq	%rbx, %rdi
	callq	_iio_device_register
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jns	LBB0_31
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_ad_sd_cleanup_buffer_and_trigger
	movl	%r15d, %r12d
	jmp	LBB0_25
LBB0_24:
	movl	%eax, %r12d
LBB0_25:
	movl	8(%r13), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_26
LBB0_20:
	movl	%eax, %r12d
LBB0_26:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_31
## %bb.27:
	movl	%eax, %ebx
	incq	%rbx
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_29 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_31
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %r14d
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r14,4), %edi
	callq	_regulator_disable
	jmp	LBB0_28
LBB0_31:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad7124_chip_info_tbl,8,3       ## @ad7124_chip_info_tbl
	.comm	_ad7124_sigma_delta_info,4,2    ## @ad7124_sigma_delta_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad7124_info,4,2                ## @ad7124_info
	.comm	_AD7124_INT_REF,4,2             ## @AD7124_INT_REF
	.comm	_ad7124_ref_names,8,3           ## @ad7124_ref_names
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mclk"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to register iio device\n"

	.no_dead_strip	_ad7124_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7124_probe
_ad7124_probe:                          ; @ad7124_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x20
	bl	_spi_get_device_id
Lloh0:
	adrp	x8, _ad7124_chip_info_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad7124_chip_info_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x8, x8, x9, lsl #2
	str	x8, [x19, #16]
	add	x0, x19, #12
Lloh3:
	adrp	x3, _ad7124_sigma_delta_info@GOTPAGE
Lloh4:
	ldr	x3, [x3, _ad7124_sigma_delta_info@GOTPAGEOFF]
	mov	x1, x21
	mov	x2, x20
	bl	_ad_sd_init
	mov	x0, x20
	mov	x1, x21
	bl	_spi_set_drvdata
	str	x20, [x21, #16]
	mov	x0, x20
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
Lloh5:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
Lloh8:
	adrp	x8, _ad7124_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ad7124_info@GOTPAGEOFF]
	str	x8, [x21]
	ldr	w1, [x20]
	mov	x0, x21
	bl	_ad7124_of_parse_channel_config
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x23, #0
Lloh10:
	adrp	x24, _AD7124_INT_REF@GOTPAGE
Lloh11:
	ldr	x24, [x24, _AD7124_INT_REF@GOTPAGEOFF]
Lloh12:
	adrp	x25, _ad7124_ref_names@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ad7124_ref_names@GOTPAGEOFF]
Lloh14:
	adrp	x26, _ENODEV@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cmp	x23, x8
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x25]
	lsl	x22, x23, #2
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_devm_regulator_get_optional
	ldr	x8, [x19]
	str	w0, [x8, x22]
	bl	_PTR_ERR
	ldr	w8, [x26]
	cmn	w0, w8
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x23, lsl #2]
	bl	_IS_ERR
	cbnz	x0, LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x23, lsl #2]
	bl	_regulator_enable
	cbz	w0, LBB0_4
LBB0_9:
	mov	x22, x0
	b	LBB0_27
LBB0_10:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_27
LBB0_11:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #8]
	cbz	x8, LBB0_13
; %bb.12:
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_22
LBB0_13:
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_21
; %bb.14:
	mov	x0, x19
	bl	_ad7124_soft_reset
	tbnz	w0, #31, LBB0_19
; %bb.15:
	mov	x0, x19
	bl	_ad7124_setup
	tbnz	w0, #31, LBB0_19
; %bb.16:
	mov	x0, x21
	bl	_ad_sd_setup_buffer_and_trigger
	tbnz	w0, #31, LBB0_19
; %bb.17:
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_29
; %bb.18:
	mov	w22, #0
	b	LBB0_27
LBB0_19:
	mov	x22, x0
LBB0_20:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_22
LBB0_21:
	mov	x22, x0
LBB0_22:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_27
; %bb.23:
	mov	w8, w0
	add	x20, x8, #1
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	sub	x20, x20, #1
	cmp	x20, #1
	b.ls	LBB0_27
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	sub	w21, w20, #2
	ldr	x8, [x19]
	ldr	w0, [x8, w21, uxtw #2]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x21, lsl #2]
	bl	_regulator_disable
	b	LBB0_24
LBB0_27:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_28:
	ldr	x8, [x19]
	ldr	w0, [x8, x23, lsl #2]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_29:
	mov	x22, x0
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	bl	_ad_sd_cleanup_buffer_and_trigger
	b	LBB0_20
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad7124_chip_info_tbl,8,3       ; @ad7124_chip_info_tbl
	.comm	_ad7124_sigma_delta_info,4,2    ; @ad7124_sigma_delta_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad7124_info,4,2                ; @ad7124_info
	.comm	_AD7124_INT_REF,4,2             ; @AD7124_INT_REF
	.comm	_ad7124_ref_names,8,3           ; @ad7124_ref_names
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mclk"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to register iio device\n"

	.no_dead_strip	_ad7124_probe
.subsections_via_symbols
