	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc_keys_poll
_adc_keys_poll:                         ## @adc_keys_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	24(%r14), %edi
	leaq	-44(%rbp), %rsi
	callq	_iio_read_channel_processed
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$4294967295, %r12d              ## imm = 0xFFFFFFFF
	je	LBB0_9
## %bb.1:
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)
LBB0_2:
	xorl	%r13d, %r13d
LBB0_3:
	movl	(%r14), %edi
	subl	-44(%rbp), %edi
	callq	_abs
	xorl	%r15d, %r15d
	cmpq	%r12, %rax
	cmovgel	%r13d, %r15d
	movl	8(%r14), %esi
	testl	%esi, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_6
## %bb.4:
	cmpl	%r15d, %esi
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	xorl	%edx, %edx
	callq	_input_report_key
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_input_report_key
LBB0_8:
	movl	(%rbx), %edi
	callq	_input_sync
	movl	%r15d, 8(%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	$0, 4(%r14)
	jle	LBB0_2
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	movslq	4(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_3
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%rbx,8), %edi
	subl	-44(%rbp), %edi
	callq	_abs
	cmpq	%r12, %rax
	jge	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r14), %rcx
	movl	4(%rcx,%rbx,8), %r13d
	movq	%rax, %r12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adc_keys_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc_keys_poll
_adc_keys_poll:                         ; @adc_keys_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x21, #24]
	add	x1, sp, #12
	bl	_iio_read_channel_processed
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.1:
	mov	w20, #0
	ldr	w8, [x21]
	str	w8, [sp, #12]
LBB0_2:
	mov	w22, #-1
LBB0_3:
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	sub	w0, w8, w9
	bl	_abs
	cmp	x0, x22
	csel	w20, wzr, w20, lt
	ldr	w1, [x21, #8]
	cbz	w1, LBB0_6
; %bb.4:
	cmp	w1, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19]
	mov	w2, #0
	bl	_input_report_key
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
	ldr	w0, [x19]
	mov	x1, x20
	mov	w2, #1
	bl	_input_report_key
LBB0_8:
	ldr	w0, [x19]
	bl	_input_sync
	str	w20, [x21, #8]
	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
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	w8, [x21, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x23, #0
	mov	x24, #0
	mov	w20, #0
	mov	w22, #-1
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x21, #4]
	add	x23, x23, #8
	cmp	x24, x8
	b.ge	LBB0_3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	w8, [x8, x23]
	ldr	w9, [sp, #12]
	sub	w0, w8, w9
	bl	_abs
	cmp	x0, x22
	b.ge	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x21, #16]
	add	x8, x8, x23
	ldr	w20, [x8, #4]
	mov	x22, x0
	b	LBB0_11
LBB0_14:
	mov	w20, #0
	b	LBB0_2
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adc_keys_poll
.subsections_via_symbols
