	.file	"extr_obs-output.c_num_audio_mixes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	num_audio_mixes, @function
num_audio_mixes:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	eax, DWORD PTR 8[rdi]
	mov	rbx, rdi
	test	DWORD PTR OBS_OUTPUT_SERVICE[rip], eax
	jne	.L20
.L2:
	test	DWORD PTR OBS_OUTPUT_MULTI_TRACK[rip], eax
	je	.L5
	mov	r8, QWORD PTR MAX_AUDIO_MIXES[rip]
	test	r8, r8
	je	.L1
	mov	rdx, QWORD PTR [rbx]
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	add	rax, 1
	cmp	rax, r8
	je	.L1
.L6:
	mov	ecx, DWORD PTR [rdx+rax*4]
	test	ecx, ecx
	jne	.L21
	mov	r8, rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	rax, r8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r8d, 1
.L1:
	mov	rax, r8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	call	service_supports_multitrack@PLT
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR 8[rbx]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	num_audio_mixes, .-num_audio_mixes
	.comm	OBS_OUTPUT_SERVICE,4,4
	.comm	OBS_OUTPUT_MULTI_TRACK,4,4
	.comm	MAX_AUDIO_MIXES,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_obs-output.c_num_audio_mixes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_audio_mixes, %function
num_audio_mixes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L23
	ldr	r3, [r0, #4]
	ldr	r2, [r2]
	push	{r4, lr}
	tst	r3, r2
	mov	r4, r0
	bne	.L21
.L2:
	ldr	r2, .L23+4
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L5
	ldr	r3, .L23+8
	ldr	r0, [r3]
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r2, [r4]
	mov	r3, #0
	sub	r2, r2, #4
	b	.L6
.L22:
	add	r3, r3, #1
	cmp	r3, r0
	popeq	{r4, pc}
.L6:
	ldr	r1, [r2, #4]!
	cmp	r1, #0
	bne	.L22
	mov	r0, r3
	pop	{r4, pc}
.L21:
	bl	service_supports_multitrack
	cmp	r0, #0
	ldrne	r3, [r4, #4]
	bne	.L2
.L5:
	mov	r0, #1
	pop	{r4, pc}
.L24:
	.align	2
.L23:
	.word	OBS_OUTPUT_SERVICE
	.word	OBS_OUTPUT_MULTI_TRACK
	.word	MAX_AUDIO_MIXES
	.size	num_audio_mixes, .-num_audio_mixes
	.comm	OBS_OUTPUT_SERVICE,4,4
	.comm	OBS_OUTPUT_MULTI_TRACK,4,4
	.comm	MAX_AUDIO_MIXES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
