	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmv2_add_block
_wmv2_add_block:                        ## @wmv2_add_block
	.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	24(%rdi), %rax
	movslq	%r8d, %rbx
	cmpq	$0, (%rax,%rbx,8)
	js	LBB0_9
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rdx
	movq	(%rdi), %rax
	movl	(%rax,%rbx,4), %eax
	cmpl	$2, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	16(%rdi), %rax
	movq	%r15, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rdi, %r12
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ff_simple_idct48_add
	addq	$16, %r15
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ff_simple_idct48_add
	jmp	LBB0_7
LBB0_5:
	movq	%rdi, %r12
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ff_simple_idct84_add
	leal	(,%r14,4), %eax
	cltq
	leaq	(%r15,%rax,4), %rdi
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdx
	movl	%r14d, %esi
	callq	_ff_simple_idct84_add
LBB0_7:
	movq	%r12, %rcx
	movq	8(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*40(%rcx)                       ## TAILCALL
LBB0_8:
	movl	32(%rdi), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal error in WMV2 abt\n"

	.no_dead_strip	_wmv2_add_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmv2_add_block
_wmv2_add_block:                        ; @wmv2_add_block
	.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
                                        ; kill: def $w4 killed $w4 def $x4
	ldr	x8, [x0, #24]
	ldr	x8, [x8, w4, sxtw #3]
	tbnz	x8, #63, LBB0_5
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x2, x1
	mov	x19, x0
	sxtw	x22, w4
	ldr	x8, [x0]
	ldr	w8, [x8, x22, lsl #2]
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.3:
	cbnz	w8, LBB0_9
; %bb.4:
	ldr	x3, [x19, #16]
	mov	x0, x21
	mov	x1, x20
	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
	br	x3
LBB0_5:
	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
	ret
LBB0_6:
	mov	x0, x21
	mov	x1, x20
	bl	_ff_simple_idct48_add
	add	x0, x21, #16
	ldr	x8, [x19, #8]
	lsl	x21, x22, #3
	ldr	x2, [x8, x21]
	mov	x1, x20
	bl	_ff_simple_idct48_add
	b	LBB0_8
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_ff_simple_idct84_add
	lsl	w8, w20, #2
	add	x0, x21, w8, sxtw #2
	ldr	x8, [x19, #8]
	lsl	x21, x22, #3
	ldr	x2, [x8, x21]
	mov	x1, x20
	bl	_ff_simple_idct84_add
LBB0_8:
	ldr	x1, [x19, #40]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x21]
	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
	br	x1
LBB0_9:
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	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	_av_log
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal error in WMV2 abt\n"

	.no_dead_strip	_wmv2_add_block
.subsections_via_symbols
