	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receive_status
_receive_status:                        ## @receive_status
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_receive_unpack_status
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_packet_reader_read
	movq	_PACKET_READ_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.1:
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_warning
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_packet_reader_read
	movq	_PACKET_READ_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_starts_with
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %r14
	addq	$3, %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	testq	%r13, %r13
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	testq	%r13, %r13
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_find_ref_by_name
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_find_ref_by_name
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movq	_REF_STATUS_EXPECTING_REPORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rax
	cmpb	$111, (%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$107, 1(%rax)
	movq	_REF_STATUS_OK@GOTPCREL(%rip), %rax
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movq	_REF_STATUS_REMOTE_REJECT@GOTPCREL(%rip), %rax
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	%r12, %rdi
	callq	_xstrdup_or_null
	movl	%eax, 16(%r13)
	movq	8(%r13), %r13
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_warning
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_4:
	movq	(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_error
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
LBB0_19:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_READ_NORMAL,8,3         ## @PACKET_READ_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ok "

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

L_.str.2:                               ## @.str.2
	.asciz	"invalid ref status from remote: %s"

L_.str.3:                               ## @.str.3
	.asciz	"remote reported status on unknown ref: %s"

	.comm	_REF_STATUS_EXPECTING_REPORT,8,3 ## @REF_STATUS_EXPECTING_REPORT
L_.str.4:                               ## @.str.4
	.asciz	"remote reported status on unexpected ref: %s"

	.comm	_REF_STATUS_OK,8,3              ## @REF_STATUS_OK
	.comm	_REF_STATUS_REMOTE_REJECT,8,3   ## @REF_STATUS_REMOTE_REJECT
	.no_dead_strip	_receive_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receive_status
_receive_status:                        ; @receive_status
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	bl	_receive_unpack_status
	mov	x19, x0
	mov	x0, x20
	bl	_packet_reader_read
Lloh0:
	adrp	x24, _PACKET_READ_NORMAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PACKET_READ_NORMAL@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.1:
	mov	x26, #0
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x23, _REF_STATUS_EXPECTING_REPORT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _REF_STATUS_EXPECTING_REPORT@GOTPAGEOFF]
Lloh6:
	adrp	x25, l_.str.4@PAGE
Lloh7:
	add	x25, x25, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x28
	bl	_warning
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_packet_reader_read
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	mov	x1, x22
	bl	_starts_with
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbz	w0, LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	add	x28, x8, #3
	mov	x0, x28
	mov	w1, #32
	bl	_strchr
	mov	x27, x0
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x27], #1
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	x26, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x26
	mov	x1, x28
	bl	_find_ref_by_name
	mov	x26, x0
	cbnz	x0, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x28
	bl	_find_ref_by_name
	mov	x26, x0
	cbz	x0, LBB0_17
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	ldrb	w9, [x8]
	cmp	w9, #111
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w9, [x8, #1]
Lloh10:
	adrp	x8, _REF_STATUS_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REF_STATUS_OK@GOTPAGEOFF]
	cmp	w9, #107
	b.eq	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, #-1
Lloh12:
	adrp	x8, _REF_STATUS_REMOTE_REJECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REF_STATUS_REMOTE_REJECT@GOTPAGEOFF]
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8]
	str	x8, [x26]
	mov	x0, x27
	bl	_xstrdup_or_null
	str	w0, [x26, #16]
	ldr	x26, [x26, #8]
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_18:
	ldr	x1, [x20]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
	mov	w19, #-1
LBB0_19:
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_READ_NORMAL,8,3         ; @PACKET_READ_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ok "

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

l_.str.2:                               ; @.str.2
	.asciz	"invalid ref status from remote: %s"

l_.str.3:                               ; @.str.3
	.asciz	"remote reported status on unknown ref: %s"

	.comm	_REF_STATUS_EXPECTING_REPORT,8,3 ; @REF_STATUS_EXPECTING_REPORT
l_.str.4:                               ; @.str.4
	.asciz	"remote reported status on unexpected ref: %s"

	.comm	_REF_STATUS_OK,8,3              ; @REF_STATUS_OK
	.comm	_REF_STATUS_REMOTE_REJECT,8,3   ; @REF_STATUS_REMOTE_REJECT
	.no_dead_strip	_receive_status
.subsections_via_symbols
