	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds1803_read_raw
_ds1803_read_raw:                       ## @ds1803_read_raw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	movq	%rax, %r13
	movslq	(%rbx), %rbx
	movq	_ds1803_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpq	$128, %r15
	je	LBB0_4
## %bb.1:
	cmpq	$129, %r15
	jne	LBB0_5
## %bb.2:
	movl	8(%r13), %edi
	movl	(%r12), %edx
	movq	%r14, %rsi
	callq	_i2c_master_recv
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movl	(%r14,%rbx,4), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	movq	(%r13), %rax
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_DS1803_MAX_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_FRACTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ds1803_channels,4,2            ## @ds1803_channels
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_DS1803_MAX_POS,4,2             ## @DS1803_MAX_POS
	.comm	_IIO_VAL_FRACTIONAL,4,2         ## @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ds1803_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds1803_read_raw
_ds1803_read_raw:                       ; @ds1803_read_raw
	.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
	sub	sp, sp, #16
	mov	x22, x4
	mov	x20, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_iio_priv
	mov	x23, x0
	ldrsw	x25, [x24]
Lloh3:
	adrp	x8, _ds1803_channels@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ds1803_channels@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ARRAY_SIZE
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	cmp	x22, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x22, #129
	b.ne	LBB0_5
; %bb.2:
	ldr	w0, [x23, #8]
	ldr	w2, [x21]
	mov	x1, x24
	bl	_i2c_master_recv
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w8, [x24, x25, lsl #2]
	str	w8, [x19]
Lloh8:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x23]
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w8, w8, w9
Lloh11:
	adrp	x9, _DS1803_MAX_POS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DS1803_MAX_POS@GOTPAGEOFF]
	str	w8, [x19]
Lloh13:
	ldr	w8, [x9]
	str	w8, [x20]
Lloh14:
	adrp	x8, _IIO_VAL_FRACTIONAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IIO_VAL_FRACTIONAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #64
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ds1803_channels,4,2            ; @ds1803_channels
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_DS1803_MAX_POS,4,2             ; @DS1803_MAX_POS
	.comm	_IIO_VAL_FRACTIONAL,4,2         ; @IIO_VAL_FRACTIONAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ds1803_read_raw
.subsections_via_symbols
