	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_ebml_sint
_put_ebml_sint:                         ## @put_ebml_sint
	.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
	movq	%rdi, %r15
	movl	%edx, %eax
	sarl	$31, %eax
	xorl	%edx, %eax
	addl	%eax, %eax
	movl	$1, %ebx
	cmpl	$256, %eax                      ## imm = 0x100
	jb	LBB0_3
## %bb.1:
	movl	$1, %ebx
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	sarl	$8, %ecx
	incl	%ebx
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movl	%ecx, %eax
	ja	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_put_ebml_id
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_put_ebml_num
	movl	%ebx, %r12d
	incl	%r12d
	leal	-8(,%rbx,8), %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %esi
	movl	%ebx, %ecx
	sarl	%cl, %esi
	movq	%r15, %rdi
	callq	_avio_w8
	decl	%r12d
	addl	$-8, %ebx
	cmpl	$1, %r12d
	jg	LBB0_4
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_put_ebml_sint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_ebml_sint
_put_ebml_sint:                         ; @put_ebml_sint
	.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	x20, x0
	eor	w8, w2, w2, asr #31
	lsl	w8, w8, #1
	mov	w21, #1
	cmp	w8, #256
	b.lo	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w8, #16
	asr	w8, w8, #8
	add	w21, w21, #1
	cbnz	w9, LBB0_1
LBB0_2:
	mov	x0, x20
	bl	_put_ebml_id
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_put_ebml_num
	add	w22, w21, #1
	lsl	w8, w21, #3
	sub	w21, w8, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	asr	w1, w19, w21
	mov	x0, x20
	bl	_avio_w8
	sub	w22, w22, #1
	sub	w21, w21, #8
	cmp	w22, #1
	b.gt	LBB0_3
; %bb.4:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_put_ebml_sint
.subsections_via_symbols
