	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function muxWork
_muxWork:                               ## @muxWork
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	8(%r13), %r12
	movq	16(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rbx
	movq	%rbx, -56(%rbp)
	movl	40(%r12), %edi
	callq	_hb_lock
	cmpl	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movl	40(%r12), %edi
	callq	_hb_unlock
	movq	_HB_WORK_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_2:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	_HB_BUF_FLAG_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	leaq	-56(%rbp), %rdi
	callq	_hb_buffer_close
	movq	64(%r12), %rdi
	movl	(%r13), %esi
	callq	_hb_bitvec_set
	movq	72(%r12), %rdi
	movl	(%r13), %esi
	callq	_hb_bitvec_set
	jmp	LBB0_9
LBB0_4:
	movq	(%rcx), %rax
	movq	_HB_PASS_ENCODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_HB_PASS_ENCODE_2ND@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	movq	64(%r12), %rdi
	movl	(%r13), %esi
	callq	_hb_bitvec_bit
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	leaq	-56(%rbp), %rdi
	callq	_hb_buffer_close
LBB0_9:
	movq	$0, (%r14)
	movq	72(%r12), %rdi
	movq	80(%r12), %rdx
	movq	%rdx, %rsi
	callq	_hb_bitvec_and_cmp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	56(%r12), %rdx
	movq	64(%r12), %rdi
	movq	%rdx, %rsi
	callq	_hb_bitvec_and_cmp
	testq	%rax, %rax
	je	LBB0_34
LBB0_11:
	movq	%r15, %r14
	xorl	%edi, %edi
	callq	_hb_bitvec_new
	movq	%rax, %r15
	movq	%rax, -48(%rbp)
	movq	72(%r12), %rsi
	movq	%rax, %rdi
	callq	_hb_bitvec_cpy
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	32(%r12), %rax
	addq	%rax, 24(%r12)
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_31 Depth 2
	movq	72(%r12), %rdi
	movq	80(%r12), %rdx
	movq	%rdx, %rsi
	callq	_hb_bitvec_and_cmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	callq	_hb_bitvec_any
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r12), %rax
	movq	_MIN_BUFFERING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	56(%r12), %rsi
	movq	64(%r12), %rdi
	callq	_hb_bitvec_cmp
	testq	%rax, %rax
	je	LBB0_33
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	callq	_hb_bitvec_zero
	cmpl	$0, 16(%r12)
	jle	LBB0_27
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_27
LBB0_18:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	48(%r12), %rax
	movq	(%rax,%rbx,8), %r13
	movl	88(%r12), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_OutputTrackChunk
	movq	%r13, %rdi
	callq	_mf_full
	testq	%rax, %rax
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	64(%r12), %rdi
	movl	%ebx, %esi
	callq	_hb_bitvec_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=2
	movslq	4(%r13), %rax
	cmpl	%eax, (%r13)
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	16(%r13), %rcx
	decq	%rax
	movslq	8(%r13), %rdx
	decq	%rdx
	andq	%rax, %rdx
	movq	(%rcx,%rdx,8), %rax
	movq	32(%r12), %rcx
	addq	24(%r12), %rcx
	cmpq	%rcx, (%rax)
	jge	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	72(%r12), %rdi
	movl	%ebx, %esi
	callq	_hb_bitvec_clr
LBB0_24:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	(%r13), %eax
	cmpl	4(%r13), %eax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_hb_bitvec_set
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	72(%r12), %rdi
	movq	80(%r12), %rsi
	callq	_hb_bitvec_cpy
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	56(%r12), %rsi
	movq	64(%r12), %rdi
	callq	_hb_bitvec_cmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	16(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_36
## %bb.29:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	48(%r12), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_31:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rdx,8), %rsi
	movl	(%rsi), %edi
	cmpl	4(%rsi), %edi
	jne	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_31 Depth=2
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_31
LBB0_36:
	movl	$1, (%r12)
	movq	(%r14), %rax
	movl	$1, (%rax)
	movl	40(%r12), %edi
	callq	_hb_unlock
	leaq	-48(%rbp), %rdi
	callq	_hb_bitvec_free
	movq	_HB_WORK_DONE@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_8:
	movl	(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_MoveToInternalFifos
	jmp	LBB0_9
LBB0_33:
	leaq	-48(%rbp), %rdi
	callq	_hb_bitvec_free
LBB0_34:
	movl	40(%r12), %edi
	callq	_hb_unlock
	movq	_HB_WORK_OK@GOTPCREL(%rip), %rax
LBB0_35:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_WORK_DONE,4,2               ## @HB_WORK_DONE
	.comm	_HB_BUF_FLAG_EOF,4,2            ## @HB_BUF_FLAG_EOF
	.comm	_HB_PASS_ENCODE,8,3             ## @HB_PASS_ENCODE
	.comm	_HB_PASS_ENCODE_2ND,8,3         ## @HB_PASS_ENCODE_2ND
	.comm	_HB_WORK_OK,4,2                 ## @HB_WORK_OK
	.comm	_MIN_BUFFERING,8,3              ## @MIN_BUFFERING
	.no_dead_strip	_muxWork
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function muxWork
_muxWork:                               ; @muxWork
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldp	x19, x24, [x23, #8]
	ldr	x22, [x1]
	str	x22, [sp, #8]
	ldr	w0, [x19, #40]
	bl	_hb_lock
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_hb_unlock
	b	LBB0_32
LBB0_2:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _HB_BUF_FLAG_EOF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HB_BUF_FLAG_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x0, sp, #8
	bl	_hb_buffer_close
	ldr	x0, [x19, #64]
	ldr	w1, [x23]
	bl	_hb_bitvec_set
	ldr	x0, [x19, #72]
	ldr	w1, [x23]
	bl	_hb_bitvec_set
	b	LBB0_7
LBB0_4:
	ldr	x8, [x24]
Lloh3:
	adrp	x9, _HB_PASS_ENCODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HB_PASS_ENCODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _HB_PASS_ENCODE_2ND@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HB_PASS_ENCODE_2ND@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.5:
	ldr	x0, [x19, #64]
	ldr	w1, [x23]
	bl	_hb_bitvec_bit
	cbz	x0, LBB0_34
LBB0_6:
	add	x0, sp, #8
	bl	_hb_buffer_close
LBB0_7:
	str	xzr, [x21]
	ldp	x0, x1, [x19, #72]
	mov	x2, x1
	bl	_hb_bitvec_and_cmp
	cbnz	x0, LBB0_9
; %bb.8:
	ldp	x1, x0, [x19, #56]
	mov	x2, x1
	bl	_hb_bitvec_and_cmp
	cbz	x0, LBB0_36
LBB0_9:
	mov	w0, #0
	bl	_hb_bitvec_new
	mov	x21, x0
	str	x0, [sp]
	ldr	x1, [x19, #72]
	bl	_hb_bitvec_cpy
Lloh9:
	adrp	x24, _MIN_BUFFERING@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MIN_BUFFERING@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldp	x9, x8, [x19, #24]
	add	x8, x9, x8
	str	x8, [x19, #24]
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
	ldp	x0, x1, [x19, #72]
	mov	x2, x1
	bl	_hb_bitvec_and_cmp
	cbz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_hb_bitvec_any
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.gt	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	ldp	x1, x0, [x19, #56]
	bl	_hb_bitvec_cmp
	cbz	x0, LBB0_35
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x21
	bl	_hb_bitvec_zero
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x22, x22, #1
	ldrsw	x8, [x19, #16]
	cmp	x22, x8
	b.ge	LBB0_26
LBB0_18:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #48]
	ldr	x23, [x8, x22, lsl #3]
	ldr	w2, [x19, #88]
	mov	x0, x19
	mov	x1, x22
	bl	_OutputTrackChunk
	mov	x0, x23
	bl	_mf_full
	cbnz	x0, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x0, [x19, #64]
	mov	x1, x22
	bl	_hb_bitvec_bit
	cbz	x0, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	ldp	w9, w8, [x23]
	cmp	w9, w8
	b.eq	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=2
	ldr	x9, [x23, #16]
	sub	w8, w8, #1
	ldr	w10, [x23, #8]
	sub	w10, w10, #1
	and	w8, w10, w8
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x8, [x8]
	ldp	x9, x10, [x19, #24]
	add	x9, x10, x9
	cmp	x8, x9
	b.ge	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=2
	ldr	x0, [x19, #72]
	mov	x1, x22
	bl	_hb_bitvec_clr
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=2
	ldp	w8, w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x0, x21
	mov	x1, x22
	bl	_hb_bitvec_set
	b	LBB0_17
LBB0_25:                                ;   in Loop: Header=BB0_11 Depth=1
	ldp	x0, x1, [x19, #72]
	bl	_hb_bitvec_cpy
LBB0_26:                                ;   in Loop: Header=BB0_11 Depth=1
	ldp	x1, x0, [x19, #56]
	bl	_hb_bitvec_cmp
	cbz	x0, LBB0_10
; %bb.27:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.28:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x19, #48]
LBB0_29:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9]
	ldp	w11, w10, [x10]
	cmp	w11, w10
	b.ne	LBB0_10
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_29
LBB0_31:
	mov	w8, #1
	str	w8, [x19]
	ldr	x9, [x20]
	str	w8, [x9]
	ldr	w0, [x19, #40]
	bl	_hb_unlock
	mov	x0, sp
	bl	_hb_bitvec_free
LBB0_32:
Lloh11:
	adrp	x8, _HB_WORK_DONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HB_WORK_DONE@GOTPAGEOFF]
LBB0_33:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
LBB0_34:
	ldr	w0, [x23]
	mov	x1, x19
	mov	x2, x22
	bl	_MoveToInternalFifos
	b	LBB0_7
LBB0_35:
	mov	x0, sp
	bl	_hb_bitvec_free
LBB0_36:
	ldr	w0, [x19, #40]
	bl	_hb_unlock
Lloh13:
	adrp	x8, _HB_WORK_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HB_WORK_OK@GOTPAGEOFF]
	b	LBB0_33
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_WORK_DONE,4,2               ; @HB_WORK_DONE
	.comm	_HB_BUF_FLAG_EOF,4,2            ; @HB_BUF_FLAG_EOF
	.comm	_HB_PASS_ENCODE,8,3             ; @HB_PASS_ENCODE
	.comm	_HB_PASS_ENCODE_2ND,8,3         ; @HB_PASS_ENCODE_2ND
	.comm	_HB_WORK_OK,4,2                 ; @HB_WORK_OK
	.comm	_MIN_BUFFERING,8,3              ; @MIN_BUFFERING
	.no_dead_strip	_muxWork
.subsections_via_symbols
