	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7780_postprocess_sample
_ad7780_postprocess_sample:             ## @ad7780_postprocess_sample
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_ad_sigma_delta_to_ad7780
	movq	_AD7780_ERR@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	8(%rax), %rdx
	movl	(%rdx), %ecx
	andl	%ebx, %ecx
	cmpl	4(%rdx), %ecx
	jne	LBB0_2
## %bb.3:
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rdx)
	je	LBB0_5
## %bb.4:
	movq	_ad778x_gain@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_AD7780_GAIN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ebx, %esi
	movl	(%rdx,%rsi,4), %edx
	movl	%edx, 4(%rax)
	movq	_ad778x_odr_avail@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_AD7780_FILTER@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ebx
	movl	(%rdx,%rbx,4), %edx
	movl	%edx, (%rax)
	jmp	LBB0_5
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_5:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7780_ERR,4,2                 ## @AD7780_ERR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ad778x_gain,8,3                ## @ad778x_gain
	.comm	_AD7780_GAIN,4,2                ## @AD7780_GAIN
	.comm	_ad778x_odr_avail,8,3           ## @ad778x_odr_avail
	.comm	_AD7780_FILTER,4,2              ## @AD7780_FILTER
	.no_dead_strip	_ad7780_postprocess_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7780_postprocess_sample
_ad7780_postprocess_sample:             ; @ad7780_postprocess_sample
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_ad_sigma_delta_to_ad7780
Lloh0:
	adrp	x8, _AD7780_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7780_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x0, #8]
	ldp	w9, w10, [x8]
	and	w9, w9, w19
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	w8, #0
Lloh3:
	adrp	x9, _ad778x_gain@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ad778x_gain@GOTPAGEOFF]
Lloh5:
	adrp	x10, _AD7780_GAIN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AD7780_GAIN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	ldr	w10, [x10]
	mov	w11, w19
	and	x10, x10, x11
	ldr	w9, [x9, x10, lsl #2]
	str	w9, [x0, #4]
Lloh9:
	adrp	x9, _AD7780_FILTER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AD7780_FILTER@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	x9, x9, x11
Lloh12:
	adrp	x10, _ad778x_odr_avail@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ad778x_odr_avail@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	w9, [x10, x9, lsl #2]
	str	w9, [x0]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7780_ERR,4,2                 ; @AD7780_ERR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ad778x_gain,8,3                ; @ad778x_gain
	.comm	_AD7780_GAIN,4,2                ; @AD7780_GAIN
	.comm	_ad778x_odr_avail,8,3           ; @ad778x_odr_avail
	.comm	_AD7780_FILTER,4,2              ; @AD7780_FILTER
	.no_dead_strip	_ad7780_postprocess_sample
.subsections_via_symbols
