	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altera_concatenate_data
_altera_concatenate_data:               ## @altera_concatenate_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r11
	testq	%rdx, %rdx
	jle	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	notq	%rbx
	andq	%rbx, (%rdi,%r10,8)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rdx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r10
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$1, %ebx
	shlq	%cl, %rbx
	shrq	$3, %r10
	movl	(%rsi,%r10,8), %r14d
	movzbl	%cl, %ecx
	btl	%ecx, %r14d
	jae	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	orq	%rbx, (%rdi,%r10,8)
	jmp	LBB0_6
LBB0_7:
	movq	%rdx, %rbx
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movq	24(%rbp), %r10
	addq	%rdx, %r9
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	notq	%rax
	movq	%rbx, %rcx
	andq	$-8, %rcx
	andq	%rax, (%rdi,%rcx)
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	incq	%r8
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r9, %rbx
	jge	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r8, %rax
	andq	$-8, %rax
	movl	(%r11,%rax), %edx
	movl	%r8d, %eax
	andb	$7, %al
	movzbl	%al, %esi
	movl	%ebx, %ecx
	andb	$7, %cl
	movl	$1, %eax
	shlq	%cl, %rax
	btl	%esi, %edx
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rcx
	andq	$-8, %rcx
	orq	%rax, (%rdi,%rcx)
	jmp	LBB0_13
LBB0_14:
	addq	%r10, %r9
	cmpq	%r9, %rbx
	jge	LBB0_20
## %bb.15:
	movq	16(%rbp), %r8
	xorl	%edx, %edx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	notq	%rsi
	andq	$-8, %rax
	andq	%rsi, (%rdi,%rax)
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	(%rbx,%rdx), %rax
	incq	%rax
	incq	%rdx
	cmpq	%r9, %rax
	jge	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rdx), %rax
	movq	%rdx, %rcx
	andq	$-8, %rcx
	movl	(%r8,%rcx), %r10d
	movl	%edx, %ecx
	andb	$7, %cl
	movzbl	%cl, %r11d
	movl	%eax, %ecx
	andb	$7, %cl
	movl	$1, %esi
	shlq	%cl, %rsi
	btl	%r11d, %r10d
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	andq	$-8, %rax
	orq	%rsi, (%rdi,%rax)
	jmp	LBB0_19
LBB0_20:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_altera_concatenate_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altera_concatenate_data
_altera_concatenate_data:               ; @altera_concatenate_data
	.cfi_startproc
; %bb.0:
	cmp	x2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x8, #0
	mov	w9, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x0, x11]
	bic	x10, x12, x10
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x10, [x0, x11]
	add	x8, x8, #1
	cmp	x2, x8
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x11, x8, #3
	ldr	x12, [x1, x11, lsl #3]
	and	x10, x8, #0x7
	lsl	x10, x9, x10
	lsl	x11, x11, #3
	tst	x12, x10
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x0, x11]
	orr	x10, x12, x10
	b	LBB0_3
LBB0_6:
	mov	x8, x2
	b	LBB0_8
LBB0_7:
	mov	x8, #0
LBB0_8:
	add	x9, x5, x2
	cmp	x8, x9
	b.ge	LBB0_15
; %bb.9:
	mov	w10, #1
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	and	x12, x8, #0xfffffffffffffff8
	ldr	x13, [x0, x12]
	bic	x11, x13, x11
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x11, [x0, x12]
	add	x8, x8, #1
	add	x4, x4, #1
	cmp	x9, x8
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	and	x11, x4, #0xfffffffffffffff8
	ldr	x12, [x3, x11]
	and	x13, x4, #0x7
	and	x11, x8, #0x7
	lsl	x11, x10, x11
	lsr	x12, x12, x13
	tbz	w12, #0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	and	x12, x8, #0xfffffffffffffff8
	ldr	x13, [x0, x12]
	orr	x11, x13, x11
	b	LBB0_11
LBB0_14:
	mov	x8, x9
LBB0_15:
	add	x9, x9, x7
	cmp	x8, x9
	b.ge	LBB0_21
; %bb.16:
	mov	x10, #0
	mov	w11, #1
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x14, [x0, x12]
	bic	x13, x14, x13
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	str	x13, [x0, x12]
	add	x10, x10, #1
	add	x12, x8, x10
	cmp	x12, x9
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x8, x10
	and	x13, x10, #0xfffffffffffffff8
	ldr	x14, [x6, x13]
	and	x15, x10, #0x7
	and	x13, x12, #0x7
	lsl	x13, x11, x13
	and	x12, x12, #0xfffffffffffffff8
	lsr	x14, x14, x15
	tbz	w14, #0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x14, [x0, x12]
	orr	x13, x14, x13
	b	LBB0_18
LBB0_21:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_altera_concatenate_data
.subsections_via_symbols
