	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_first_free_audio
_find_first_free_audio:                 ## @find_first_free_audio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %r8d
	movl	%edx, %r10d
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movq	(%rdi), %r9
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %r8
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r9,%rax,4)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi), %rcx
	cmpl	$1, (%rcx,%rax,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, %r10
	jne	LBB0_5
	jmp	LBB0_13
LBB0_6:
	cmpl	%edx, %r8d
	jbe	LBB0_8
## %bb.7:
	movq	(%rdi), %rax
	cmpl	$0, (%rax,%r10,4)
	je	LBB0_13
LBB0_8:
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.10:
	movq	(%rdi), %rdx
	xorl	%eax, %eax
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rdx,%r10,4)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r10
	cmpq	%r10, %r8
	jne	LBB0_11
## %bb.14:
	popq	%rbp
	retq
LBB0_13:
	movq	8(%rsi), %rax
	movq	(%rax,%r10,8), %rax
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_first_free_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_first_free_audio
_find_first_free_audio:                 ; @find_first_free_audio
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	mov	w8, w2
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x10, #0
	ldr	x11, [x0]
	lsl	x12, x8, #2
	lsl	x13, x9, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #4
	cmp	x13, x10
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x11, x10]
	cbnz	w14, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x0, #8]
	ldr	w14, [x14, x10]
	cmp	w14, #1
	ccmp	x12, x10, #0, eq
	b.ne	LBB0_2
	b	LBB0_12
LBB0_5:
	cmp	w9, w2
	b.ls	LBB0_7
; %bb.6:
	ldr	x10, [x0]
	ldr	w10, [x10, w2, uxtw #2]
	cbz	w10, LBB0_12
LBB0_7:
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x8, #0
	ldr	x10, [x0]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, x8, lsl #2]
	cbz	w11, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_9
LBB0_11:
	mov	x0, #0
	ret
LBB0_12:
	ldr	x9, [x1, #8]
	ldr	x0, [x9, x8, lsl #3]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_first_free_audio
.subsections_via_symbols
