	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_poc
_get_poc:                               ## @get_poc
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	xorl	%ebx, %ebx
	cmpl	$258, %r15d                     ## imm = 0x102
	setge	%r13b
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_bytestream2_get_bytes_left
	cmpl	$5, %eax
	jl	LBB0_13
## %bb.1:
	movb	%r13b, %bl
	leal	(%rbx,%rbx), %eax
	addl	$9, %eax
	cmpl	%r12d, %eax
	jg	LBB0_13
## %bb.2:
	cmpl	$258, %r15d                     ## imm = 0x102
	jge	LBB0_5
## %bb.3:
	leal	-2(%r12), %eax
	cltq
	imulq	$-1840700269, %rax, %rax        ## imm = 0x92492493
	shrq	$32, %rax
	leal	(%rax,%r12), %r15d
	addl	$-2, %r15d
	movl	%r15d, %eax
	shrl	$31, %eax
	sarl	$2, %r15d
	addl	%eax, %r15d
	movq	_MAX_POCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r15d
	jle	LBB0_7
## %bb.4:
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_avpriv_request_sample
	jmp	LBB0_6
LBB0_5:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_avpriv_request_sample
LBB0_6:
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_7:
	cmpl	$9, %r12d
	jge	LBB0_17
## %bb.8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	cmpq	$0, 8(%rbx)
	je	LBB0_12
LBB0_10:
	movl	%r15d, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 4(%rbx)
	movups	%xmm0, 16(%rbx)
LBB0_11:
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_12:
	leal	(%rdi,%r15), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_16
LBB0_13:
	movl	4(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	shlq	$5, %rdi
	addq	16(%rbx), %rdi
	movl	%r15d, %edx
	shll	$5, %edx
	xorl	%esi, %esi
	callq	_memcpy
	addl	%r15d, (%rbx)
	jmp	LBB0_11
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bytestream2_get_byteu
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Insufficient space for POC\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"Fat POC not supported"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_MAX_POCS,4,2                   ## @MAX_POCS
L_.str.2:                               ## @.str.2
	.asciz	"Too many POCs (%d)"

	.no_dead_strip	_get_poc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_poc
_get_poc:                               ; @get_poc
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x21, x0
	ldr	w23, [x21], #8
	mov	x0, x21
	bl	_bytestream2_get_bytes_left
	mov	w8, #11
	mov	w9, #9
	cmp	w23, #258
	csel	w8, w9, w8, lt
	cmp	w0, #5
	ccmp	w8, w22, #0, ge
	b.le	LBB0_2
LBB0_1:
	ldr	w0, [x20, #4]
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
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_2:
	cmp	w23, #258
	b.ge	LBB0_5
; %bb.3:
	sub	w8, w22, #2
	mov	w9, #9363
	movk	w9, #37449, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #2
	add	w23, w9, w8, lsr #31
Lloh8:
	adrp	x8, _MAX_POCS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_POCS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w23, w8
	b.le	LBB0_7
; %bb.4:
	ldr	w0, [x20, #4]
	str	x23, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20, #4]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_avpriv_request_sample
Lloh15:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_7:
	cmp	w22, #9
	b.ge	LBB0_15
; %bb.8:
	ldrsw	x9, [x19]
	cbz	w9, LBB0_10
; %bb.9:
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_13
LBB0_10:
	str	w23, [x19]
	stur	xzr, [x19, #4]
	stur	xzr, [x19, #20]
	stur	xzr, [x19, #12]
	str	wzr, [x19, #28]
LBB0_11:
	mov	w0, #0
	str	xzr, [x19, #8]
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
LBB0_13:
	add	w10, w9, w23
	cmp	w10, w8
	b.gt	LBB0_1
; %bb.14:
	ldr	x8, [x19, #16]
	add	x0, x8, x9, lsl #5
	lsl	w2, w23, #5
	mov	x1, #0
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, w23
	str	w8, [x19]
	b	LBB0_11
LBB0_15:
	mov	x0, x21
	bl	_bytestream2_get_byteu
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Insufficient space for POC\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"Fat POC not supported"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_MAX_POCS,4,2                   ; @MAX_POCS
l_.str.2:                               ; @.str.2
	.asciz	"Too many POCs (%d)"

	.no_dead_strip	_get_poc
.subsections_via_symbols
