	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chg_debug_print                ## -- Begin function chg_debug_print
	.p2align	4, 0x90
_chg_debug_print:                       ## @chg_debug_print
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	testq	%rdi, %rdi
	jns	LBB0_1
## %bb.9:
	movq	%r12, %rax
	shrq	$63, %rax
	addq	%r12, %rax
	sarq	%rax
	movq	%rax, %rdx
	negq	%rdx
	testb	$1, %r12b
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_1:
	je	LBB0_8
## %bb.2:
	movl	(%r12), %edx
	testl	%edx, %edx
	js	LBB0_3
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$0, (%r12)
	jle	LBB0_7
## %bb.5:
	leaq	L_.str.4(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12,%rbx,4), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, %edx
	negl	%edx
	testb	$1, %al
	cmovnel	%ecx, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movslq	(%r12), %rax
	incq	%rbx
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_trp_debug_print
LBB0_7:
	movl	$10, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fputc                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" [1] : %+ld\n"

L_.str.1:                               ## @.str.1
	.asciz	"[%d] :"

L_.str.3:                               ## @.str.3
	.asciz	" [%d] :"

L_.str.4:                               ## @.str.4
	.asciz	" %+d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_chg_debug_print                ; -- Begin function chg_debug_print
	.p2align	2
_chg_debug_print:                       ; @chg_debug_print
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
	tbz	x0, #63, LBB0_2
; %bb.1:
	cmp	x20, #0
	cinc	x8, x20, lt
	asr	x8, x8, #1
	tst	x20, #0x1
	cneg	x8, x8, ne
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	b	LBB0_7
LBB0_2:
	cbz	x20, LBB0_7
; %bb.3:
	ldr	w8, [x20]
	tbnz	w8, #31, LBB0_8
; %bb.4:
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x22, #0
Lloh4:
	adrp	x21, l_.str.4@PAGE
Lloh5:
	add	x21, x21, l_.str.4@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x20, x22, lsl #2
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	tst	w8, #0x1
	cneg	w8, w9, eq
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_fprintf
	ldrsw	x8, [x20]
	add	x22, x22, #1
	cmp	x22, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldr	w0, [x20]
	mov	x1, x19
	bl	_trp_debug_print
LBB0_9:
	mov	w0, #10
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_fputc
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" [1] : %+ld\n"

l_.str.1:                               ; @.str.1
	.asciz	"[%d] :"

l_.str.3:                               ; @.str.3
	.asciz	" [%d] :"

l_.str.4:                               ; @.str.4
	.asciz	" %+d"

.subsections_via_symbols
