	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_counter_add                    ## -- Begin function counter_add
	.p2align	4, 0x90
_counter_add:                           ## @counter_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edi, %edi
	je	LBB0_11
## %bb.1:
	movl	%edi, %ecx
	movl	$17, %eax
	subl	%edi, %eax
	movl	$17239, %edi                    ## imm = 0x4357
	subl	%ecx, %edi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movq	_COUNTERS_PRIME@GOTPCREL(%rip), %rdx
	cmovnsl	%ecx, %edi
	movl	(%rdx), %r8d
	cltd
	idivl	%r8d
	testl	%edx, %edx
	js	LBB0_11
## %bb.2:
	testl	%edi, %edi
	js	LBB0_11
## %bb.3:
	movl	%edx, %esi
	leal	-1(%r8), %r9d
	movl	%edi, %eax
	cltd
	idivl	%r9d
	movq	_Counters@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movl	%esi, %edi
	movl	(%r10,%rdi,4), %r9d
	testl	%r9d, %r9d
	je	LBB0_12
## %bb.4:
	cmpl	%ecx, %r9d
	je	LBB0_10
## %bb.5:
	incl	%edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addl	%edx, %esi
	xorl	%edi, %edi
	cmpl	%r8d, %esi
	jl	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r8d, %edi
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	subl	%edi, %esi
	movslq	%esi, %rdi
	movl	(%r10,%rdi,4), %eax
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%ecx, %eax
	jne	LBB0_6
LBB0_10:
	movq	_T@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	(%rax,%rdi,4)
LBB0_11:
	popq	%rbp
	retq
LBB0_12:
	movl	%ecx, (%r10,%rdi,4)
	movq	_T@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%rdi,4)
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COUNTERS_PRIME,4,2             ## @COUNTERS_PRIME
	.comm	_Counters,8,3                   ## @Counters
	.comm	_T,8,3                          ## @T
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_counter_add                    ; -- Begin function counter_add
	.p2align	2
_counter_add:                           ; @counter_add
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_9
; %bb.1:
	mov	x2, x0
	mov	w8, #17
	sub	w8, w8, w0
	mov	w9, #17239
	sub	w9, w9, w0
	cmp	w0, #0
	csel	w10, w8, w0, lt
Lloh0:
	adrp	x8, _COUNTERS_PRIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COUNTERS_PRIME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w12, w10, w8
	csel	w11, w9, w0, lt
	msub	w9, w12, w8, w10
	tbnz	w9, #31, LBB0_9
; %bb.2:
	tbnz	w11, #31, LBB0_9
; %bb.3:
Lloh3:
	adrp	x10, _Counters@GOTPAGE
Lloh4:
	ldr	x10, [x10, _Counters@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w12, [x10, w9, uxtw #2]
	cbz	w12, LBB0_10
; %bb.4:
	cmp	w12, w2
	b.eq	LBB0_8
; %bb.5:
	sub	w12, w8, #1
	sdiv	w13, w11, w12
	msub	w11, w13, w12, w11
	add	w11, w11, #1
	mov	x12, x9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w11, w12
	cmp	w9, w8
	csel	w12, wzr, w8, lt
	sub	w12, w9, w12
	sxtw	x9, w12
	ldr	w13, [x10, w12, sxtw #2]
	cbz	w13, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w13, w2
	b.ne	LBB0_6
LBB0_8:
Lloh6:
	adrp	x8, _T@GOTPAGE
Lloh7:
	ldr	x8, [x8, _T@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_9:
	ret
LBB0_10:
	lsl	x8, x9, #2
	str	w2, [x10, x8]
Lloh9:
	adrp	x9, _T@GOTPAGE
Lloh10:
	ldr	x9, [x9, _T@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	w10, #1
	str	w10, [x9, x8]
Lloh12:
	adrp	x8, _stdout@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	_fprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_COUNTERS_PRIME,4,2             ; @COUNTERS_PRIME
	.comm	_Counters,8,3                   ; @Counters
	.comm	_T,8,3                          ; @T
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

.subsections_via_symbols
