	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aom_decode
_aom_decode:                            ## @aom_decode
	.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	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movq	$0, -56(%rbp)
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_aom_codec_decode
	movq	_AOM_CODEC_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_aom_codec_get_frame
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	movq	%rax, %rbx
	movl	(%rax), %ecx
	movl	4(%rax), %r9d
	movq	8(%rax), %r8
	movq	16(%rax), %rax
	cmpl	%r9d, %ecx
	jg	LBB0_10
## %bb.3:
	cmpq	%rax, %r8
	jg	LBB0_10
## %bb.4:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_set_pix_fmt
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	(%rbx), %r9d
	movl	(%r14), %ecx
	cmpl	%ecx, %r9d
	jne	LBB0_12
## %bb.6:
	movq	8(%rbx), %rax
	movl	4(%r14), %r8d
	cmpl	%eax, %r8d
	jne	LBB0_13
	jmp	LBB0_14
LBB0_7:
	movq	%rbx, %rdi
	callq	_aom_codec_error
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_aom_codec_error_detail
	movq	%rax, %rbx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_av_log
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_av_log
LBB0_9:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_21
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_EXTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_21
LBB0_11:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %r8d
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_21
LBB0_12:
	movl	4(%r14), %r8d
	movq	8(%rbx), %rax
LBB0_13:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	%rax, (%rsp)
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	(%rbx), %esi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_ff_set_dimensions
	testl	%eax, %eax
	js	LBB0_23
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_23
## %bb.15:
	movq	_AOM_IMG_FMT_HIGHBITDEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%rbx)
	je	LBB0_18
## %bb.16:
	cmpl	$8, 28(%rbx)
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_image_copy_16_to_8
	jmp	LBB0_19
LBB0_23:
	movl	%eax, %r15d
	jmp	LBB0_21
LBB0_18:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movq	40(%rbx), %rdx
	movl	32(%rbx), %ecx
	movl	8(%r14), %r8d
	movl	(%rbx), %r9d
	movl	8(%rbx), %eax
	movl	%eax, (%rsp)
	callq	_av_image_copy
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_20:
	movl	(%r13), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AOM_CODEC_OK,8,3               ## @AOM_CODEC_OK
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to decode frame: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"  Additional information: %s\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"Display dimensions %dx%d exceed storage %dx%d\n"

	.comm	_AVERROR_EXTERNAL,4,2           ## @AVERROR_EXTERNAL
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported output colorspace (%d) / bit_depth (%d)\n"

	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.4:                               ## @.str.4
	.asciz	"dimension change! %dx%d -> %dx%d\n"

	.comm	_AOM_IMG_FMT_HIGHBITDEPTH,4,2   ## @AOM_IMG_FMT_HIGHBITDEPTH
	.no_dead_strip	_aom_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aom_decode
_aom_decode:                            ; @aom_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	str	xzr, [sp, #40]
	ldp	w2, w1, [x3]
	mov	x0, x23
	mov	x3, #0
	bl	_aom_codec_decode
Lloh0:
	adrp	x8, _AOM_CODEC_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AOM_CODEC_OK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	add	x1, sp, #40
	mov	x0, x23
	bl	_aom_codec_get_frame
	cbz	x0, LBB0_20
; %bb.2:
	mov	x23, x0
	ldp	w8, w10, [x0]
	ldp	x9, x11, [x0, #8]
	cmp	w8, w10
	ccmp	x9, x11, #0, le
	b.le	LBB0_7
; %bb.3:
Lloh3:
	adrp	x12, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x12, [x12, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x12]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_EXTERNAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_EXTERNAL@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	b	LBB0_21
LBB0_4:
	mov	x0, x23
	bl	_aom_codec_error
	mov	x21, x0
	mov	x0, x23
	bl	_aom_codec_error_detail
	mov	x20, x0
Lloh11:
	adrp	x22, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x22, [x22, _AV_LOG_ERROR@GOTPAGEOFF]
	ldr	w1, [x22]
	str	x21, [sp]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	cbz	x20, LBB0_6
; %bb.5:
	ldr	w1, [x22]
	str	x20, [sp]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_6:
Lloh17:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
	b	LBB0_21
LBB0_7:
	mov	x0, x19
	mov	x1, x23
	bl	_set_pix_fmt
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	w9, [x23]
	ldr	w8, [x19]
	cmp	w9, w8
	b.ne	LBB0_11
; %bb.9:
	ldr	x11, [x23, #8]
	ldr	w10, [x19, #4]
	cmp	w10, w11
	b.ne	LBB0_12
	b	LBB0_13
LBB0_10:
	mov	x24, x0
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldp	w8, w9, [x23, #24]
	stp	x8, x9, [sp]
Lloh23:
	adrp	x2, l_.str.3@PAGE
Lloh24:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_21
LBB0_11:
	ldr	w10, [x19, #4]
	ldr	x11, [x23, #8]
LBB0_12:
Lloh25:
	adrp	x12, _AV_LOG_INFO@GOTPAGE
Lloh26:
	ldr	x12, [x12, _AV_LOG_INFO@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x12]
	stp	x9, x11, [sp, #16]
	stp	x8, x10, [sp]
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	w1, [x23]
	ldr	w2, [x23, #8]
	mov	x0, x19
	bl	_ff_set_dimensions
	tbnz	w0, #31, LBB0_17
LBB0_13:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_17
; %bb.14:
	ldr	w8, [x23, #24]
Lloh30:
	adrp	x9, _AOM_IMG_FMT_HIGHBITDEPTH@GOTPAGE
Lloh31:
	ldr	x9, [x9, _AOM_IMG_FMT_HIGHBITDEPTH@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.15:
	ldr	w8, [x23, #28]
	cmp	w8, #8
	b.ne	LBB0_18
; %bb.16:
	mov	x0, x22
	mov	x1, x23
	bl	_image_copy_16_to_8
	b	LBB0_19
LBB0_17:
	mov	x24, x0
	b	LBB0_21
LBB0_18:
	ldp	w1, w0, [x22]
	ldr	x2, [x23, #40]
	ldr	w3, [x23, #32]
	ldr	w4, [x19, #8]
	ldr	w5, [x23]
	ldr	w6, [x23, #8]
	bl	_av_image_copy
LBB0_19:
	mov	w8, #1
	str	w8, [x21]
LBB0_20:
	ldr	w24, [x20]
LBB0_21:
	mov	x0, x24
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_AOM_CODEC_OK,8,3               ; @AOM_CODEC_OK
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to decode frame: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"  Additional information: %s\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"Display dimensions %dx%d exceed storage %dx%d\n"

	.comm	_AVERROR_EXTERNAL,4,2           ; @AVERROR_EXTERNAL
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported output colorspace (%d) / bit_depth (%d)\n"

	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.4:                               ; @.str.4
	.asciz	"dimension change! %dx%d -> %dx%d\n"

	.comm	_AOM_IMG_FMT_HIGHBITDEPTH,4,2   ; @AOM_IMG_FMT_HIGHBITDEPTH
	.no_dead_strip	_aom_decode
.subsections_via_symbols
