	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_packetizer_packetize
_pcm_packetizer_packetize:              ## @pcm_packetizer_packetize
	.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	$40, %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, %rbx
	movq	(%rdi), %r12
	movq	8(%r12), %r14
	leaq	4(%r12), %r15
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rax
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_3
LBB0_4:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_bytestream_size
	cmpq	8(%r14), %rax
	jae	LBB0_6
## %bb.5:
	movq	_VC_PACKETIZER_FLAG_FLUSH@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_11
LBB0_6:
	movq	%r15, %rdi
	callq	_bytestream_size
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	callq	_bytestream_size
	movq	8(%r14), %rcx
	cmpq	%rcx, %rax
	cmovbq	%rax, %rcx
	movq	%rcx, 16(%r14)
	leaq	-48(%rbp), %rsi
	leaq	-76(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %r8d
	callq	_bytestream_get_timestamps_and_offset
	movl	-48(%rbp), %esi
	movq	%r12, %rdi
	callq	_vc_container_time_set
	movl	-48(%rbp), %eax
	movq	_VC_CONTAINER_TIME_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.8:
	movq	-72(%rbp), %rax
	movq	24(%r14), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.9:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rsi
	jmp	LBB0_13
LBB0_11:
	movq	_VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPCREL(%rip), %rbx
	jmp	LBB0_28
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
LBB0_13:
	movq	%r12, %rdi
	callq	_vc_container_time_add
LBB0_14:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	$0, 32(%r14)
	movl	$129, (%r14)
	xorl	%eax, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_15:
	movq	16(%r14), %r15
	subq	%rax, %r15
	movq	_VC_CONTAINER_TIME_UNKNOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r13)
	movl	%ecx, 24(%r13)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r13)
	movq	40(%r14), %rsi
	imulq	%r15, %rsi
	movq	_FACTOR_SHIFT@GOTPCREL(%rip), %rdi
	movb	(%rdi), %cl
	shrq	%cl, %rsi
	movq	%rsi, (%r13)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movl	%edx, %ebx
	callq	_vc_container_time_get
	movq	_FACTOR_SHIFT@GOTPCREL(%rip), %rdi
	movl	%ebx, %edx
	movl	%eax, 20(%r13)
	movl	%eax, 24(%r13)
	movq	_VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r13)
LBB0_17:
	movq	_VC_PACKETIZER_FLAG_INFO@GOTPCREL(%rip), %rax
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	testl	%edx, (%rax)
	jne	LBB0_28
## %bb.18:
	movq	_VC_PACKETIZER_FLAG_SKIP@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_20
## %bb.19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_bytestream_skip
	jmp	LBB0_26
LBB0_20:
	movq	%rdi, %r15
	movq	(%r13), %rdi
	movl	12(%r13), %esi
	callq	_MIN
	movq	%rax, (%r13)
	movq	(%r15), %rcx
	shlq	%cl, %rax
	movq	40(%r14), %r8
	movq	%rax, %rdx
	orq	%r8, %rdx
	shrq	$32, %rdx
	je	LBB0_22
## %bb.21:
	xorl	%edx, %edx
	divq	%r8
	movq	%rax, %r15
	jmp	LBB0_23
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %r15d
LBB0_23:
	imulq	%r15, %r8
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %r8
	movq	%r8, (%r13)
	movl	56(%r14), %eax
	movq	_CONVERSION_NONE@GOTPCREL(%rip), %rdx
	movl	8(%r13), %ecx
	cmpl	(%rdx), %eax
	jne	LBB0_25
## %bb.24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ecx, %esi
	movq	%r8, %rdx
	callq	_bytestream_get
	jmp	LBB0_26
LBB0_25:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_convert_pcm
LBB0_26:
	addq	32(%r14), %r15
	movq	%r15, 32(%r14)
	cmpq	16(%r14), %r15
	jne	LBB0_28
## %bb.27:
	movq	48(%r14), %rsi
	movq	%r12, %rdi
	callq	_vc_container_time_add
	movl	$128, (%r14)
LBB0_28:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_PACKETIZER_FLAG_FLUSH,4,2   ## @VC_PACKETIZER_FLAG_FLUSH
	.comm	_VC_CONTAINER_ERROR_INCOMPLETE_DATA,4,2 ## @VC_CONTAINER_ERROR_INCOMPLETE_DATA
	.comm	_VC_CONTAINER_TIME_UNKNOWN,4,2  ## @VC_CONTAINER_TIME_UNKNOWN
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_FACTOR_SHIFT,8,3               ## @FACTOR_SHIFT
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ## @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_PACKETIZER_FLAG_INFO,4,2    ## @VC_PACKETIZER_FLAG_INFO
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_PACKETIZER_FLAG_SKIP,4,2    ## @VC_PACKETIZER_FLAG_SKIP
	.comm	_CONVERSION_NONE,4,2            ## @CONVERSION_NONE
	.no_dead_strip	_pcm_packetizer_packetize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_packetizer_packetize
_pcm_packetizer_packetize:              ; @pcm_packetizer_packetize
	.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	x23, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x0]
	ldr	x25, [x19, #8]
	add	x20, x19, #4
	ldr	w8, [x25]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x25, #32]
	b	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_bytestream_size
	ldr	x8, [x25, #8]
	cmp	x0, x8
	b.hs	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _VC_PACKETIZER_FLAG_FLUSH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_PACKETIZER_FLAG_FLUSH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_15
LBB0_6:
	mov	x0, x20
	bl	_bytestream_size
	cbz	x0, LBB0_15
; %bb.7:
	mov	x0, x20
	bl	_bytestream_size
	ldr	x8, [x25, #8]
	cmp	x0, x8
	csel	x8, x0, x8, lo
	str	x8, [x25, #16]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	w4, #1
	bl	_bytestream_get_timestamps_and_offset
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_vc_container_time_set
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _VC_CONTAINER_TIME_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VC_CONTAINER_TIME_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [sp]
	ldr	x9, [x25, #24]
	udiv	x1, x8, x9
	mov	x0, x19
	bl	_vc_container_time_add
LBB0_9:
	mov	x8, #0
	str	xzr, [x25, #32]
	mov	w9, #129
	str	w9, [x25]
LBB0_10:
	ldr	x9, [x25, #16]
	sub	x24, x9, x8
Lloh6:
	adrp	x9, _VC_CONTAINER_TIME_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VC_CONTAINER_TIME_UNKNOWN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x22, #24]
Lloh9:
	adrp	x10, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGE
Lloh10:
	ldr	x10, [x10, _VC_CONTAINER_PACKET_FLAG_FRAME_END@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w9, [x22, #16]
	ldr	x9, [x25, #40]
	mul	x9, x9, x24
Lloh12:
	adrp	x26, _FACTOR_SHIFT@GOTPAGE
Lloh13:
	ldr	x26, [x26, _FACTOR_SHIFT@GOTPAGEOFF]
	ldr	x10, [x26]
	lsr	x9, x9, x10
	str	x9, [x22]
	cbnz	x8, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_vc_container_time_get
Lloh14:
	adrp	x8, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_PACKET_FLAG_FRAME_START@GOTPAGEOFF]
	stp	w0, w0, [x22, #20]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	orr	w8, w9, w8
	str	w8, [x22, #16]
LBB0_12:
Lloh17:
	adrp	x8, _VC_PACKETIZER_FLAG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VC_PACKETIZER_FLAG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_21
; %bb.13:
Lloh20:
	adrp	x8, _VC_PACKETIZER_FLAG_SKIP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VC_PACKETIZER_FLAG_SKIP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_16
; %bb.14:
	mov	x0, x20
	mov	x1, x24
	bl	_bytestream_skip
	b	LBB0_19
LBB0_15:
Lloh23:
	adrp	x8, _VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_INCOMPLETE_DATA@GOTPAGEOFF]
	b	LBB0_22
LBB0_16:
	ldr	x0, [x22]
	ldr	w1, [x22, #12]
	bl	_MIN
	str	x0, [x22]
	ldr	x8, [x26]
	lsl	x9, x0, x8
	ldr	x10, [x25, #40]
	udiv	x24, x9, x10
	mul	x9, x24, x10
	lsr	x2, x9, x8
	str	x2, [x22]
	ldr	w8, [x25, #56]
Lloh25:
	adrp	x9, _CONVERSION_NONE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CONVERSION_NONE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	ldr	w3, [x22, #8]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x3
	bl	_bytestream_get
	b	LBB0_19
LBB0_18:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_convert_pcm
LBB0_19:
	ldr	x8, [x25, #32]
	ldr	x9, [x25, #16]
	add	x8, x8, x24
	cmp	x8, x9
	str	x8, [x25, #32]
	b.ne	LBB0_21
; %bb.20:
	ldr	x1, [x25, #48]
	mov	x0, x19
	bl	_vc_container_time_add
	mov	w8, #128
	str	w8, [x25]
LBB0_21:
Lloh28:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_PACKETIZER_FLAG_FLUSH,4,2   ; @VC_PACKETIZER_FLAG_FLUSH
	.comm	_VC_CONTAINER_ERROR_INCOMPLETE_DATA,4,2 ; @VC_CONTAINER_ERROR_INCOMPLETE_DATA
	.comm	_VC_CONTAINER_TIME_UNKNOWN,4,2  ; @VC_CONTAINER_TIME_UNKNOWN
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_END,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_END
	.comm	_FACTOR_SHIFT,8,3               ; @FACTOR_SHIFT
	.comm	_VC_CONTAINER_PACKET_FLAG_FRAME_START,4,2 ; @VC_CONTAINER_PACKET_FLAG_FRAME_START
	.comm	_VC_PACKETIZER_FLAG_INFO,4,2    ; @VC_PACKETIZER_FLAG_INFO
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_PACKETIZER_FLAG_SKIP,4,2    ; @VC_PACKETIZER_FLAG_SKIP
	.comm	_CONVERSION_NONE,4,2            ; @CONVERSION_NONE
	.no_dead_strip	_pcm_packetizer_packetize
.subsections_via_symbols
