	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_bytestream
_write_bytestream:                      ## @write_bytestream
	.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
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r9d
	xorl	%ebx, %ebx
	cmpl	$8, %edx
	jb	LBB0_18
## %bb.3:
	movq	%rsi, %rax
	subq	%rdi, %rax
	cmpq	$32, %rax
	jb	LBB0_18
## %bb.4:
	cmpl	$32, %edx
	jae	LBB0_6
## %bb.5:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_22
LBB0_6:
	movl	%r9d, %ebx
	andl	$-32, %ebx
	leaq	-32(%rbx), %rax
	movq	%rax, %r10
	shrq	$5, %r10
	incq	%r10
	movl	%r10d, %r8d
	andl	$3, %r8d
	cmpq	$96, %rax
	jae	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	andq	$-4, %r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdi,%rax), %xmm0
	movups	16(%rdi,%rax), %xmm1
	movups	%xmm0, (%rsi,%rax)
	movups	%xmm1, 16(%rsi,%rax)
	movups	32(%rdi,%rax), %xmm0
	movups	48(%rdi,%rax), %xmm1
	movups	%xmm0, 32(%rsi,%rax)
	movups	%xmm1, 48(%rsi,%rax)
	movups	64(%rdi,%rax), %xmm0
	movups	80(%rdi,%rax), %xmm1
	movups	%xmm0, 64(%rsi,%rax)
	movups	%xmm1, 80(%rsi,%rax)
	movups	96(%rdi,%rax), %xmm0
	movups	112(%rdi,%rax), %xmm1
	movups	%xmm0, 96(%rsi,%rax)
	movups	%xmm1, 112(%rsi,%rax)
	subq	$-128, %rax
	addq	$-4, %r10
	jne	LBB0_9
LBB0_10:
	testq	%r8, %r8
	je	LBB0_13
## %bb.11:
	leaq	(%rsi,%rax), %r10
	addq	$16, %r10
	leaq	(%rdi,%rax), %r11
	addq	$16, %r11
	shlq	$5, %r8
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%r11,%rax), %xmm0
	movups	(%r11,%rax), %xmm1
	movups	%xmm0, -16(%r10,%rax)
	movups	%xmm1, (%r10,%rax)
	addq	$32, %rax
	cmpq	%rax, %r8
	jne	LBB0_12
LBB0_13:
	cmpq	%r9, %rbx
	je	LBB0_21
## %bb.14:
	testb	$24, %r9b
	je	LBB0_18
LBB0_15:
	movq	%rbx, %rax
	movl	%r9d, %ebx
	andl	$-8, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rax), %rcx
	movq	%rcx, (%rsi,%rax)
	addq	$8, %rax
	cmpq	%rax, %rbx
	jne	LBB0_16
## %bb.17:
	cmpq	%r9, %rbx
	je	LBB0_21
LBB0_18:
	movq	%rbx, %r8
	notq	%r8
	addq	%r9, %r8
	movq	%r9, %rax
	andq	$3, %rax
	je	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rbx), %ecx
	movb	%cl, (%rsi,%rbx)
	incq	%rbx
	decq	%rax
	jne	LBB0_19
LBB0_20:
	cmpq	$3, %r8
	jb	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rbx), %eax
	movb	%al, (%rsi,%rbx)
	movzbl	1(%rdi,%rbx), %eax
	movb	%al, 1(%rsi,%rbx)
	movzbl	2(%rdi,%rbx), %eax
	movb	%al, 2(%rsi,%rbx)
	movzbl	3(%rdi,%rbx), %eax
	movb	%al, 3(%rsi,%rbx)
	addq	$4, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_24
LBB0_21:
	cmpl	$3, %edx
	ja	LBB0_23
LBB0_22:
	movl	%edx, %eax
	addq	%rax, %rsi
	movl	$3, %eax
	subl	%edx, %eax
	incq	%rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	___bzero
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_write_bytestream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_bytestream
_write_bytestream:                      ; @write_bytestream
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
	mov	w8, w2
	cmp	w2, #8
	b.lo	LBB0_13
; %bb.2:
	sub	x10, x1, x0
	cmp	x10, #64
	b.lo	LBB0_13
; %bb.3:
	cmp	w2, #64
	b.hs	LBB0_6
; %bb.4:
	mov	x9, #0
	b	LBB0_10
LBB0_5:
	mov	w2, #0
	b	LBB0_16
LBB0_6:
	and	x9, x8, #0xffffffc0
	add	x10, x1, #32
	add	x11, x0, #32
	mov	x12, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x11, #-32]
	ldp	q2, q3, [x11], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #64
	b.ne	LBB0_7
; %bb.8:
	cmp	x9, x8
	b.eq	LBB0_15
; %bb.9:
	tst	x8, #0x38
	b.eq	LBB0_13
LBB0_10:
	mov	x12, x9
	and	x9, x8, #0xfffffff8
	add	x10, x0, x12
	add	x11, x1, x12
	sub	x12, x12, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x10], #8
	str	d0, [x11], #8
	adds	x12, x12, #8
	b.ne	LBB0_11
; %bb.12:
	cmp	x9, x8
	b.eq	LBB0_15
LBB0_13:
	add	x10, x1, x9
	add	x11, x0, x9
	sub	x8, x8, x9
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x11], #1
	strb	w9, [x10], #1
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	cmp	w2, #3
	b.hi	LBB0_17
LBB0_16:
	add	x0, x1, w2, uxtw
	mov	w8, #3
	sub	w8, w8, w2
	add	x1, x8, #1
	bl	_bzero
LBB0_17:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_bytestream
.subsections_via_symbols
