	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nau7802_read_poll
_nau7802_read_poll:                     ## @nau7802_read_poll
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nau7802_sync
	movq	%rbx, %rdi
	callq	_nau7802_read_conversion
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_NAU7802_REG_PUCTRL@GOTPCREL(%rip), %r15
	movq	_NAU7802_PUCTRL_CR_BIT@GOTPCREL(%rip), %r12
	movq	_NAU7802_SAMP_FREQ_320@GOTPCREL(%rip), %r13
	movq	_NAU7802_MIN_CONVERSIONS@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$20, %edi
	callq	_msleep
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	20(%rbx), %edi
	movl	(%r15), %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, (%r12)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rax
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$4, %edi
	callq	_mdelay
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_nau7802_read_conversion
	testl	%eax, %eax
	js	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movq	%rax, (%rbx)
	movq	(%r14), %rcx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rcx, %rax
	jl	LBB0_2
## %bb.11:
	movl	16(%rbx), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAU7802_REG_PUCTRL,4,2         ## @NAU7802_REG_PUCTRL
	.comm	_NAU7802_PUCTRL_CR_BIT,4,2      ## @NAU7802_PUCTRL_CR_BIT
	.comm	_NAU7802_SAMP_FREQ_320,8,3      ## @NAU7802_SAMP_FREQ_320
	.comm	_NAU7802_MIN_CONVERSIONS,8,3    ## @NAU7802_MIN_CONVERSIONS
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.no_dead_strip	_nau7802_read_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nau7802_read_poll
_nau7802_read_poll:                     ; @nau7802_read_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	bl	_iio_priv
	mov	x20, x0
	bl	_nau7802_sync
	mov	x0, x20
	bl	_nau7802_read_conversion
	tbnz	w0, #31, LBB0_12
; %bb.1:
Lloh0:
	adrp	x21, _NAU7802_REG_PUCTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NAU7802_REG_PUCTRL@GOTPAGEOFF]
Lloh2:
	adrp	x22, _NAU7802_PUCTRL_CR_BIT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _NAU7802_PUCTRL_CR_BIT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _NAU7802_SAMP_FREQ_320@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NAU7802_SAMP_FREQ_320@GOTPAGEOFF]
Lloh6:
	adrp	x24, _NAU7802_MIN_CONVERSIONS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _NAU7802_MIN_CONVERSIONS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #20
	bl	_msleep
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #20]
	ldr	w1, [x21]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #4
	bl	_mdelay
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_nau7802_read_conversion
	tbnz	w0, #31, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	str	x8, [x20]
	ldr	x9, [x24]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.11:
	ldr	w8, [x20, #16]
	str	w8, [x19]
Lloh8:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NAU7802_REG_PUCTRL,4,2         ; @NAU7802_REG_PUCTRL
	.comm	_NAU7802_PUCTRL_CR_BIT,4,2      ; @NAU7802_PUCTRL_CR_BIT
	.comm	_NAU7802_SAMP_FREQ_320,8,3      ; @NAU7802_SAMP_FREQ_320
	.comm	_NAU7802_MIN_CONVERSIONS,8,3    ; @NAU7802_MIN_CONVERSIONS
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.no_dead_strip	_nau7802_read_poll
.subsections_via_symbols
