	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_format_ref_array_item          ## -- Begin function format_ref_array_item
	.p2align	4, 0x90
_format_ref_array_item:                 ## @format_ref_array_item
	.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
	movq	%rcx, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	_REF_FORMATTING_STATE_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	16(%rsi), %eax
	movl	%eax, -56(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_push_stack_element
	movq	(%r15), %r14
	cmpb	$0, (%r14)
	je	LBB0_11
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_find_next
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$41, %esi
	callq	_strchr
	movq	%rax, %r13
	cmpq	%r12, %r14
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	leaq	-64(%rbp), %rdx
	callq	_append_literal
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	$2, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	callq	_parse_ref_filter_atom
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rcx
	callq	_get_ref_atom_value
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-96(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	*8(%rdi)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %r14
	incq	%r14
	cmpb	$0, 1(%r13)
	jne	LBB0_1
	jmp	LBB0_11
LBB0_9:
	cmpb	$0, (%r14)
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_strlen
	movslq	%eax, %rsi
	addq	%r14, %rsi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	_append_literal
LBB0_11:
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.12:
	movq	_GIT_COLOR_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	leaq	-96(%rbp), %rdi
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_append_atom
	testq	%rax, %rax
	je	LBB0_13
LBB0_7:
	leaq	-64(%rbp), %rdi
	callq	_pop_stack_element
	movl	$-1, %eax
	jmp	LBB0_16
LBB0_13:
	movq	-64(%rbp), %rsi
	cmpq	$0, 8(%rsi)
	je	LBB0_15
## %bb.14:
	leaq	-64(%rbp), %rdi
	callq	_pop_stack_element
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	%eax, %edx
	callq	_strbuf_addf_ret
	jmp	LBB0_16
LBB0_15:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_strbuf_addbuf
	leaq	-64(%rbp), %rdi
	callq	_pop_stack_element
	xorl	%eax, %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REF_FORMATTING_STATE_INIT,16,3 ## @REF_FORMATTING_STATE_INIT
	.comm	_GIT_COLOR_RESET,4,2            ## @GIT_COLOR_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"format: %%(end) atom missing"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_format_ref_array_item          ; -- Begin function format_ref_array_item
	.p2align	2
_format_ref_array_item:                 ; @format_ref_array_item
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _REF_FORMATTING_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REF_FORMATTING_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
	ldr	w8, [x1, #16]
	str	w8, [sp, #24]
	add	x0, sp, #16
	bl	_push_stack_element
	ldr	x23, [x21]
	ldrb	w8, [x23]
	cbz	w8, LBB0_10
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_find_next
	cbz	x0, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, x0
	mov	w1, #41
	bl	_strchr
	mov	x24, x0
	cmp	x23, x25
	b.hs	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x2, sp, #16
	mov	x0, x23
	mov	x1, x25
	bl	_append_literal
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	x1, x25, #2
	mov	x0, x21
	mov	x2, x24
	mov	x3, x19
	bl	_parse_ref_filter_atom
	tbnz	w0, #31, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x0
	mov	x2, sp
	mov	x0, x22
	mov	x3, x19
	bl	_get_ref_atom_value
	cbnz	x0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [sp]
	ldr	x8, [x0, #8]
	add	x1, sp, #16
	mov	x2, x19
	blr	x8
	cbnz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrb	w8, [x24, #1]!
	mov	x23, x24
	cbnz	w8, LBB0_1
	b	LBB0_10
LBB0_8:
	ldrb	w8, [x23]
	cbz	w8, LBB0_10
; %bb.9:
	mov	x0, x23
	bl	_strlen
	add	x1, x23, w0, sxtw
	add	x2, sp, #16
	mov	x0, x23
	bl	_append_literal
LBB0_10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_13
; %bb.11:
Lloh3:
	adrp	x8, _GIT_COLOR_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GIT_COLOR_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, sp
	add	x1, sp, #16
	mov	x2, x19
	bl	_append_atom
	cbz	x0, LBB0_13
LBB0_12:
	add	x0, sp, #16
	bl	_pop_stack_element
	mov	w0, #-1
	b	LBB0_16
LBB0_13:
	ldr	x1, [sp, #16]
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_15
; %bb.14:
	add	x0, sp, #16
	bl	_pop_stack_element
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	w1, #-1
	bl	_strbuf_addf_ret
	b	LBB0_16
LBB0_15:
	mov	x0, x20
	bl	_strbuf_addbuf
	add	x0, sp, #16
	bl	_pop_stack_element
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REF_FORMATTING_STATE_INIT,16,3 ; @REF_FORMATTING_STATE_INIT
	.comm	_GIT_COLOR_RESET,4,2            ; @GIT_COLOR_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"format: %%(end) atom missing"

.subsections_via_symbols
