	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_typecode
_write_typecode:                        ## @write_typecode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	andl	$3, %esi
	movl	4(%rdi), %eax
	movb	$14, %cl
	subb	%al, %cl
	shll	%cl, %esi
	orl	(%rdi), %esi
	movl	%esi, (%rdi)
	addl	$2, %eax
	movl	%eax, 4(%rdi)
	cmpl	$16, %eax
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_bytestream_put_le16
	movl	24(%rbx), %edi
	movq	8(%rbx), %rsi
	movq	16(%rbx), %rdx
	subq	%rsi, %rdx
	callq	_bytestream_put_buffer
	movq	$0, (%rbx)
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_typecode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_typecode
_write_typecode:                        ; @write_typecode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	and	w8, w1, #0x3
	mov	w9, #14
	ldp	w11, w10, [x0]
	sub	w9, w9, w10
	lsl	w8, w8, w9
	orr	w1, w8, w11
	add	w8, w10, #2
	stp	w1, w8, [x0]
	cmp	w8, #16
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_bytestream_put_le16
	ldr	w0, [x19, #24]
	ldp	x1, x8, [x19, #8]
	sub	x2, x8, x1
	bl	_bytestream_put_buffer
	str	xzr, [x19]
	ldr	x8, [x19, #8]
	str	x8, [x19, #16]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_typecode
.subsections_via_symbols
