	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mace_decode_frame
_mace_decode_frame:                     ## @mace_decode_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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rcx), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	8(%rcx), %r12d
	movq	(%rdi), %rcx
	movq	_AV_CODEC_ID_MACE3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	sete	%r14b
	movl	8(%rdi), %esi
	movl	%esi, %edi
	movl	%r14d, %ecx
	shll	%cl, %edi
	movq	16(%r13), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	%r12d, %eax
	cltd
	idivl	%edi
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	callq	_av_log
	movl	8(%r13), %esi
	movl	%esi, %edi
	movl	%r14d, %ecx
	shll	%cl, %edi
	movl	%r12d, %eax
	cltd
	idivl	%edi
	subl	%edx, %r12d
	je	LBB0_2
LBB0_3:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -104(%rbp)                ## 8-byte Folded Reload
	movl	%r12d, %eax
	setne	%r12b
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
                                        ## kill: def $eax killed $eax def $rax
	movl	%r12d, %ecx
	shll	%cl, %eax
	leal	(%rax,%rax,2), %eax
	cltd
	idivl	%esi
	movl	%eax, (%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movl	8(%r13), %edi
	testl	%edi, %edi
	jle	LBB0_16
## %bb.5:
	movq	8(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	leaq	(,%rax,4), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rcx,2), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	shlq	$3, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	movb	%r14b, -41(%rbp)                ## 1-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	%edi, %rax
	movq	%rdx, %rcx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	jge	LBB0_16
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movl	%edi, %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%esi
	testl	%eax, %eax
	jle	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rsi
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	incl	%r8d
	movl	8(%r13), %edi
	movl	%edi, %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%esi
	movq	%r15, %rsi
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r8d
	jge	LBB0_15
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	imull	-52(%rbp), %edi                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %edi
	movl	%r14d, %ecx
	shll	%cl, %edi
	movslq	%edi, %rax
	movq	%rbx, -152(%rbp)                ## 8-byte Spill
	addq	%rbx, %rax
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax,4), %r12d
	movl	%r12d, %r13d
	sarl	$5, %r13d
	movl	%r12d, %r15d
	shrl	$3, %r15d
	andl	$3, %r15d
	andl	$7, %r12d
	leaq	(,%rdx,4), %r14
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -104(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=3
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movq	%rsi, %r12
	callq	_chomp3
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r12,%rax), %rsi
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_chomp3
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, %r15
	leaq	(%r12,%rax), %rsi
	addq	(%rbx), %r14
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	$2, %ecx
	callq	_chomp3
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=3
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movq	%rsi, %r13
	callq	_chomp6
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rsi
	movq	(%rbx), %rdi
	addq	%r14, %rdi
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	_chomp6
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, %r15
	leaq	(%rax,%r13), %rsi
	addq	(%rbx), %r14
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	$2, %ecx
	callq	_chomp6
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-152(%rbp), %rbx                ## 8-byte Reload
	leal	1(%rbx), %eax
	movzbl	-41(%rbp), %r14d                ## 1-byte Folded Reload
	movl	%r14d, %ecx
	shrl	%cl, %eax
	testl	%eax, %eax
	movq	-128(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=3
	movl	8(%r13), %edi
	movq	%r15, %rsi
	addq	-72(%rbp), %rsi                 ## 8-byte Folded Reload
	incq	%rbx
	jmp	LBB0_9
LBB0_16:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	$1, (%rax)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_2:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_MACE3,8,3          ## @AV_CODEC_ID_MACE3
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer size %d is odd\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_mace_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mace_decode_frame
_mace_decode_frame:                     ; @mace_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x22, x1
	mov	x24, x0
	ldr	x8, [x3]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	ldr	w23, [x3, #8]
	ldr	x27, [x0, #16]
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _AV_CODEC_ID_MACE3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_CODEC_ID_MACE3@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x9, [sp, #56]               ; 16-byte Folded Spill
	cmp	x9, x8
	cset	w19, eq
	ldr	w8, [x0, #8]
	lsl	w9, w8, w19
	sdiv	w10, w23, w9
	msub	w9, w10, w9, w23
	cbz	w9, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x3, x23
	bl	_av_log
	ldr	w8, [x24, #8]
	lsl	w9, w8, w19
	sdiv	w10, w23, w9
	mul	w23, w10, w9
	cbz	w23, LBB0_17
LBB0_2:
	ldp	x10, x9, [sp, #56]              ; 16-byte Folded Reload
	cmp	x9, x10
	cset	w20, ne
	lsl	w9, w23, w20
	add	w9, w9, w9, lsl #1
	sdiv	w8, w9, w8
	str	w8, [x22]
	mov	x0, x24
	mov	x1, x22
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_16
; %bb.3:
	str	x21, [sp]                       ; 8-byte Folded Spill
	ldr	w8, [x24, #8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.4:
	mov	x26, #0
	ldr	x9, [x22, #8]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	mov	w9, #1
	lsl	w9, w9, w20
	add	x10, x9, w9, uxtw #1
	lsl	x11, x10, #2
	lsl	x10, x9, #3
	stp	x10, x11, [sp, #32]             ; 16-byte Folded Spill
	lsl	x9, x9, #2
	str	x9, [sp, #24]                   ; 8-byte Folded Spill
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, sxtw
	b.ge	LBB0_15
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	lsl	w9, w8, w19
	sdiv	w9, w23, w9
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [sp, #76]                  ; 4-byte Folded Spill
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x22, [x9, x26, lsl #3]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w11, [sp, #76]                  ; 4-byte Folded Reload
	add	w11, w11, #1
	ldr	w8, [x24, #8]
	lsl	w9, w8, w19
	ldr	w23, [sp, #20]                  ; 4-byte Folded Reload
	sdiv	w9, w23, w9
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	add	x22, x22, x10
	str	w11, [sp, #76]                  ; 4-byte Folded Spill
	cmp	w11, w9
	b.ge	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	mov	x21, x24
	mov	x28, #0
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	madd	w8, w8, w9, w26
	lsl	w8, w8, w19
	add	x8, x28, w8, sxtw
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w8, [x9, x8, lsl #2]
	asr	w23, w8, #5
	ubfx	w24, w8, #3, #2
	and	w25, w8, #0x7
	ldr	x8, [x27]
	add	x0, x8, x26, lsl #2
	lsl	x20, x26, #2
	ldp	x9, x8, [sp, #56]               ; 16-byte Folded Reload
	mov	x1, x22
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=3
	mov	x2, x25
	mov	w3, #0
	bl	_chomp3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x1, x22, x8
	ldr	x8, [x27]
	add	x0, x8, x20
	mov	x2, x24
	mov	w3, #1
	bl	_chomp3
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x1, x22, x8
	ldr	x8, [x27]
	add	x0, x8, x20
	mov	x2, x23
	mov	w3, #2
	bl	_chomp3
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=3
	mov	x2, x23
	mov	w3, #0
	bl	_chomp6
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x1, x22, x8
	ldr	x8, [x27]
	add	x0, x8, x20
	mov	x2, x24
	mov	w3, #1
	bl	_chomp6
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x1, x22, x8
	ldr	x8, [x27]
	add	x0, x8, x20
	mov	x2, x25
	mov	w3, #2
	bl	_chomp6
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=3
	add	w8, w28, #1
	lsr	w8, w8, w19
	mov	x24, x21
	cbnz	w8, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=3
	ldr	w8, [x24, #8]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	add	x22, x22, x9
	add	x28, x28, #1
	b	LBB0_10
LBB0_15:
	mov	w8, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_18
LBB0_16:
	mov	x23, x0
	b	LBB0_18
LBB0_17:
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_MACE3,8,3          ; @AV_CODEC_ID_MACE3
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer size %d is odd\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_mace_decode_frame
.subsections_via_symbols
