	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nau7802_eoc_trigger
_nau7802_eoc_trigger:                   ## @nau7802_eoc_trigger
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movl	12(%rax), %edi
	movq	_NAU7802_REG_PUCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	_NAU7802_PUCTRL_CR_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_nau7802_read_conversion
	testq	%rax, %rax
	js	LBB0_8
## %bb.4:
	movq	(%rbx), %rax
	movq	_NAU7802_MIN_CONVERSIONS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_6
## %bb.5:
	incq	%rax
	movq	%rax, (%rbx)
	movq	(%rdx), %rcx
LBB0_6:
	cmpq	%rcx, %rax
	jl	LBB0_8
## %bb.7:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_complete
	jmp	LBB0_8
LBB0_2:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
LBB0_8:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAU7802_REG_PUCTRL,4,2         ## @NAU7802_REG_PUCTRL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_NAU7802_PUCTRL_CR_BIT,4,2      ## @NAU7802_PUCTRL_CR_BIT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_NAU7802_MIN_CONVERSIONS,8,3    ## @NAU7802_MIN_CONVERSIONS
	.no_dead_strip	_nau7802_eoc_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nau7802_eoc_trigger
_nau7802_eoc_trigger:                   ; @nau7802_eoc_trigger
	.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	x0, x1
	bl	_iio_priv
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x8, _NAU7802_REG_PUCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAU7802_REG_PUCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _NAU7802_PUCTRL_CR_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAU7802_PUCTRL_CR_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_nau7802_read_conversion
	tbnz	x0, #63, LBB0_7
; %bb.3:
	ldr	x8, [x19]
Lloh6:
	adrp	x10, _NAU7802_MIN_CONVERSIONS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NAU7802_MIN_CONVERSIONS@GOTPAGEOFF]
	ldr	x9, [x10]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x9, [x10]
LBB0_5:
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.6:
	add	x0, x19, #8
	bl	_complete
LBB0_7:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NAU7802_REG_PUCTRL,4,2         ; @NAU7802_REG_PUCTRL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_NAU7802_PUCTRL_CR_BIT,4,2      ; @NAU7802_PUCTRL_CR_BIT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_NAU7802_MIN_CONVERSIONS,8,3    ; @NAU7802_MIN_CONVERSIONS
	.no_dead_strip	_nau7802_eoc_trigger
.subsections_via_symbols
