	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_bits
_put_bits:                              ## @put_bits
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	cmpl	$32, %esi
	setl	%al
	movl	%ebx, %ecx
	shrl	%cl, %edx
	testl	%edx, %edx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_av_assert2
	movl	(%r15), %eax
	movl	4(%r15), %ecx
	movl	%ecx, %r12d
	subl	%ebx, %r12d
	jle	LBB0_2
## %bb.1:
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, %r14d
	jmp	LBB0_6
LBB0_2:
	movl	8(%r15), %edx
	movl	12(%r15), %edi
	subl	%edi, %edx
	cmpl	$4, %edx
	jl	LBB0_4
## %bb.3:
	shll	%cl, %eax
	subl	%ecx, %ebx
	movl	%r14d, %esi
	movl	%ebx, %ecx
	shrl	%cl, %esi
	orl	%eax, %esi
	callq	_AV_WB32
	addl	$4, 12(%r15)
	jmp	LBB0_5
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	xorl	%edi, %edi
	callq	_av_assert2
LBB0_5:
	addl	$32, %r12d
LBB0_6:
	movl	%r14d, (%r15)
	movl	%r12d, 4(%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal error, put_bits buffer too small\n"

	.no_dead_strip	_put_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_bits
_put_bits:                              ; @put_bits
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	cmp	w1, #32
	lsr	w8, w2, w1
	ccmp	w8, #0, #0, lt
	cset	w0, eq
	bl	_av_assert2
	ldp	w8, w9, [x20]
	subs	w22, w9, w21
	b.le	LBB0_2
; %bb.1:
	lsl	w8, w8, w21
	orr	w19, w8, w19
	b	LBB0_6
LBB0_2:
	ldp	w10, w0, [x20, #8]
	sub	w10, w10, w0
	cmp	w10, #4
	b.lt	LBB0_4
; %bb.3:
	lsl	w8, w8, w9
	sub	w9, w21, w9
	lsr	w9, w19, w9
	orr	w1, w9, w8
	bl	_AV_WB32
	ldr	w8, [x20, #12]
	add	w8, w8, #4
	str	w8, [x20, #12]
	b	LBB0_5
LBB0_4:
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
	mov	x0, #0
	bl	_av_log
	mov	w0, #0
	bl	_av_assert2
LBB0_5:
	add	w22, w22, #32
LBB0_6:
	stp	w19, w22, [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
	ret
	.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, put_bits buffer too small\n"

	.no_dead_strip	_put_bits
.subsections_via_symbols
