	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_refs_list_using_list
_get_refs_list_using_list:              ## @get_refs_list_using_list
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movq	$0, -56(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1, (%rbx)
	callq	_get_helper
	cmpq	$0, 8(%rbx)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rcx, %rsi
	testl	%r14d, %r14d
	movl	(%rax), %edi
	cmoveq	%rcx, %rsi
	callq	_write_str_in_full
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_recvline
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	leaq	-56(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %r12
	addq	$8, %r12
	movq	%rbx, %rdi
	leaq	-48(%rbp), %rsi
	callq	_recvline
	testq	%rax, %rax
	jne	LBB0_16
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$32, %esi
	callq	_strchr
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_die
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r15
	incq	%r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_strchr
	movq	%rax, %r13
	movb	$0, (%r15)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_alloc_ref
	movq	%rax, (%r12)
	movq	-48(%rbp), %rdi
	movzbl	(%rdi), %ecx
	cmpb	$63, %cl
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$64, %cl
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	callq	_xstrdup
	movq	(%r12), %rcx
	movl	%eax, 24(%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r13, %r13
	jne	LBB0_12
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rax
	movq	%rax, %rsi
	callq	_get_oid_hex
	testq	%r13, %r13
	je	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_has_attribute
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_REF_STATUS_UPTODATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rsi
	orl	%eax, 20(%rsi)
	movq	(%rsi), %rdi
	addq	$16, %rsi
	callq	_read_ref
	testq	%rax, %rax
	jns	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	(%r12), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_15
LBB0_17:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_fprintf
LBB0_19:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	-56(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_22
## %bb.20:
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_resolve_remote_symref
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_21
LBB0_22:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	$128, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"list for-push\n"

L_.str.1:                               ## @.str.1
	.asciz	"list\n"

L_.str.2:                               ## @.str.2
	.asciz	"malformed response in ref list: %s"

L_.str.3:                               ## @.str.3
	.asciz	"unchanged"

	.comm	_REF_STATUS_UPTODATE,4,2        ## @REF_STATUS_UPTODATE
L_.str.4:                               ## @.str.4
	.asciz	"could not read ref %s"

	.comm	_debug,8,3                      ## @debug
	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"Debug: Read ref listing.\n"

	.no_dead_strip	_get_refs_list_using_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_refs_list_using_list
_get_refs_list_using_list:              ; @get_refs_list_using_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	ldr	x19, [x0]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	w8, #1
	str	w8, [x19]
	bl	_get_helper
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	w20, #0, #4, ne
	ldr	w0, [x0]
Lloh3:
	adrp	x8, l_.str.1@PAGE
Lloh4:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh5:
	adrp	x9, l_.str@PAGE
Lloh6:
	add	x9, x9, l_.str@PAGEOFF
	csel	x1, x9, x8, ne
	bl	_write_str_in_full
	mov	x1, sp
	mov	x0, x19
	bl	_recvline
	cbnz	x0, LBB0_22
; %bb.1:
	add	x26, sp, #8
Lloh7:
	adrp	x20, l_.str.2@PAGE
Lloh8:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh9:
	adrp	x21, l_.str.3@PAGE
Lloh10:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh11:
	adrp	x27, _REF_STATUS_UPTODATE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _REF_STATUS_UPTODATE@GOTPAGEOFF]
Lloh13:
	adrp	x22, l_.str.4@PAGE
Lloh14:
	add	x22, x22, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	add	x26, x8, #8
	mov	x1, sp
	mov	x0, x19
	bl	_recvline
	cbnz	x0, LBB0_22
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp]
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w1, #32
	bl	_strchr
	mov	x24, x0
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	__
	ldr	x1, [sp]
	bl	_die
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x24, #1
	mov	x0, x25
	mov	w1, #32
	bl	_strchr
	mov	x23, x0
	strb	wzr, [x24]
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x23]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_alloc_ref
	mov	x8, x0
	str	x0, [x26]
	ldr	x0, [sp]
	ldrb	w9, [x0]
	cmp	w9, #63
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #64
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #1
	bl	_xstrdup
	ldr	x8, [x26]
	str	w0, [x8, #24]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x23, LBB0_13
	b	LBB0_2
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, x8, #16
	bl	_get_oid_hex
	cbz	x23, LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x23, #1
	mov	x1, x21
	bl	_has_attribute
	cbz	x0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	ldr	x9, [x26]
	ldr	w10, [x9, #20]
	orr	w8, w10, w8
	str	w8, [x9, #20]
	ldr	x0, [x9]
	add	x1, x9, #16
	bl	_read_ref
	tbz	x0, #63, LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	__
	ldr	x8, [x26]
	ldr	x1, [x8]
	bl	_die
	b	LBB0_2
LBB0_16:
Lloh15:
	adrp	x8, _debug@GOTPAGE
Lloh16:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.17:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
LBB0_18:
	mov	x0, sp
	bl	_strbuf_release
	ldr	x19, [sp, #8]
	cbz	x19, LBB0_21
; %bb.19:
	mov	x20, x19
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_resolve_remote_symref
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_20
LBB0_21:
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_22:
	mov	w0, #128
	bl	_exit
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"list for-push\n"

l_.str.1:                               ; @.str.1
	.asciz	"list\n"

l_.str.2:                               ; @.str.2
	.asciz	"malformed response in ref list: %s"

l_.str.3:                               ; @.str.3
	.asciz	"unchanged"

	.comm	_REF_STATUS_UPTODATE,4,2        ; @REF_STATUS_UPTODATE
l_.str.4:                               ; @.str.4
	.asciz	"could not read ref %s"

	.comm	_debug,8,3                      ; @debug
	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"Debug: Read ref listing.\n"

	.no_dead_strip	_get_refs_list_using_list
.subsections_via_symbols
