	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_opus_ts_header
_parse_opus_ts_header:                  ## @parse_opus_ts_header
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	addq	$4, %r12
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bytestream2_init
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_bytestream2_peek_byte
	xorl	%r14d, %r14d
	cmpl	$255, %eax
	jne	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	leaq	-44(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_bytestream2_get_byte
	addl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_bytestream2_peek_byte
	cmpl	$255, %eax
	je	LBB0_2
LBB0_3:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_get_byte
	movl	%eax, %ebx
	testb	$16, %r13b
	je	LBB0_5
## %bb.4:
	leaq	-44(%rbp), %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
LBB0_5:
	testb	$8, %r13b
	je	LBB0_7
## %bb.6:
	leaq	-44(%rbp), %rdi
	movl	$2, %esi
	callq	_bytestream2_skip
LBB0_7:
	addl	%r14d, %ebx
	testb	$4, %r13b
	je	LBB0_9
## %bb.8:
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	callq	_bytestream2_get_byte
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_bytestream2_skip
LBB0_9:
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_tell
	addl	%ebx, %eax
	cmpl	%r15d, %eax
	jle	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	leaq	-44(%rbp), %rdi
	callq	_bytestream2_tell
	cltq
	leaq	(%r12,%rax,4), %rax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_parse_opus_ts_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_opus_ts_header
_parse_opus_ts_header:                  ; @parse_opus_ts_header
	.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, x2
	mov	x20, x1
	add	x19, x0, #4
	add	x0, sp, #12
	mov	x1, x19
	bl	_bytestream2_init
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	mov	x22, x0
	str	wzr, [x20]
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	mov	w24, #0
	cmp	w0, #255
	b.ne	LBB0_3
; %bb.1:
	mov	w24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	add	w24, w0, w24
	add	x0, sp, #12
	bl	_bytestream2_peek_byte
	cmp	w0, #255
	b.eq	LBB0_2
LBB0_3:
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	mov	x23, x0
	tbnz	w22, #4, LBB0_9
; %bb.4:
	tbnz	w22, #3, LBB0_10
LBB0_5:
	add	w23, w23, w24
	tbz	w22, #2, LBB0_7
LBB0_6:
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	mov	x1, x0
	add	x0, sp, #12
	bl	_bytestream2_skip
LBB0_7:
	add	x0, sp, #12
	bl	_bytestream2_tell
	add	w8, w0, w23
	cmp	w8, w21
	b.le	LBB0_11
; %bb.8:
	mov	x0, #0
	b	LBB0_12
LBB0_9:
	add	x0, sp, #12
	mov	w1, #2
	bl	_bytestream2_skip
	tbz	w22, #3, LBB0_5
LBB0_10:
	add	x0, sp, #12
	mov	w1, #2
	bl	_bytestream2_skip
	add	w23, w23, w24
	tbnz	w22, #2, LBB0_6
	b	LBB0_7
LBB0_11:
	str	w23, [x20]
	add	x0, sp, #12
	bl	_bytestream2_tell
	add	x0, x19, w0, sxtw #2
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_parse_opus_ts_header
.subsections_via_symbols
