	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad2s1200_probe
_ad2s1200_probe:                        ## @ad2s1200_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, %r15
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_spi_set_drvdata
	movq	%r14, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	leaq	24(%rax), %rdi
	callq	_mutex_init
	movq	%r15, 16(%rbx)
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%rbx), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdi
	callq	_PTR_ERR
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%rbx), %rdi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%r15, 24(%r14)
	movq	_ad2s1200_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_ad2s1200_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_AD2S1200_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_SPI_MODE_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_8
## %bb.10:
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_8:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adi,sample"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"Failed to claim SAMPLE gpio: err=%ld\n"

L_.str.2:                               ## @.str.2
	.asciz	"adi,rdvel"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to claim RDVEL gpio: err=%ld\n"

	.comm	_ad2s1200_info,4,2              ## @ad2s1200_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad2s1200_channels,4,2          ## @ad2s1200_channels
	.comm	_AD2S1200_HZ,4,2                ## @AD2S1200_HZ
	.comm	_SPI_MODE_3,4,2                 ## @SPI_MODE_3
L_.str.4:                               ## @.str.4
	.asciz	"spi_setup failed!\n"

	.no_dead_strip	_ad2s1200_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad2s1200_probe
_ad2s1200_probe:                        ; @ad2s1200_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	x19, x0
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	mov	x0, x20
	bl	_iio_priv
	mov	x21, x0
	add	x0, x0, #24
	bl	_mutex_init
	str	x19, [x21, #16]
Lloh0:
	adrp	x22, _GPIOD_OUT_LOW@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21, #8]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #8]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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_5:
	ldr	w2, [x22]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x21]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21]
LBB0_7:
	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
	b	_PTR_ERR
LBB0_8:
Lloh13:
	adrp	x8, _ad2s1200_info@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ad2s1200_info@GOTPAGEOFF]
	stp	x8, x19, [x20, #16]
Lloh15:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _ad2s1200_channels@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ad2s1200_channels@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #8]
	bl	_ARRAY_SIZE
	str	w0, [x20, #4]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0]
	str	w8, [x20]
Lloh21:
	adrp	x8, _AD2S1200_HZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AD2S1200_HZ@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _SPI_MODE_3@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SPI_MODE_3@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #4]
	mov	x0, x19
	bl	_spi_setup
	tbnz	w0, #31, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	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
	b	_devm_iio_device_register
LBB0_10:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adi,sample"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"Failed to claim SAMPLE gpio: err=%ld\n"

l_.str.2:                               ; @.str.2
	.asciz	"adi,rdvel"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to claim RDVEL gpio: err=%ld\n"

	.comm	_ad2s1200_info,4,2              ; @ad2s1200_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad2s1200_channels,4,2          ; @ad2s1200_channels
	.comm	_AD2S1200_HZ,4,2                ; @AD2S1200_HZ
	.comm	_SPI_MODE_3,4,2                 ; @SPI_MODE_3
l_.str.4:                               ; @.str.4
	.asciz	"spi_setup failed!\n"

	.no_dead_strip	_ad2s1200_probe
.subsections_via_symbols
