	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putspan
_putspan:                               ## @putspan
	.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	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_EncoderState
	movq	%rax, %r14
	movl	(%rax), %r13d
	movl	4(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$2624, %ebx                     ## imm = 0xA40
	jl	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	1236(%r12), %esi
	movl	1240(%r12), %edx
	movq	%r15, %rdi
	callq	__PutBits
	subl	1244(%r12), %ebx
	cmpl	$2623, %ebx                     ## imm = 0xA3F
	jg	LBB0_1
LBB0_2:
	cmpl	$64, %ebx
	jl	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	shrl	$6, %eax
	addl	$63, %eax
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	(%rax,%rax,2), %r13
	movl	%ebx, %eax
	andl	$-64, %eax
	xorl	%edi, %edi
	cmpl	%eax, 8(%r12,%r13,4)
	sete	%dil
	callq	_assert
	movl	(%r12,%r13,4), %esi
	movl	4(%r12,%r13,4), %edx
	movq	%r15, %rdi
	callq	__PutBits
	subl	8(%r12,%r13,4), %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_4:
	movslq	%ebx, %rax
	leaq	(%rax,%rax,2), %rax
	movl	(%r12,%rax,4), %esi
	movl	4(%r12,%rax,4), %edx
	movq	%r15, %rdi
	callq	__PutBits
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r14)
	movl	%r13d, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_putspan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function putspan
_putspan:                               ; @putspan
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_EncoderState
	mov	x19, x0
	ldr	d8, [x0]
	cmp	w22, #2624
	b.lt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #1236]
	ldr	w2, [x21, #1240]
	mov	x0, x20
	bl	__PutBits
	ldr	w8, [x21, #1244]
	sub	w22, w22, w8
	cmp	w22, #2623
	b.gt	LBB0_1
LBB0_2:
	cmp	w22, #64
	b.lt	LBB0_4
; %bb.3:
	lsr	w8, w22, #6
	add	w8, w8, #63
	mov	w9, #12
	umaddl	x23, w8, w9, x21
	ldr	w8, [x23, #8]
	and	w9, w22, #0xffffffc0
	cmp	w8, w9
	cset	w0, eq
	bl	_assert
	ldp	w1, w2, [x23]
	mov	x0, x20
	bl	__PutBits
	ldr	w8, [x23, #8]
	sub	w22, w22, w8
LBB0_4:
	mov	w8, #12
	smaddl	x8, w22, w8, x21
	ldp	w1, w2, [x8]
	mov	x0, x20
	bl	__PutBits
	str	d8, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_putspan
.subsections_via_symbols
