	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads124s_read
_ads124s_read:                          ## @ads124s_read
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	callq	_iio_priv
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movabsq	$4294967300, %rcx               ## imm = 0x100000004
	movq	%rcx, -72(%rbp)
	movq	$0, -64(%rbp)
	leaq	4(%rax), %rdi
	movq	%rdi, -56(%rbp)
	movq	$4, -48(%rbp)
	movq	%rdi, -40(%rbp)
	movq	_ADS124S08_CMD_RDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_ADS124S08_CMD_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$7, %edx
	callq	_memset
	movl	8(%r14), %ebx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_spi_sync_transfer
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	(%r14), %rcx
	movl	8(%rcx), %edx
	movl	12(%rcx), %eax
	shll	$16, %edx
	shll	$8, %eax
	orl	%edx, %eax
	orl	16(%rcx), %eax
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ADS124S08_CMD_RDATA,4,2        ## @ADS124S08_CMD_RDATA
	.comm	_ADS124S08_CMD_NOP,4,2          ## @ADS124S08_CMD_NOP
	.no_dead_strip	_ads124s_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ads124s_read
lCPI0_0:
	.long	4                               ; 0x4
	.long	1                               ; 0x1
lCPI0_1:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ads124s_read:                          ; @ads124s_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_iio_priv
	mov	x19, x0
	ldr	x0, [x0]
	str	x0, [sp, #8]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	str	xzr, [sp, #24]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #40]
Lloh7:
	adrp	x8, _ADS124S08_CMD_RDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ADS124S08_CMD_RDATA@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x0], #4
	str	x0, [sp, #32]
	str	x0, [sp, #48]
Lloh10:
	adrp	x8, _ADS124S08_CMD_NOP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADS124S08_CMD_NOP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #7
	bl	_memset
	ldr	w20, [x19, #8]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_spi_sync_transfer
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldp	w9, w10, [x8, #8]
	lsl	w10, w10, #8
	orr	w9, w10, w9, lsl #16
	ldr	w8, [x8, #16]
	orr	w0, w9, w8
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ADS124S08_CMD_RDATA,4,2        ; @ADS124S08_CMD_RDATA
	.comm	_ADS124S08_CMD_NOP,4,2          ; @ADS124S08_CMD_NOP
	.no_dead_strip	_ads124s_read
.subsections_via_symbols
