	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_mb_info
_update_mb_info:                        ## @update_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	24(%rdi), %r15
	movq	%r15, %rdi
	callq	_put_bits_count
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	shll	$3, %edx
	subl	%edx, %eax
	shll	$3, %ecx
	cmpl	%ecx, %eax
	jl	LBB0_3
## %bb.2:
	addq	$12, 16(%rbx)
	movl	8(%rbx), %eax
	movl	%eax, 4(%rbx)
LBB0_3:
	movq	%r15, %rdi
	callq	_put_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	movl	%ecx, 4(%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%ecx, 8(%rbx)
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
## %bb.7:
	movq	$12, 16(%rbx)
LBB0_8:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_mb_info                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_update_mb_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_mb_info
_update_mb_info:                        ; @update_mb_info
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #24
	mov	x0, x21
	bl	_put_bits_count
	ldp	w9, w8, [x19]
	sub	w8, w0, w8, lsl #3
	cmp	w8, w9, lsl #3
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	add	x8, x8, #12
	str	x8, [x19, #16]
	ldr	w8, [x19, #8]
	str	w8, [x19, #4]
LBB0_3:
	mov	x0, x21
	bl	_put_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w8, w8, #3
	cbz	w20, LBB0_6
; %bb.4:
	str	w8, [x19, #4]
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:
	str	w8, [x19, #8]
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_8
; %bb.7:
	mov	w8, #12
	str	x8, [x19, #16]
LBB0_8:
	mov	x0, x19
	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	_write_mb_info
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_update_mb_info
.subsections_via_symbols
