	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_compute_poc            ## -- Begin function ff_hevc_compute_poc
	.p2align	4, 0x90
_ff_hevc_compute_poc:                   ## @ff_hevc_compute_poc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %r9d
	movl	%edx, %r8d
	movb	(%rdi), %cl
	movl	$1, %edi
	shll	%cl, %edi
	movl	%esi, %eax
	cltd
	idivl	%edi
	subl	%edx, %esi
	movl	%edx, %eax
	subl	%r8d, %eax
	jle	LBB0_3
## %bb.1:
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_2
LBB0_3:
	cmpl	%r8d, %edx
	jge	LBB0_5
## %bb.4:
	movl	%r8d, %eax
	subl	%edx, %eax
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	xorl	%edx, %edx
	cmpl	%ecx, %eax
	cmovgl	%edi, %edx
	subl	%edx, %esi
	jmp	LBB0_5
LBB0_2:
	addl	%edi, %esi
LBB0_5:
	movq	_HEVC_NAL_BLA_W_LP@GOTPCREL(%rip), %rax
	movq	_HEVC_NAL_BLA_W_RADL@GOTPCREL(%rip), %rcx
	movq	_HEVC_NAL_BLA_N_LP@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	cmpl	%r9d, (%rdx)
	cmovel	%edi, %esi
	cmpl	%r9d, (%rcx)
	cmovel	%edi, %esi
	cmpl	%r9d, (%rax)
	cmovel	%edi, %esi
	addl	%r8d, %esi
	movl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEVC_NAL_BLA_W_LP,4,2          ## @HEVC_NAL_BLA_W_LP
	.comm	_HEVC_NAL_BLA_W_RADL,4,2        ## @HEVC_NAL_BLA_W_RADL
	.comm	_HEVC_NAL_BLA_N_LP,4,2          ## @HEVC_NAL_BLA_N_LP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_compute_poc            ; -- Begin function ff_hevc_compute_poc
	.p2align	2
_ff_hevc_compute_poc:                   ; @ff_hevc_compute_poc
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w9, w9, w8
	sdiv	w8, w1, w9
	mul	w8, w8, w9
	sub	w10, w1, w8
	subs	w11, w10, w2
	b.le	LBB0_2
; %bb.1:
	cmp	w9, #0
	cinc	w12, w9, lt
	cmp	w11, w12, asr #1
	b.ge	LBB0_3
LBB0_2:
	sub	w11, w2, w10
	cmp	w9, #0
	cinc	w12, w9, lt
	cmp	w11, w12, asr #1
	csel	w9, w9, wzr, gt
	sub	w9, w8, w9
	cmp	w10, w2
	csel	w8, w8, w9, ge
	b	LBB0_4
LBB0_3:
	add	w8, w8, w9
LBB0_4:
Lloh0:
	adrp	x9, _HEVC_NAL_BLA_W_LP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HEVC_NAL_BLA_W_LP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _HEVC_NAL_BLA_W_RADL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HEVC_NAL_BLA_W_RADL@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _HEVC_NAL_BLA_N_LP@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HEVC_NAL_BLA_N_LP@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w11, w3
	ccmp	w10, w3, #4, ne
	ccmp	w9, w3, #4, ne
	csel	w8, wzr, w8, eq
	add	w0, w8, w2
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HEVC_NAL_BLA_W_LP,4,2          ; @HEVC_NAL_BLA_W_LP
	.comm	_HEVC_NAL_BLA_W_RADL,4,2        ; @HEVC_NAL_BLA_W_RADL
	.comm	_HEVC_NAL_BLA_N_LP,4,2          ; @HEVC_NAL_BLA_N_LP
.subsections_via_symbols
