	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_mous
_decode_mous:                           ## @decode_mous
	.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, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	8(%rdi), %r12
	leaq	20(%r12), %r14
	movq	%r14, %rdi
	callq	_bytestream2_tell
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_bytestream2_skip
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_bytestream2_skip
	movq	%r14, %rdi
	callq	_bytestream2_get_le32
	cmpl	(%r13), %r15d
	ja	LBB0_2
## %bb.1:
	movl	%ebx, %ecx
	cmpl	4(%r13), %ebx
	ja	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movl	%ecx, %eax
	imull	%r15d, %eax
	leal	(%rax,%rax,2), %eax
	cmpl	%eax, %ebx
	jne	LBB0_2
## %bb.4:
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	leaq	12(%r12), %rdi
	leaq	16(%r12), %rsi
	movl	%ebx, %edx
	callq	_av_fast_padded_malloc
	cmpl	$0, 12(%r12)
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_bytestream2_tell
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	-52(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	subl	%eax, %edx
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_decode_zlib
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r14, %rdi
	callq	_bytestream2_tell
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%eax, %esi
	movq	%r14, %rdi
	callq	_bytestream2_skip
	movl	%r15d, (%r12)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_decode_mous
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_mous
_decode_mous:                           ; @decode_mous
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x27, [x0, #8]
	add	x19, x27, #20
	mov	x0, x19
	bl	_bytestream2_tell
	mov	x25, x0
	mov	x0, x19
	mov	w1, #8
	bl	_bytestream2_skip
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x20, x0
	mov	x0, x19
	bl	_bytestream2_get_le32
	mov	x21, x0
	mov	x0, x19
	mov	w1, #12
	bl	_bytestream2_skip
	mov	x0, x19
	bl	_bytestream2_get_le32
	ldr	w8, [x23]
	cmp	w20, w8
	b.hi	LBB0_6
; %bb.1:
	ldr	w8, [x23, #4]
	cmp	w21, w8
	b.hi	LBB0_6
; %bb.2:
	mov	x26, x0
	mul	w8, w20, w21
	add	w8, w8, w8, lsl #1
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.3:
	add	x0, x27, #12
	add	x1, x27, #16
	mov	x2, x26
	bl	_av_fast_padded_malloc
	ldr	w8, [x27, #12]
	cbz	w8, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_bytestream2_tell
	add	w24, w25, w24
	sub	w2, w24, w0
	mov	x0, x23
	mov	x1, x22
	mov	x3, x26
	bl	_decode_zlib
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldp	w1, w0, [x27, #8]
	mov	x2, x26
	bl	_memcpy
	mov	x0, x19
	bl	_bytestream2_tell
	sub	w1, w24, w0
	mov	x0, x19
	bl	_bytestream2_skip
	mov	w0, #0
	stp	w20, w21, [x27]
	b	LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_decode_mous
.subsections_via_symbols
