	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_with_fetch
_fetch_with_fetch:                      ## @fetch_with_fetch
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	testl	%esi, %esi
	jle	LBB0_7
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %ecx
	xorl	%r13d, %r13d
	movq	_REF_STATUS_UPTODATE@GOTPCREL(%rip), %rsi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-64(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_strbuf_addf
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	_REF_STATUS_UPTODATE@GOTPCREL(%rip), %rsi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	%r13, %rcx
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %r15
	movl	(%rsi), %eax
	testl	%eax, (%r15)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	24(%r15), %rdi
	callq	_oid_to_hex
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rcx
	jmp	LBB0_5
LBB0_7:
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sendline
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_recvline
	testq	%rax, %rax
	jne	LBB0_21
## %bb.8:
	leaq	L_.str.1(%rip), %r15
	leaq	-64(%rbp), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	(%rbx), %esi
	movl	%eax, %edi
	movq	%r12, %rdx
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	callq	_warning
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_recvline
	testq	%rax, %rax
	jne	LBB0_21
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_starts_with
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %r12
	addq	$5, %r12
	cmpl	$0, (%r14)
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	callq	_xstrdup
	movl	%eax, (%r14)
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-64(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	(%rbx), %esi
	movq	-64(%rbp), %rdx
	movl	%eax, %edi
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, 8(%rbx)
	jmp	LBB0_20
LBB0_22:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	$128, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_REF_STATUS_UPTODATE,4,2        ## @REF_STATUS_UPTODATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fetch %s %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"lock "

L_.str.2:                               ## @.str.2
	.asciz	"%s also locked %s"

L_.str.3:                               ## @.str.3
	.asciz	"connectivity-ok"

L_.str.4:                               ## @.str.4
	.asciz	"%s unexpectedly said: '%s'"

	.no_dead_strip	_fetch_with_fetch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_with_fetch
_fetch_with_fetch:                      ; @fetch_with_fetch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
	cmp	w1, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, x2
	mov	w23, w1
Lloh3:
	adrp	x24, _REF_STATUS_UPTODATE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _REF_STATUS_UPTODATE@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, sp
	mov	x1, x22
	bl	_strbuf_addf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #8
	subs	x23, x23, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x21]
	ldr	w8, [x25]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x25, #24
	bl	_oid_to_hex
	mov	x2, x0
	ldr	x3, [x25, #16]
	cbnz	x3, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [x25, #8]
	b	LBB0_2
LBB0_7:
	mov	x0, sp
	mov	w1, #10
	bl	_strbuf_addch
	mov	x1, sp
	mov	x0, x20
	bl	_sendline
	mov	x1, sp
	mov	x0, x20
	bl	_recvline
	cbnz	x0, LBB0_22
; %bb.8:
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh9:
	adrp	x22, l_.str.4@PAGE
Lloh10:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh11:
	adrp	x23, l_.str.3@PAGE
Lloh12:
	add	x23, x23, l_.str.3@PAGEOFF
	mov	w26, #1
Lloh13:
	adrp	x24, l_.str.2@PAGE
Lloh14:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x24
	bl	__
	ldr	w1, [x20]
	mov	x2, x25
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_warning
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, sp
	mov	x0, x20
	bl	_recvline
	cbnz	x0, LBB0_22
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp]
	mov	x1, x21
	bl	_starts_with
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp]
	add	x25, x8, #5
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x25
	bl	_xstrdup
	str	w0, [x19]
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x0, [sp]
	mov	x1, x23
	bl	_strcmp
	cbz	w0, LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	bl	__
	ldr	w1, [x20]
	ldr	x2, [sp]
	b	LBB0_10
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	str	w26, [x20, #8]
	b	LBB0_11
LBB0_21:
	mov	x0, sp
	bl	_strbuf_release
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_22:
	mov	w0, #128
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_REF_STATUS_UPTODATE,4,2        ; @REF_STATUS_UPTODATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fetch %s %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"lock "

l_.str.2:                               ; @.str.2
	.asciz	"%s also locked %s"

l_.str.3:                               ; @.str.3
	.asciz	"connectivity-ok"

l_.str.4:                               ; @.str.4
	.asciz	"%s unexpectedly said: '%s'"

	.no_dead_strip	_fetch_with_fetch
.subsections_via_symbols
