	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_wmv2_add_mb                 ## -- Begin function ff_wmv2_add_mb
	.p2align	4, 0x90
_ff_wmv2_add_mb:                        ## @ff_wmv2_add_mb
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	xorl	%r8d, %r8d
	callq	_wmv2_add_block
	leaq	256(%r15), %rsi
	leaq	32(%r13), %rdx
	movl	(%rbx), %ecx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_wmv2_add_block
	leaq	512(%r15), %rsi
	movslq	(%rbx), %rcx
	movq	%rcx, %rdx
	shlq	$5, %rdx
	addq	%r13, %rdx
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$2, %r8d
	callq	_wmv2_add_block
	leaq	768(%r15), %rsi
	movslq	(%rbx), %rcx
	movq	%rcx, %rax
	shlq	$5, %rax
	leaq	(%rax,%r13), %rdx
	addq	$32, %rdx
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$3, %r8d
	callq	_wmv2_add_block
	movq	8(%rbx), %rax
	movq	_AV_CODEC_FLAG_GRAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	1024(%r15), %rsi
	movl	4(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	$4, %r8d
	callq	_wmv2_add_block
	addq	$1280, %r15                     ## imm = 0x500
	movl	4(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	$5, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmv2_add_block                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ## @AV_CODEC_FLAG_GRAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_wmv2_add_mb                 ; -- Begin function ff_wmv2_add_mb
	.p2align	2
_ff_wmv2_add_mb:                        ; @ff_wmv2_add_mb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w3, [x0]
	mov	w4, #0
	bl	_wmv2_add_block
	add	x1, x21, #256
	add	x24, x23, #32
	ldr	w3, [x20]
	mov	x0, x20
	mov	x2, x24
	mov	w4, #1
	bl	_wmv2_add_block
	add	x1, x21, #512
	ldrsw	x3, [x20]
	add	x2, x23, x3, lsl #5
	mov	x0, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #2
	bl	_wmv2_add_block
	add	x1, x21, #768
	ldrsw	x3, [x20]
	add	x2, x24, x3, lsl #5
	mov	x0, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	w4, #3
	bl	_wmv2_add_block
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AV_CODEC_FLAG_GRAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_FLAG_GRAY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x1, x21, #1024
	ldr	w3, [x20, #4]
	mov	x0, x20
	mov	x2, x22
	mov	w4, #4
	bl	_wmv2_add_block
	add	x1, x21, #1280
	ldr	w3, [x20, #4]
	mov	x0, x20
	mov	x2, x19
	mov	w4, #5
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wmv2_add_block
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_FLAG_GRAY,4,2         ; @AV_CODEC_FLAG_GRAY
.subsections_via_symbols
