	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_mb_info
_write_mb_info:                         ## @write_mb_info
	.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	%rdi, %rbx
	movq	32(%rdi), %rax
	movslq	(%rdi), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	$-48, %rax
	movq	%rax, -64(%rbp)
	addq	$24, %rdi
	callq	_put_bits_count
	movl	%eax, %r12d
	movl	4(%rbx), %ecx
	movl	8(%rbx), %r14d
	movl	12(%rbx), %r15d
	movl	16(%rbx), %r13d
	movq	_CONFIG_H263_ENCODER@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leaq	-52(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ff_h263_pred_motion
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_2:
	movl	%r15d, %eax
	cltd
	idivl	%r13d
	movl	%eax, %r13d
	imull	%edx, %r14d
	addl	%ecx, %r14d
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_bytestream_put_le32
	movl	20(%rbx), %esi
	movq	%r15, %rdi
	callq	_bytestream_put_byte
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_bytestream_put_byte
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bytestream_put_le16
	movl	-52(%rbp), %esi
	movq	%r15, %rdi
	callq	_bytestream_put_byte
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_bytestream_put_byte
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_byte
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bytestream_put_byte
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_H263_ENCODER,8,3        ## @CONFIG_H263_ENCODER
	.no_dead_strip	_write_mb_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_mb_info
_write_mb_info:                         ; @write_mb_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldrsw	x9, [x0]
	add	x8, x8, x9, lsl #2
	sub	x8, x8, #48
	str	x8, [sp, #8]
	add	x0, x0, #24
	bl	_put_bits_count
	mov	x20, x0
	ldp	w22, w23, [x19, #4]
	ldp	w24, w25, [x19, #12]
Lloh0:
	adrp	x8, _CONFIG_H263_ENCODER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_H263_ENCODER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x3, sp, #4
	mov	x4, sp
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ff_h263_pred_motion
LBB0_2:
	sdiv	w21, w24, w25
	msub	w8, w21, w25, w24
	madd	w22, w8, w23, w22
	add	x0, sp, #8
	mov	x1, x20
	bl	_bytestream_put_le32
	ldr	w1, [x19, #20]
	add	x0, sp, #8
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	x1, x21
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	x1, x22
	bl	_bytestream_put_le16
	ldr	w1, [sp, #4]
	add	x0, sp, #8
	bl	_bytestream_put_byte
	ldr	w1, [sp]
	add	x0, sp, #8
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #0
	bl	_bytestream_put_byte
	add	x0, sp, #8
	mov	w1, #0
	bl	_bytestream_put_byte
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_H263_ENCODER,8,3        ; @CONFIG_H263_ENCODER
	.no_dead_strip	_write_mb_info
.subsections_via_symbols
