	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_add_entry                ## -- Begin function fetch_add_entry
	.p2align	4, 0x90
_fetch_add_entry:                       ## @fetch_add_entry
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	jmp	LBB0_3
LBB0_2:
	movl	$0, (%r14)
	movl	$0, (%r15)
	xorl	%eax, %eax
LBB0_3:
	movl	(%r14), %esi
	leal	-1(%rsi), %edx
	cmpl	%edx, %eax
	jge	LBB0_5
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_5:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	addl	%esi, %esi
	incl	%esi
	movq	%r12, %rdi
	movl	$16, %edx
	callq	_reallocarray
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	addl	%eax, %eax
	incl	%eax
	movl	%eax, (%r14)
	movq	%r12, (%r13)
	movl	(%r15), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_8:
	movslq	%eax, %rbx
	shlq	$4, %rbx
	movq	(%r12,%rbx), %rdi
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	leaq	(%r12,%rbx), %rdi
	addq	$8, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	incl	(%r15)
	movq	16(%r12,%rbx), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_fetch_syserr
	movl	$-1, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_add_entry                ; -- Begin function fetch_add_entry
	.p2align	2
_fetch_add_entry:                       ; @fetch_add_entry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
	str	wzr, [x23]
	str	wzr, [x19]
LBB0_3:
	ldr	w9, [x23]
	sub	w10, w9, #1
	cmp	w8, w10
	b.lt	LBB0_6
; %bb.4:
	mov	w24, #1
	mov	w1, #1
	bfi	w1, w9, #1, #31
	mov	w2, #16
	bl	_reallocarray
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x23]
	bfi	w24, w8, #1, #31
	str	w24, [x23]
	str	x0, [x22]
	ldr	w8, [x19]
LBB0_6:
	add	x22, x0, w8, sxtw #4
	ldr	x0, [x22]
Lloh0:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_snprintf
	add	x0, x22, #8
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x8, [x22, #16]
	str	xzr, [x8]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _errno@GOTPAGE
Lloh9:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
	bl	_fetch_syserr
	mov	w0, #-1
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
