	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prompeg_create_bitstring
_prompeg_create_bitstring:              ## @prompeg_create_bitstring
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$12, %edx
	jl	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	movl	$192, %eax
	andl	(%rsi), %eax
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	movl	4(%r14), %eax
	andl	$127, %eax
	cmpl	$33, %eax
	jne	LBB0_3
## %bb.6:
	movq	(%rbx), %r13
	cmpl	%edx, (%r13)
	jne	LBB0_7
## %bb.8:
	movq	%rcx, %r12
	movl	8(%r13), %edi
	callq	_av_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r15
	movl	(%r14), %eax
	andl	$63, %eax
	movl	%eax, (%r15)
	movl	4(%r14), %eax
	movl	%eax, 4(%r15)
	movl	16(%r14), %eax
	movl	%eax, 8(%r15)
	movl	20(%r14), %eax
	movl	%eax, 12(%r15)
	movl	24(%r14), %eax
	movl	%eax, 16(%r15)
	movl	28(%r14), %eax
	movl	%eax, 20(%r15)
	leaq	24(%r15), %rdi
	movl	4(%r13), %esi
	callq	_AV_WB16
	addq	$32, %r15
	addq	$48, %r14
	movl	4(%r13), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_4:
	movq	%rbx, %rdi
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_7:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_4
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported stream format (expected MPEG-TS over RTP)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"The RTP packet size must be constant (set pkt_size)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate the bitstring buffer\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_prompeg_create_bitstring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prompeg_create_bitstring
_prompeg_create_bitstring:              ; @prompeg_create_bitstring
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	cmp	w2, #12
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	and	w8, w8, #0xc0
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19, #4]
	and	w8, w8, #0x7f
	cmp	w8, #33
	b.ne	LBB0_6
; %bb.3:
	ldr	x23, [x20]
	ldr	w8, [x23]
	cmp	w8, w2
	b.ne	LBB0_9
; %bb.4:
	mov	x21, x3
	ldr	w0, [x23, #8]
	bl	_av_malloc
	str	x0, [x21]
	cbz	x0, LBB0_10
; %bb.5:
	mov	x22, x0
	ldr	w8, [x19]
	and	w8, w8, #0x3f
	str	w8, [x0]
	ldr	w8, [x19, #4]
	str	w8, [x0, #4]
	ldr	w8, [x19, #16]
	str	w8, [x0, #8]
	ldr	w8, [x19, #20]
	str	w8, [x0, #12]
	ldr	w8, [x19, #24]
	str	w8, [x0, #16]
	ldr	w8, [x19, #28]
	str	w8, [x0, #20]
	add	x0, x0, #24
	ldr	w1, [x23, #4]
	bl	_AV_WB16
	add	x0, x22, #32
	add	x1, x19, #48
	ldr	w2, [x23, #4]
	bl	_memcpy
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x20
	bl	_av_log
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_9:
Lloh7:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_10:
Lloh12:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported stream format (expected MPEG-TS over RTP)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"The RTP packet size must be constant (set pkt_size)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate the bitstring buffer\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_prompeg_create_bitstring
.subsections_via_symbols
