	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_bits_le
_put_bits_le:                           ## @put_bits_le
	.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, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	cmpl	$32, %esi
	setl	%al
	movl	%r14d, %ecx
	shrl	%cl, %edx
	testl	%edx, %edx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_av_assert2
	movl	4(%r12), %ebx
	movl	%ebx, %ecx
	negb	%cl
	movl	%r15d, %esi
	shll	%cl, %esi
	orl	(%r12), %esi
	cmpl	%r14d, %ebx
	jg	LBB0_5
## %bb.1:
	movl	8(%r12), %eax
	movl	12(%r12), %edi
	subl	%edi, %eax
	cmpl	$4, %eax
	jl	LBB0_3
## %bb.2:
	callq	_AV_WL32
	addl	$4, 12(%r12)
	jmp	LBB0_4
LBB0_3:
	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_4:
	movl	%ebx, %ecx
	shrl	%cl, %r15d
	addl	$32, %ebx
	movl	%r15d, %esi
LBB0_5:
	subl	%r14d, %ebx
	movl	%esi, (%r12)
	movl	%ebx, 4(%r12)
	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_le
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_bits_le
_put_bits_le:                           ; @put_bits_le
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #32
	lsr	w8, w2, w1
	ccmp	w8, #0, #0, lt
	cset	w0, eq
	bl	_av_assert2
	ldp	w8, w22, [x19]
	neg	w9, w22
	lsl	w9, w21, w9
	orr	w1, w9, w8
	cmp	w22, w20
	b.gt	LBB0_5
; %bb.1:
	ldp	w8, w0, [x19, #8]
	sub	w8, w8, w0
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.2:
	bl	_AV_WL32
	ldr	w8, [x19, #12]
	add	w8, w8, #4
	str	w8, [x19, #12]
	b	LBB0_4
LBB0_3:
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_4:
	lsr	w1, w21, w22
	add	w22, w22, #32
LBB0_5:
	sub	w8, w22, w20
	stp	w1, w8, [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
	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_le
.subsections_via_symbols
