	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_output_frame           ## -- Begin function ff_hevc_output_frame
	.p2align	4, 0x90
_ff_hevc_output_frame:                  ## @ff_hevc_output_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
	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, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_HEVC_FRAME_FLAG_BUMPING@GOTPCREL(%rip), %r12
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	$1, 56(%r15)
	jne	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, (%r15)
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r14
	movq	%rsi, %rdi
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$32, %rbx
	cmpq	%rax, %r14
	jge	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r15), %rsi
	movl	(%r12), %eax
	testl	%eax, (%rsi,%rbx)
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%rsi,%rbx), %rax
	cmpq	8(%r15), %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	16(%rsi,%rbx), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	addq	%rbx, %rsi
	movq	_HEVC_FRAME_FLAG_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ff_hevc_unref_frame
	movq	40(%r15), %rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	40(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	testl	%eax, %eax
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	movl	$16, %r12d
	xorl	%r13d, %r13d
	movq	_HEVC_FRAME_FLAG_OUTPUT@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=2
	incl	%r13d
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r14
	callq	_FF_ARRAY_ELEMS
	cltq
	addq	$32, %r12
	cmpq	%rax, %r14
	jge	LBB0_19
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	40(%r15), %rdi
	movl	(%rbx), %eax
	testl	%eax, -16(%rdi,%r12)
	je	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	(%rdi,%r12), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-8(%rdi,%r12), %rax
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	cmpq	%rcx, %rax
	setl	%cl
	testl	%r13d, %r13d
	sete	%dl
	orb	%cl, %dl
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%r14d, %ecx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
                                        ## kill: def $eax killed $eax killed $rax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	48(%r15), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rax), %rcx
	movslq	(%rax), %rax
	cmpl	-4(%rcx,%rax,4), %r13d
	jle	LBB0_27
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r15), %rax
	cmpq	24(%r15), %rax
	je	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_1 Depth=1
	incl	%eax
	movzbl	%al, %eax
	movq	%rax, 16(%r15)
	movq	_HEVC_FRAME_FLAG_BUMPING@GOTPCREL(%rip), %r12
	jmp	LBB0_1
LBB0_27:
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_24:
	movq	40(%r15), %r13
	movslq	-52(%rbp), %rbx                 ## 4-byte Folded Reload
	shlq	$5, %rbx
	leaq	(%rbx,%r13), %r12
	movl	24(%r13,%rbx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_frame_ref
	movl	%eax, %r14d
	movq	_HEVC_FRAME_FLAG_BUMPING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r13,%rbx), %edx
	andl	%eax, %edx
	cmovnel	%eax, %edx
	movq	_HEVC_FRAME_FLAG_OUTPUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ff_hevc_unref_frame
	testl	%r14d, %r14d
	js	LBB0_28
## %bb.25:
	movl	32(%r15), %edi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13,%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movl	$1, %r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$24, %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_BUMPING,4,2    ## @HEVC_FRAME_FLAG_BUMPING
	.comm	_HEVC_FRAME_FLAG_OUTPUT,4,2     ## @HEVC_FRAME_FLAG_OUTPUT
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Output frame with POC %d.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_output_frame           ; -- Begin function ff_hevc_output_frame
	.p2align	2
_ff_hevc_output_frame:                  ; @ff_hevc_output_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x25, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _INT_MAX@GOTPAGEOFF]
Lloh2:
	adrp	x22, _HEVC_FRAME_FLAG_BUMPING@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HEVC_FRAME_FLAG_BUMPING@GOTPAGEOFF]
Lloh4:
	adrp	x23, _HEVC_FRAME_FLAG_OUTPUT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HEVC_FRAME_FLAG_OUTPUT@GOTPAGEOFF]
                                        ; implicit-def: $w24
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	ldr	w26, [x25]
	ldr	w8, [x19, #56]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19, #40]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, #0
	mov	x27, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x27, x27, #1
	bl	_FF_ARRAY_ELEMS
	add	x20, x20, #32
	cmp	x27, w0, sxtw
	b.ge	LBB0_10
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #40]
	add	x1, x0, x20
	ldr	w8, [x1]
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x1, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x0, x20
	ldr	x8, [x8, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [x23]
	mov	x0, x19
	bl	_ff_hevc_unref_frame
	ldr	x0, [x19, #40]
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19, #40]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, #0
	mov	x20, #0
	mov	w27, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=2
	add	x20, x20, #1
	bl	_FF_ARRAY_ELEMS
	add	x28, x28, #32
	cmp	x20, w0, sxtw
	b.ge	LBB0_17
LBB0_13:                                ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x19, #40]
	ldr	w8, [x0, x28]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x8, x0, x28
	ldr	x9, [x8, #16]
	ldr	x10, [x19, #16]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x8, [x8, #8]
	cmp	x8, w26, sxtw
	ccmp	w27, #0, #4, ge
	add	w27, w27, #1
	csel	w24, w20, w24, eq
	csel	w26, w8, w26, eq
	b	LBB0_12
LBB0_16:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w27, #0
LBB0_17:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w21, LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_1 Depth=1
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w27, w8
	b.le	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w27, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_1 Depth=1
	ldp	x8, x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w8, #1
	and	x8, x8, #0xff
	str	x8, [x19, #16]
	b	LBB0_1
LBB0_24:
	mov	w20, #0
	b	LBB0_27
LBB0_25:
	ldr	x8, [x19, #40]
	sxtw	x9, w24
	add	x21, x8, x9, lsl #5
	ldr	w1, [x21, #24]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_av_frame_ref
	mov	x20, x0
	ldr	w8, [x21]
	ldr	w9, [x22]
	ldr	w10, [x23]
	tst	w9, w8
	csel	w8, wzr, w9, eq
	orr	w2, w10, w8
	mov	x0, x19
	mov	x1, x21
	bl	_ff_hevc_unref_frame
	tbnz	w20, #31, LBB0_27
; %bb.26:
	ldr	w0, [x19, #32]
Lloh6:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w3, [x21, #8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w20, #1
LBB0_27:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_HEVC_FRAME_FLAG_BUMPING,4,2    ; @HEVC_FRAME_FLAG_BUMPING
	.comm	_HEVC_FRAME_FLAG_OUTPUT,4,2     ; @HEVC_FRAME_FLAG_OUTPUT
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Output frame with POC %d.\n"

.subsections_via_symbols
