	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altera_export_bool_array
_altera_export_bool_array:              ## @altera_export_bool_array
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HEX_LINE_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	movq	%rbx, %r8
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_HEX_LINE_BITS@GOTPCREL(%rip), %r15
	cmpl	%r8d, (%r15)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jge	LBB0_16
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%r8d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r15), %ecx
	leal	(%rsi,%rcx), %eax
	decl	%eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_24
## %bb.2:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %ebx
	xorl	%r14d, %r14d
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	cmpl	-80(%rbp), %r14d                ## 4-byte Folded Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_24
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movl	(%r15), %ecx
	cmpl	%ebx, %r14d
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_HEX_LINE_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	notl	%r14d
	imull	%ecx, %r14d
	addl	%esi, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	imull	%ebx, %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	leal	3(%rax), %ecx
	leal	6(%rax), %r12d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r12d
	sarl	$2, %r12d
	xorl	%r14d, %r14d
	movl	%eax, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rax
	movb	$0, (%r13,%rax)
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r15
	decl	%r12d
	movl	%ecx, %r13d
	xorl	%edx, %edx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	incl	%r14d
	decl	%r13d
	je	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%r14d, %eax
	sarl	$3, %eax
	cltq
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %esi
	movl	%r14d, %ecx
	andl	$3, %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movl	%r14d, %ebx
	andb	$7, %bl
	movzbl	%bl, %edi
	btl	%edi, %esi
	movl	$0, %esi
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movl	%eax, %esi
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=2
	orl	%esi, %edx
	cmpl	$3, %ecx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movslq	%r12d, %r12
	leaq	(%r15,%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	decl	%r12d
	xorl	%edx, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$3, -64(%rbp)                   ## 1-byte Folded Reload
	movq	%r15, %r13
	movq	_HEX_LINE_BITS@GOTPCREL(%rip), %r15
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r12d, %rdi
	addq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	jmp	LBB0_15
LBB0_16:
	leal	3(%r8), %eax
	leal	6(%r8), %r14d
	testl	%eax, %eax
	cmovnsl	%eax, %r14d
	sarl	$2, %r14d
	movslq	%r14d, %rax
	movb	$0, (%r13,%rax)
	testl	%r8d, %r8d
	jle	LBB0_23
## %bb.17:
	movq	%r12, %r15
	movq	%r13, %rbx
	decl	%r14d
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%r12d
	cmpl	%r12d, %r8d
	je	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	%edx, %eax
	movl	%r12d, %ecx
	shrl	$3, %ecx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%rcx,4), %esi
	movl	%r12d, %ecx
	andb	$7, %cl
	movzbl	%cl, %edi
	movl	%r12d, %ecx
	andl	$3, %ecx
	movl	$1, %edx
	shll	%cl, %edx
	btl	%edi, %esi
	cmovael	%r13d, %edx
	orl	%eax, %edx
	cmpl	$3, %ecx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movslq	%r14d, %r14
	leaq	(%rbx,%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	decl	%r14d
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_21:
	testb	$3, %r8b
	movq	%rbx, %r13
	movq	%r15, %r12
	je	LBB0_23
## %bb.22:
	movslq	%r14d, %rax
	movq	%r13, %rdi
	addq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movq	-56(%rbp), %r8                  ## 8-byte Reload
LBB0_23:
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movl	%r8d, %edx
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HEX_LINE_CHARS,4,2             ## @HEX_LINE_CHARS
	.comm	_HEX_LINE_BITS,4,2              ## @HEX_LINE_BITS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Export: key = \"%s\", %d bits, value = HEX\n"

L_.str.1:                               ## @.str.1
	.asciz	"%1x"

L_.str.2:                               ## @.str.2
	.asciz	"%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Export: key = \"%s\", %d bits, value = HEX %s\n"

	.no_dead_strip	_altera_export_bool_array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altera_export_bool_array
_altera_export_bool_array:              ; @altera_export_bool_array
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x26, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _HEX_LINE_CHARS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HEX_LINE_CHARS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x23, _HEX_LINE_BITS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _HEX_LINE_BITS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w2
	b.ge	LBB0_14
; %bb.1:
	mov	x8, x26
	str	x8, [sp, #-16]!
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_dprintk
	add	sp, sp, #16
	ldr	w8, [x23]
	add	w9, w26, w8
	sub	w9, w9, #1
	sdiv	w8, w9, w8
	stur	w8, [x29, #-92]                 ; 4-byte Folded Spill
	subs	w27, w8, #1
	b.lt	LBB0_22
; %bb.2:
	mov	w28, #0
	mov	w24, #1
Lloh12:
	adrp	x22, l_.str.1@PAGE
Lloh13:
	add	x22, x22, l_.str.1@PAGEOFF
	stur	x26, [x29, #-104]               ; 8-byte Folded Spill
	stur	w27, [x29, #-108]               ; 4-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_dprintk
	add	w28, w28, #1
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cmp	w28, w8
	ldur	x26, [x29, #-104]               ; 8-byte Folded Reload
	b.eq	LBB0_22
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w19, [x23]
	cmp	w28, w27
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x8, _HEX_LINE_CHARS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HEX_LINE_CHARS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mvn	w9, w28
	madd	w25, w19, w9, w26
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
	msub	w19, w19, w27, w26
	add	w8, w19, #3
	add	w9, w19, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x20, w8, sxtw]
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x23
	mov	w2, #0
	sub	w26, w8, #1
	mov	x23, x19
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w25, w25, #1
	subs	w23, w23, #1
	b.eq	LBB0_12
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w8, w25, #3
	ldr	w8, [x21, w8, sxtw #2]
	and	w9, w25, #0x7
	and	w10, w25, #0x3
	lsl	w11, w24, w10
	lsr	w8, w8, w9
	sbfx	w8, w8, #0, #1
	and	w8, w8, w11
	orr	w2, w8, w2
	cmp	w10, #3
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x0, x20, w26, sxtw
	mov	x1, x22
	bl	_sprintf
	mov	w2, #0
	sub	w26, w26, #1
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	tst	w19, #0x3
	mov	x23, x27
	ldur	w27, [x29, #-108]               ; 4-byte Folded Reload
	b.eq	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x20, w26, sxtw
	mov	x1, x22
	bl	_sprintf
	b	LBB0_3
LBB0_14:
	add	w8, w26, #3
	add	w9, w26, #6
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	strb	wzr, [x20, w8, sxtw]
	cmp	w26, #1
	b.lt	LBB0_21
; %bb.15:
	mov	w2, #0
	mov	w25, #0
	sub	w24, w8, #1
	mov	w19, #1
Lloh19:
	adrp	x23, l_.str.1@PAGE
Lloh20:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	w25, w25, #1
	cmp	w26, w25
	b.eq	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	lsr	w8, w25, #3
	ldr	w8, [x21, w8, uxtw #2]
	and	w9, w25, #0x7
	and	w10, w25, #0x3
	lsl	w11, w19, w10
	lsr	w8, w8, w9
	sbfx	w8, w8, #0, #1
	and	w8, w8, w11
	orr	w2, w8, w2
	cmp	w10, #3
	b.ne	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x0, x20, w24, sxtw
	mov	x1, x23
	bl	_sprintf
	mov	w2, #0
	sub	w24, w24, #1
	b	LBB0_16
LBB0_19:
	tst	w26, #0x3
	b.eq	LBB0_21
; %bb.20:
	add	x0, x20, w24, sxtw
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_sprintf
LBB0_21:
	stp	x26, x20, [sp, #-16]!
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_dprintk
	add	sp, sp, #16
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_HEX_LINE_CHARS,4,2             ; @HEX_LINE_CHARS
	.comm	_HEX_LINE_BITS,4,2              ; @HEX_LINE_BITS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Export: key = \"%s\", %d bits, value = HEX\n"

l_.str.1:                               ; @.str.1
	.asciz	"%1x"

l_.str.2:                               ; @.str.2
	.asciz	"%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Export: key = \"%s\", %d bits, value = HEX %s\n"

	.no_dead_strip	_altera_export_bool_array
.subsections_via_symbols
