	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function align_to_next_packet
_align_to_next_packet:                  ## @align_to_next_packet
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_HOLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	(,%r12,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r13, %rdi
	callq	_bd_tell
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$192, %edx
	callq	_memcpy
	leal	-192(%rbx), %eax
	cmpl	$192, %ebx
	cmovll	%ebx, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	768(%r15), %rsi
	leaq	-192(,%r12,4), %r14
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_bd_read
	movl	%eax, %ebx
	cltq
	cmpq	%rax, %r14
	jne	LBB0_7
## %bb.1:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %eax
	leaq	(%r15,%r14,4), %rcx
	addq	$-6144, %rcx                    ## imm = 0xE800
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, %rcx
	addq	$6144, %rcx                     ## imm = 0x1800
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	addq	$-1536, %r14                    ## imm = 0xFA00
	movl	$1536, %ecx                     ## imm = 0x600
	subl	%eax, %ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	addl	$-1536, %eax                    ## imm = 0xFA00
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movl	$1536, %edx                     ## imm = 0x600
	callq	_memcpy
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_bd_read
	movl	%eax, %ebx
	cltq
	addl	-80(%rbp), %r12d                ## 4-byte Folded Reload
	cmpq	%rax, %r14
	jne	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %ebx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movl	$192, %esi
	callq	_have_ts_sync
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	$4, %r14
	decl	%r15d
	decl	%ebx
	testl	%r15d, %r15d
	jg	LBB0_4
	jmp	LBB0_6
LBB0_7:
	sarl	$31, %ebx
	jmp	LBB0_15
LBB0_8:
	movl	-76(%rbp), %r15d                ## 4-byte Reload
	subl	%ebx, %r15d
	addl	$-4, %r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_bd_seek
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_bd_tell
	cmpl	%eax, %r15d
	jle	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	$192, %edx
	callq	_bd_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$192, %eax
	je	LBB0_9
## %bb.13:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_14:
	negl	%ebx
	jmp	LBB0_15
LBB0_11:
	movl	$-1, %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_HOLE,4,2                   ## @MAX_HOLE
	.no_dead_strip	_align_to_next_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function align_to_next_packet
_align_to_next_packet:                  ; @align_to_next_packet
	.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
	sub	sp, sp, #32
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_HOLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_HOLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x24, x8, #2
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x7fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	bl	_bd_tell
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #192
	bl	_memcpy
	sub	w8, w22, #192
	cmp	w22, #191
	csel	w22, w8, w22, gt
	add	x1, x20, #768
	sub	x21, x24, #192
	mov	x0, x19
	mov	x2, x21
	bl	_bd_read
	cmp	x21, w0, sxtw
	b.ne	LBB0_7
; %bb.1:
	stur	w22, [x29, #-100]               ; 4-byte Folded Spill
	mov	w26, #0
	sub	w21, w24, #1536
	add	x8, x20, x24, lsl #2
	mov	x9, #-6144
	add	x8, x8, x9
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	mov	w8, #6144
	add	x22, x20, x8
	sub	x23, x24, #1536
	mov	w8, #1536
	sub	w25, w8, w24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	mov	w2, #1536
	bl	_memcpy
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_bd_read
	add	w26, w26, w25
	cmp	x23, w0, sxtw
	b.ne	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w21, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, x26
	mov	x27, x21
	mov	x24, x20
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	w1, #192
	bl	_have_ts_sync
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x24, x24, #4
	sub	w27, w27, #1
	sub	w28, w28, #1
	cmp	w27, #0
	b.gt	LBB0_5
	b	LBB0_2
LBB0_7:
	asr	w0, w0, #31
	b	LBB0_15
LBB0_8:
	ldur	w8, [x29, #-100]                ; 4-byte Folded Reload
	sub	w8, w8, w28
	sub	w21, w8, #4
	mov	x0, x19
	mov	x1, x21
	bl	_bd_seek
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_bd_tell
	cmp	w21, w0
	b.le	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #192
	bl	_bd_read
	tbnz	w0, #31, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w0, #192
	b.eq	LBB0_9
; %bb.12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
	neg	w0, w28
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	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
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_HOLE,4,2                   ; @MAX_HOLE
	.no_dead_strip	_align_to_next_packet
.subsections_via_symbols
