	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function muxInit
LCPI0_0:
	.quad	0x40f5f90000000000              ## double 9.0E+4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_muxInit:                               ## @muxInit
	.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, %r13
	movq	%rdi, %r14
	movl	$24, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%r14)
	movl	$64, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %r12
	movq	(%r13), %rax
	movq	_HB_PASS_ENCODE@GOTPCREL(%rip), %rcx
	movq	_HB_PASS_ENCODE_2ND@GOTPCREL(%rip), %r15
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_3:
	movl	8(%r13), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_21
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_hb_mux_avformat_init
	movq	%rax, %r14
	movq	%rax, 16(%r12)
LBB0_5:
	xorl	%eax, %eax
	callq	_hb_list_init
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	32(%r13), %edi
	callq	_hb_list_count
	movl	%eax, %ebx
	movl	28(%r13), %edi
	callq	_hb_list_count
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	incl	%ebx
	movl	%ebx, %edi
	callq	_hb_bitvec_new
	movq	%rax, 56(%r12)
	movl	%ebx, %edi
	callq	_hb_bitvec_new
	movq	%rax, 48(%r12)
	movl	%ebx, %edi
	callq	_hb_bitvec_new
	movq	%rax, 40(%r12)
	movl	%ebx, %edi
	callq	_hb_bitvec_new
	movq	%rax, 32(%r12)
	xorl	%eax, %eax
	callq	_hb_lock_init
	movl	%eax, 24(%r12)
	cvtsi2sdq	56(%r13), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvtsi2sdl	48(%r13), %xmm1
	divsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, (%r12)
	movl	%eax, 4(%r12)
	movq	(%r13), %rax
	movq	_HB_PASS_ENCODE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	cmpq	(%r15), %rax
	setne	%al
	testb	%al, %cl
	jne	LBB0_8
## %bb.6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	*(%r14)
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, 16(%r14)
	movq	%r12, 8(%r14)
	movl	$0, 4(%r14)
	movl	40(%r13), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 12(%rcx)
	movl	36(%r13), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_add_mux_track
	movl	32(%r13), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r13), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%rax, %r14
	movl	24(%r13), %edi
	movq	_WORK_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	%rax, %r15
	movl	$24, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 16(%r15)
	movq	%r13, 16(%rax)
	movq	%r12, 8(%rax)
	movl	8(%r12), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%r14), %eax
	movl	%eax, 12(%r15)
	movl	(%r14), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_add_mux_track
	movl	(%r14), %edi
	movq	%r15, %rsi
	callq	_hb_list_add
	incl	%ebx
	movl	32(%r13), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	jl	LBB0_10
LBB0_11:
	movl	28(%r13), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	movq	_PASSTHRUSUB@GOTPCREL(%rip), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	movl	28(%r13), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r13), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%rax, %r14
	movq	8(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	24(%r13), %edi
	movq	_WORK_MUX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hb_get_work
	movq	%rax, %r15
	movl	$24, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 16(%r15)
	movq	%r13, 16(%rax)
	movq	%r12, 8(%rax)
	movl	8(%r12), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%r14), %eax
	movl	%eax, 12(%r15)
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_add_mux_track
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r15, %rsi
	movq	_PASSTHRUSUB@GOTPCREL(%rip), %r15
	callq	_hb_list_add
	jmp	LBB0_15
LBB0_16:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	callq	_hb_list_count
	testl	%eax, %eax
	jle	LBB0_19
## %bb.17:
	movq	_hb_work_loop@GOTPCREL(%rip), %r15
	movq	_HB_LOW_PRIORITY@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_hb_list_item
	movq	%rax, %r14
	movl	8(%r12), %eax
	movl	%eax, 8(%r14)
	movl	(%r14), %edi
	movl	(%r15), %esi
	movl	(%r13), %ecx
	movq	%r14, %rdx
	callq	_hb_thread_init
	movl	%eax, 4(%r14)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	incl	%ebx
	movl	(%r14), %edi
	callq	_hb_list_count
	cmpl	%eax, %ebx
	jl	LBB0_18
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_21:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
	movq	%r12, %rdi
	callq	_free
	movq	_HB_ERROR_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	64(%r13), %rcx
	movl	%eax, (%rcx)
	movq	16(%r13), %rax
	movl	$1, (%rax)
	movl	$-1, %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_PASS_ENCODE,8,3             ## @HB_PASS_ENCODE
	.comm	_HB_PASS_ENCODE_2ND,8,3         ## @HB_PASS_ENCODE_2ND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No muxer selected, exiting"

	.comm	_HB_ERROR_INIT,4,2              ## @HB_ERROR_INIT
	.comm	_WORK_MUX,4,2                   ## @WORK_MUX
	.comm	_PASSTHRUSUB,8,3                ## @PASSTHRUSUB
	.comm	_hb_work_loop,4,2               ## @hb_work_loop
	.comm	_HB_LOW_PRIORITY,4,2            ## @HB_LOW_PRIORITY
	.no_dead_strip	_muxInit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function muxInit
_muxInit:                               ; @muxInit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	mov	w0, #24
	mov	w1, #1
	bl	_calloc
	mov	x20, x0
	str	x0, [x19, #16]
	mov	w0, #64
	mov	w1, #1
	bl	_calloc
	mov	x22, x0
	ldr	x8, [x21]
Lloh0:
	adrp	x25, _HB_PASS_ENCODE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HB_PASS_ENCODE@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh2:
	adrp	x26, _HB_PASS_ENCODE_2ND@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HB_PASS_ENCODE_2ND@GOTPAGEOFF]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21, #8]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_19
; %bb.2:
	mov	x0, x21
	bl	_hb_mux_avformat_init
	mov	x23, x0
	str	x0, [x22, #16]
	b	LBB0_4
LBB0_3:
	mov	x23, #0
LBB0_4:
	bl	_hb_list_init
	str	w0, [x20]
	ldr	w0, [x21, #32]
	bl	_hb_list_count
	mov	x24, x0
	ldr	w0, [x21, #28]
	bl	_hb_list_count
	add	w8, w24, w0
	add	w24, w8, #1
	mov	x0, x24
	bl	_hb_bitvec_new
	str	x0, [x22, #56]
	mov	x0, x24
	bl	_hb_bitvec_new
	str	x0, [x22, #48]
	mov	x0, x24
	bl	_hb_bitvec_new
	str	x0, [x22, #40]
	mov	x0, x24
	bl	_hb_bitvec_new
	str	x0, [x22, #32]
	bl	_hb_lock_init
	str	w0, [x22, #24]
	ldr	d0, [x21, #56]
	scvtf	d0, d0
	mov	x8, #273778395316224
	movk	x8, #16629, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	ldr	s1, [x21, #48]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fdiv	d0, d0, d1
	fcvtzs	w8, d0
	stp	w8, w8, [x22]
	ldr	x8, [x21]
	ldr	x9, [x25]
	ldr	x10, [x26]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_7
; %bb.5:
	cbz	x23, LBB0_7
; %bb.6:
	ldr	x8, [x23]
	mov	x0, x23
	blr	x8
LBB0_7:
	stp	x22, x21, [x20, #8]
	str	wzr, [x20, #4]
	ldp	w1, w8, [x21, #36]
	str	w8, [x19, #12]
	mov	x0, x22
	mov	w2, #1
	bl	_add_mux_track
	ldr	w0, [x21, #32]
	bl	_hb_list_count
Lloh4:
	adrp	x26, _WORK_MUX@GOTPAGE
Lloh5:
	ldr	x26, [x26, _WORK_MUX@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	w23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #32]
	mov	x1, x23
	bl	_hb_list_item
	mov	x24, x0
	ldr	w0, [x21, #24]
	ldr	w1, [x26]
	bl	_hb_get_work
	mov	x25, x0
	mov	w0, #24
	mov	w1, #1
	bl	_calloc
	str	x0, [x25, #16]
	stp	x22, x21, [x0, #8]
	ldr	w8, [x22, #8]
	str	w8, [x0, #4]
	ldp	w1, w8, [x24]
	str	w8, [x25, #12]
	mov	x0, x22
	mov	w2, #1
	bl	_add_mux_track
	ldr	w0, [x20]
	mov	x1, x25
	bl	_hb_list_add
	add	w23, w23, #1
	ldr	w0, [x21, #32]
	bl	_hb_list_count
	cmp	w23, w0
	b.lt	LBB0_9
LBB0_10:
	ldr	w0, [x21, #28]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.11:
	mov	w23, #0
Lloh6:
	adrp	x27, _PASSTHRUSUB@GOTPAGE
Lloh7:
	ldr	x27, [x27, _PASSTHRUSUB@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w23, w23, #1
	ldr	w0, [x21, #28]
	bl	_hb_list_count
	cmp	w23, w0
	b.ge	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #28]
	mov	x1, x23
	bl	_hb_list_item
	ldr	x8, [x0, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x24, x0
	ldr	w0, [x21, #24]
	ldr	w1, [x26]
	bl	_hb_get_work
	mov	x25, x0
	mov	w0, #24
	mov	w1, #1
	bl	_calloc
	str	x0, [x25, #16]
	stp	x22, x21, [x0, #8]
	ldr	w8, [x22, #8]
	str	w8, [x0, #4]
	ldp	w1, w8, [x24]
	str	w8, [x25, #12]
	mov	x0, x22
	mov	w2, #0
	bl	_add_mux_track
	ldr	w0, [x20]
	mov	x1, x25
	bl	_hb_list_add
	b	LBB0_12
LBB0_15:
	ldr	w0, [x20]
	bl	_hb_list_count
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.16:
	mov	w21, #0
Lloh8:
	adrp	x23, _hb_work_loop@GOTPAGE
Lloh9:
	ldr	x23, [x23, _hb_work_loop@GOTPAGEOFF]
Lloh10:
	adrp	x24, _HB_LOW_PRIORITY@GOTPAGE
Lloh11:
	ldr	x24, [x24, _HB_LOW_PRIORITY@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	mov	x1, x21
	bl	_hb_list_item
	mov	x22, x0
	ldr	w8, [x19, #8]
	str	w8, [x0, #8]
	ldr	w0, [x0]
	ldr	w1, [x23]
	ldr	w3, [x24]
	mov	x2, x22
	bl	_hb_thread_init
	str	w0, [x22, #4]
	add	w21, w21, #1
	ldr	w0, [x20]
	bl	_hb_list_count
	cmp	w21, w0
	b.lt	LBB0_17
LBB0_18:
	mov	w0, #0
	b	LBB0_20
LBB0_19:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	mov	x0, x22
	bl	_free
Lloh14:
	adrp	x8, _HB_ERROR_INIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HB_ERROR_INIT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x21, #64]
	str	w8, [x9]
	ldr	x8, [x21, #16]
	mov	w9, #1
	str	w9, [x8]
	mov	w0, #-1
LBB0_20:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_PASS_ENCODE,8,3             ; @HB_PASS_ENCODE
	.comm	_HB_PASS_ENCODE_2ND,8,3         ; @HB_PASS_ENCODE_2ND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No muxer selected, exiting"

	.comm	_HB_ERROR_INIT,4,2              ; @HB_ERROR_INIT
	.comm	_WORK_MUX,4,2                   ; @WORK_MUX
	.comm	_PASSTHRUSUB,8,3                ; @PASSTHRUSUB
	.comm	_hb_work_loop,4,2               ; @hb_work_loop
	.comm	_HB_LOW_PRIORITY,4,2            ; @HB_LOW_PRIORITY
	.no_dead_strip	_muxInit
.subsections_via_symbols
