	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_ebml_num
_put_ebml_num:                          ## @put_ebml_num
	.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
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_ebml_num_size
	movl	%eax, %r12d
	movabsq	$72057594037927935, %rax        ## imm = 0xFFFFFFFFFFFFFF
	xorl	%edi, %edi
	cmpq	%rax, %r13
	setb	%dil
	callq	_av_assert0
	testl	%r15d, %r15d
	cmovel	%r12d, %r15d
	xorl	%edi, %edi
	cmpl	%r12d, %r15d
	setge	%dil
	callq	_av_assert0
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	leal	(,%r15,8), %eax
	subl	%r15d, %eax
	btsq	%rax, %r13
	movl	%r15d, %r15d
	leaq	-8(,%r15,8), %rbx
	incq	%r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	andb	$-8, %cl
	movq	%r13, %rsi
	shrq	%cl, %rsi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_avio_w8
	decq	%r15
	addq	$-8, %rbx
	cmpq	$1, %r15
	ja	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_put_ebml_num
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_ebml_num
_put_ebml_num:                          ; @put_ebml_num
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_ebml_num_size
	mov	x22, x0
	mov	x8, #72057594037927935
	cmp	x20, x8
	cset	w0, lo
	bl	_av_assert0
	cmp	w21, #0
	csel	w23, w22, w21, eq
	cmp	w23, w22
	cset	w0, ge
	bl	_av_assert0
	cmp	w23, #1
	b.lt	LBB0_3
; %bb.1:
	lsl	w8, w23, #3
	sub	w8, w8, w23
	mov	w9, #1
	lsl	x8, x9, x8
	orr	x20, x8, x20
	add	x21, x23, #1
	lsl	x8, x23, #3
	sub	x22, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	x8, x22, #0xfffffff8
	lsr	x1, x20, x8
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_avio_w8
	sub	x21, x21, #1
	sub	x22, x22, #8
	cmp	x21, #1
	b.hi	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_put_ebml_num
.subsections_via_symbols
