	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dln2_adc_add_demux
_dln2_adc_add_demux:                    ## @dln2_adc_add_demux
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rdi), %r11
	testq	%r11, %r11
	je	LBB0_5
## %bb.1:
	movq	8(%rdi), %r8
	testq	%r8, %r8
	je	LBB0_5
## %bb.2:
	leaq	-1(%r11), %rax
	leaq	(%rax,%rax,2), %r10
	movl	4(%r8,%r10,4), %r9d
	movl	(%r8,%r10,4), %eax
	addl	%r9d, %eax
	cmpl	%esi, %eax
	jne	LBB0_5
## %bb.3:
	movl	8(%r8,%r10,4), %eax
	addl	%r9d, %eax
	cmpl	%edx, %eax
	jne	LBB0_5
## %bb.4:
	leaq	(%r8,%r10,4), %rax
	addq	$4, %rax
	addl	%ecx, %r9d
	movl	%r9d, (%rax)
	popq	%rbp
	retq
LBB0_5:
	movq	_DLN2_ADC_MAX_CHANNELS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r11d
	jge	LBB0_7
## %bb.6:
	movq	8(%rdi), %r8
	leal	1(%r11), %eax
	movl	%eax, (%rdi)
	leaq	(%r11,%r11,2), %rax
	movl	%esi, (%r8,%rax,4)
	movl	%edx, 8(%r8,%rax,4)
	movl	%ecx, 4(%r8,%rax,4)
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DLN2_ADC_MAX_CHANNELS,4,2      ## @DLN2_ADC_MAX_CHANNELS
	.no_dead_strip	_dln2_adc_add_demux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dln2_adc_add_demux
_dln2_adc_add_demux:                    ; @dln2_adc_add_demux
	.cfi_startproc
; %bb.0:
	ldrsw	x8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_5
; %bb.2:
	sub	x11, x8, #1
	mov	w10, #12
	mul	x12, x11, x10
	add	x10, x9, x12
	ldr	w13, [x9, x12]
	ldr	w12, [x10, #4]!
	add	w13, w12, w13
	cmp	w13, w1
	b.ne	LBB0_5
; %bb.3:
	mov	w13, #12
	madd	x9, x11, x13, x9
	ldr	w9, [x9, #8]
	add	w9, w9, w12
	cmp	w9, w2
	b.ne	LBB0_5
; %bb.4:
	add	w8, w12, w3
	str	w8, [x10]
	ret
LBB0_5:
Lloh0:
	adrp	x9, _DLN2_ADC_MAX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DLN2_ADC_MAX_CHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.6:
	ldr	x9, [x0, #8]
	add	w10, w8, #1
	str	w10, [x0]
	mov	w10, #12
	madd	x8, x8, x10, x9
	stp	w3, w2, [x8, #4]
	str	w1, [x8]
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DLN2_ADC_MAX_CHANNELS,4,2      ; @DLN2_ADC_MAX_CHANNELS
	.no_dead_strip	_dln2_adc_add_demux
.subsections_via_symbols
