	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_want_ref
_parse_want_ref:                        ## @parse_want_ref
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rax
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rax, %rdi
	callq	_skip_prefix
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_read_ref
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	-40(%rbp), %rdx
	leaq	L_.str.1(%rip), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_packet_writer_error
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_die
LBB0_4:
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_string_list_append
	movq	%rax, %rbx
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	callq	_oiddup
	movl	%eax, (%rbx)
	movq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_parse_object_or_die
	movl	(%rax), %ecx
	movq	_WANTED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	jne	LBB0_6
## %bb.5:
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_add_object_array
LBB0_6:
	movl	$1, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"want-ref "

L_.str.1:                               ## @.str.1
	.asciz	"unknown ref %s"

	.comm	_WANTED,4,2                     ## @WANTED
	.no_dead_strip	_parse_want_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_want_ref
_parse_want_ref:                        ; @parse_want_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x8
	bl	_skip_prefix
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x0, [sp, #8]
	mov	x1, sp
	bl	_read_ref
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x2, [sp, #8]
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_packet_writer_error
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_die
LBB0_3:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_string_list_append
	mov	x20, x0
	mov	x0, sp
	bl	_oiddup
	str	w0, [x20]
	ldr	x1, [sp, #8]
	mov	x0, sp
	bl	_parse_object_or_die
	ldr	w8, [x0]
Lloh4:
	adrp	x9, _WANTED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WANTED@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	orr	w8, w9, w8
	str	w8, [x0]
	mov	x1, #0
	mov	x2, x19
	bl	_add_object_array
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"want-ref "

l_.str.1:                               ; @.str.1
	.asciz	"unknown ref %s"

	.comm	_WANTED,4,2                     ; @WANTED
	.no_dead_strip	_parse_want_ref
.subsections_via_symbols
