	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_cb
_process_cb:                            ## @process_cb
	.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
	testl	%edi, %edi
	jle	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	callq	_jack_ringbuffer_read_space
	movl	%eax, %r12d
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	callq	_jack_ringbuffer_read_space
	movl	%eax, %ebx
	cmpl	%eax, %r12d
	cmovll	%r12d, %ebx
	sarl	$2, %ebx
	cmpl	%r15d, %ebx
	movl	%r15d, %r13d
	cmovll	%ebx, %r13d
	leal	(,%r13,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r12d
	notl	%r12d
	addl	%r15d, %r12d
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_jack_port_get_buffer
	movq	%rax, %rsi
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_jack_ringbuffer_read
	movslq	%r13d, %r13
	leaq	4(,%r12,4), %r12
	cmpl	%r15d, %ebx
	jge	LBB0_3
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,4), %rdi
	movq	%r12, %rsi
	callq	___bzero
LBB0_3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movl	4(%rax), %edi
	movl	%r15d, %esi
	callq	_jack_port_get_buffer
	movq	%rax, %r13
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_jack_ringbuffer_read
	cmpl	%r15d, %ebx
	jge	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movq	%r12, %rsi
	callq	___bzero
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_process_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_cb
_process_cb:                            ; @process_cb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #8]
	ldr	w0, [x8]
	bl	_jack_ringbuffer_read_space
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	bl	_jack_ringbuffer_read_space
	cmp	w21, w0
	csel	w8, w21, w0, lt
	asr	w24, w8, #2
	cmp	w24, w19
	csel	w22, w24, w19, lt
	lsl	w21, w22, #2
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_jack_port_get_buffer
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	mov	x1, x23
	mov	x2, x21
	bl	_jack_ringbuffer_read
	sxtw	x25, w22
	mvn	w8, w22
	add	w8, w8, w19
	lsl	x8, x8, #2
	add	x22, x8, #4
	cmp	w24, w19
	b.ge	LBB0_3
; %bb.2:
	add	x0, x23, x25, lsl #2
	mov	x1, x22
	bl	_bzero
LBB0_3:
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #4]
	mov	x1, x19
	bl	_jack_port_get_buffer
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	mov	x1, x23
	mov	x2, x21
	bl	_jack_ringbuffer_read
	cmp	w24, w19
	b.ge	LBB0_5
; %bb.4:
	add	x0, x23, x25, lsl #2
	mov	x1, x22
	bl	_bzero
LBB0_5:
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_process_cb
.subsections_via_symbols
