	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resource_construct             ## -- Begin function resource_construct
	.p2align	4, 0x90
_resource_construct:                    ## @resource_construct
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%edi, %r13d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r12
	movq	40(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	$0, -56(%rbp)
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	*%rax
LBB0_2:
	movq	$0, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	je	LBB0_11
## %bb.3:
	leaq	32(%r15), %rdx
	leaq	-56(%rbp), %rdi
	leaq	-76(%rbp), %rsi
	callq	_update_num_audio
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*16(%rax)
	movq	%rax, -88(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r15), %rax
	movq	%rbx, (%rax,%r14,8)
	incq	(%r15)
	incq	%r14
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	cmpq	%rax, %r14
	jb	LBB0_5
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_9:
	movq	(%rbx), %rax
	leaq	-88(%rbp), %rdi
	callq	*(%rax)
LBB0_11:
	movq	$0, 8(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax)
	jle	LBB0_12
## %bb.17:
	xorl	%r14d, %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	*%rcx
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	16(%r15), %rax
	cmpq	$0, (%rax,%r14,8)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_DC_ERR
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movq	8(%r15), %rax
	incq	%rax
	movq	%rax, 8(%r15)
	incq	%r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	4(%rcx), %rcx
	cmpq	%rcx, %r14
	jge	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	jmp	LBB0_18
LBB0_12:
	xorl	%eax, %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	xorl	%ecx, %ecx
	cmpq	%rax, (%r15)
	setb	%cl
	movl	%ecx, 4(%rbx)
	testl	%r13d, %r13d
	je	LBB0_23
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r12, %rdi
	callq	_virtual_stream_encoder_create
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	16(%r15), %rax
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_15
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rcx
	movq	%rcx, 8(%r15)
	decl	%r13d
	jne	LBB0_14
LBB0_23:
	movq	%r12, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	movl	%eax, (%rbx)
	movl	$1, %eax
	jmp	LBB0_24
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	callq	_DC_ERR
	xorl	%eax, %eax
LBB0_24:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DC: failed to create audio!\n"

L_.str.1:                               ## @.str.1
	.asciz	"DC: failed to create stream_encoder!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resource_construct             ; -- Begin function resource_construct
	.p2align	2
_resource_construct:                    ; @resource_construct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x21, [x1, #8]
	ldr	x26, [x2, #40]
	ldr	w8, [x26]
	stp	wzr, w8, [sp, #8]
	ldr	x8, [x3, #24]
	cbz	x8, LBB0_2
; %bb.1:
	add	x1, sp, #8
	mov	x0, x21
	blr	x8
LBB0_2:
	str	xzr, [x22]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.3:
	add	x2, x22, #32
	add	x0, sp, #8
	add	x1, sp, #12
	bl	_update_num_audio
	ldr	w8, [x26]
	cbz	w8, LBB0_10
; %bb.4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	mov	x0, x21
	mov	x1, x24
	blr	x8
	str	x0, [sp]
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x0
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	blr	x8
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #24]
	str	x25, [x8, x24, lsl #3]
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	add	x24, x24, #1
	ldr	w8, [x26]
	cmp	x24, x8
	b.lo	LBB0_5
	b	LBB0_10
LBB0_8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_23
LBB0_9:
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, sp
	blr	x8
LBB0_10:
	str	xzr, [x22, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_18
; %bb.11:
	ldr	w9, [x26, #4]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.12:
	mov	x24, #0
Lloh2:
	adrp	x25, l_.str.1@PAGE
Lloh3:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x21
	blr	x8
	ldr	x8, [x22, #16]
	lsl	x9, x24, #3
	str	x0, [x8, x9]
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x9]
	cbnz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x25
	bl	_DC_ERR
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, #1
	str	x8, [x22, #8]
	add	x24, x24, #1
	ldrsw	x9, [x26, #4]
	cmp	x24, x9
	b.ge	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x20, #8]
	b	LBB0_13
LBB0_17:
	mov	x8, #0
LBB0_18:
	ldr	x9, [x22]
	cmp	x9, x8
	cset	w8, lo
	str	w8, [x19, #4]
	cbz	w23, LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x21
	bl	_virtual_stream_encoder_create
	ldp	x8, x9, [x22, #8]
	lsl	x10, x8, #3
	str	x0, [x9, x10]
	ldr	x9, [x22, #16]
	ldr	x9, [x9, x10]
	cbz	x9, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x8, x8, #1
	str	x8, [x22, #8]
	subs	w23, w23, #1
	b.ne	LBB0_19
LBB0_21:
	ldr	x8, [x20]
	mov	x0, x21
	blr	x8
	str	w0, [x19]
	mov	w0, #1
	b	LBB0_24
LBB0_22:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_23:
	bl	_DC_ERR
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DC: failed to create audio!\n"

l_.str.1:                               ; @.str.1
	.asciz	"DC: failed to create stream_encoder!\n"

.subsections_via_symbols
