	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads124s_probe
_ads124s_probe:                         ## @ads124s_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
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_4:
	movq	_ads124s_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	shlq	$3, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%r12)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r14, 16(%r12)
	movl	8(%r15), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	movl	(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%r12), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ads124s_info@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_mutex_init
	movq	_ads124s_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_devm_iio_triggered_buffer_setup
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_ads124s_reset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"Reset GPIO not defined\n"

	.comm	_ads124s_chip_info_tbl,8,3      ## @ads124s_chip_info_tbl
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ads124s_info,4,2               ## @ads124s_info
	.comm	_ads124s_trigger_handler,4,2    ## @ads124s_trigger_handler
L_.str.2:                               ## @.str.2
	.asciz	"iio triggered buffer setup failed\n"

	.no_dead_strip	_ads124s_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads124s_probe
_ads124s_probe:                         ; @ads124s_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_spi_get_device_id
	mov	x21, x0
	mov	x0, x19
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
Lloh0:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	w0, [x22, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_3:
Lloh7:
	adrp	x8, _ads124s_chip_info_tbl@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ads124s_chip_info_tbl@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x8, x8, x9, lsl #3
	str	x8, [x22, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x19, [x22, #16]
	ldr	w8, [x21, #8]
	str	w8, [x20, #40]
	str	x19, [x20, #32]
	ldr	w8, [x19]
	str	w8, [x20, #24]
Lloh10:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	x8, [x22, #8]
	ldr	d0, [x8]
	str	d0, [x20, #8]
Lloh13:
	adrp	x8, _ads124s_info@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ads124s_info@GOTPAGEOFF]
	str	x8, [x20]
	mov	x0, x22
	bl	_mutex_init
Lloh15:
	adrp	x8, _ads124s_trigger_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ads124s_trigger_handler@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x4, #0
	bl	_devm_iio_triggered_buffer_setup
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	bl	_ads124s_reset
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_devm_iio_device_register
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"Reset GPIO not defined\n"

	.comm	_ads124s_chip_info_tbl,8,3      ; @ads124s_chip_info_tbl
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ads124s_info,4,2               ; @ads124s_info
	.comm	_ads124s_trigger_handler,4,2    ; @ads124s_trigger_handler
l_.str.2:                               ; @.str.2
	.asciz	"iio triggered buffer setup failed\n"

	.no_dead_strip	_ads124s_probe
.subsections_via_symbols
