	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_ctx_free
_image_ctx_free:                        ## @image_ctx_free
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %rdi
	callq	_av_free
	movq	(%r15), %rax
	movq	_IMAGE_ROLE_ARGB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	cmpl	$0, 28(%r15)
	jne	LBB0_3
## %bb.2:
	leaq	24(%r15), %rdi
	callq	_av_frame_free
LBB0_3:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.4:
	movl	8(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.5:
	movq	_HUFFMAN_CODES_PER_META_CODE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%r12d
	cmpl	%ecx, %r12d
	jge	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	%r12d, %eax
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	shlq	$2, %rdi
	addq	16(%r15), %rdi
	callq	_ff_free_vlc
	movl	(%r14), %eax
	incq	%rbx
	cmpl	%eax, %ebx
	jl	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r15), %ecx
	jmp	LBB0_10
LBB0_11:
	movq	16(%r15), %rdi
LBB0_12:
	callq	_av_free
LBB0_13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMAGE_ROLE_ARGB,8,3            ## @IMAGE_ROLE_ARGB
	.comm	_HUFFMAN_CODES_PER_META_CODE,4,2 ## @HUFFMAN_CODES_PER_META_CODE
	.no_dead_strip	_image_ctx_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_ctx_free
_image_ctx_free:                        ; @image_ctx_free
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x0, [x0, #32]
	bl	_av_free
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IMAGE_ROLE_ARGB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IMAGE_ROLE_ARGB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_13
LBB0_2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_12
LBB0_3:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.4:
	mov	w20, #0
Lloh3:
	adrp	x21, _HUFFMAN_CODES_PER_META_CODE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HUFFMAN_CODES_PER_META_CODE@GOTPAGEOFF]
	ldr	w8, [x21]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	cmp	w20, w9
	b.ge	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #16]
	mul	w8, w20, w8
	add	x8, x22, w8, sxtw
	add	x0, x9, x8, lsl #2
	bl	_ff_free_vlc
	ldr	w8, [x21]
	add	x22, x22, #1
	cmp	w22, w8
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x19, #8]
	b	LBB0_5
LBB0_10:
	ldr	x0, [x19, #16]
LBB0_11:
	bl	_av_free
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #40
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memset
LBB0_13:
	add	x0, x19, #24
	bl	_av_frame_free
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_3
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IMAGE_ROLE_ARGB,8,3            ; @IMAGE_ROLE_ARGB
	.comm	_HUFFMAN_CODES_PER_META_CODE,4,2 ; @HUFFMAN_CODES_PER_META_CODE
	.no_dead_strip	_image_ctx_free
.subsections_via_symbols
