	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_bump_frame             ## -- Begin function ff_hevc_bump_frame
	.p2align	4, 0x90
_ff_hevc_bump_frame:                    ## @ff_hevc_bump_frame
	.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, %r15
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	16(%rdi), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	movl	$16, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r13
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	cmpl	$0, -16(%rdi,%rbx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%rdi,%rbx), %rax
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi,%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	8(%r15), %rax
	setne	%cl
	addl	%ecx, %r12d
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
LBB0_7:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	cmpl	-4(%rcx,%rax,4), %r12d
	jl	LBB0_24
## %bb.9:
	movq	16(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_17
## %bb.10:
	movl	$16, %ebx
	xorl	%r12d, %r12d
	movq	_HEVC_FRAME_FLAG_OUTPUT@GOTPCREL(%rip), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpl	(%r13), %eax
	cmovnel	%r14d, %edx
	cmpq	8(%r15), %rcx
	cmovnel	%edx, %r14d
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r12
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r12
	jge	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movl	-16(%rdi,%rbx), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-8(%rdi,%rbx), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rdi,%rbx), %rcx
	movslq	%r14d, %rsi
	movl	%ecx, %edx
	cmpq	%rsi, %rcx
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%r14d, %edx
	jmp	LBB0_15
LBB0_17:
	movq	16(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_24
## %bb.18:
	movslq	%r14d, %r14
	xorl	%ebx, %ebx
	movq	_HEVC_FRAME_FLAG_OUTPUT@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%r13
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r13
	jge	LBB0_24
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	movl	(%rdi,%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%rdi,%rbx), %rcx
	cmpq	(%r15), %rcx
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpq	%r14, 16(%rdi,%rbx)
	jg	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_HEVC_FRAME_FLAG_BUMPING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rdi,%rbx)
	jmp	LBB0_23
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_HEVC_FRAME_FLAG_OUTPUT,4,2     ## @HEVC_FRAME_FLAG_OUTPUT
	.comm	_HEVC_FRAME_FLAG_BUMPING,4,2    ## @HEVC_FRAME_FLAG_BUMPING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_bump_frame             ; -- Begin function ff_hevc_bump_frame
	.p2align	2
_ff_hevc_bump_frame:                    ; @ff_hevc_bump_frame
	.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	x19, x0
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x0, [x0, #16]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x23, #0
	mov	w21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	bl	_FF_ARRAY_ELEMS
	add	x22, x22, #24
	cmp	x23, w0, sxtw
	b.ge	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	ldr	w8, [x0, x22]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x0, x22
	ldr	x9, [x8, #8]
	ldr	x10, [x19]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8, #16]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	cinc	w21, w21, ne
	b	LBB0_2
LBB0_6:
	mov	w21, #0
LBB0_7:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_22
; %bb.8:
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w21, w8
	b.lt	LBB0_22
; %bb.9:
	ldr	x0, [x19, #16]
	bl	_FF_ARRAY_ELEMS
Lloh3:
	adrp	x21, _HEVC_FRAME_FLAG_OUTPUT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HEVC_FRAME_FLAG_OUTPUT@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	bl	_FF_ARRAY_ELEMS
	add	x22, x22, #24
	cmp	x23, w0, sxtw
	b.ge	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	ldr	w8, [x0, x22]
	cbz	w8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x0, x22
	ldr	x10, [x9, #8]
	ldr	x11, [x19]
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x9, #16]
	ldr	x10, [x19, #8]
	ldr	w11, [x21]
	cmp	x9, w20, sxtw
	ccmp	w8, w11, #0, lt
	ccmp	x9, x10, #4, eq
	csel	w20, w9, w20, ne
	b	LBB0_11
LBB0_15:
	ldr	x0, [x19, #16]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_22
; %bb.16:
	mov	x22, #0
	mov	x23, #0
	sxtw	x20, w20
Lloh5:
	adrp	x24, _HEVC_FRAME_FLAG_BUMPING@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HEVC_FRAME_FLAG_BUMPING@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x23, x23, #1
	bl	_FF_ARRAY_ELEMS
	add	x22, x22, #24
	cmp	x23, w0, sxtw
	b.ge	LBB0_22
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	ldr	w8, [x0, x22]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x9, x0, x22
	ldr	x10, [x9, #8]
	ldr	x11, [x19]
	cmp	x10, x11
	b.ne	LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x9, [x9, #16]
	cmp	x9, x20
	b.gt	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x0, x22]
	b	LBB0_17
LBB0_22:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_HEVC_FRAME_FLAG_OUTPUT,4,2     ; @HEVC_FRAME_FLAG_OUTPUT
	.comm	_HEVC_FRAME_FLAG_BUMPING,4,2    ; @HEVC_FRAME_FLAG_BUMPING
.subsections_via_symbols
