	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receive_wanted_refs
_receive_wanted_refs:                   ## @receive_wanted_refs
	.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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_process_section_header
	movq	%rbx, %rdi
	callq	_packet_reader_read
	movq	_PACKET_READ_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	leaq	-56(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rdi
	movq	%r12, %rsi
	callq	_oidcpy
	movq	%rbx, %rdi
	callq	_packet_reader_read
	movq	_PACKET_READ_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	leaq	-48(%rbp), %rdx
	callq	_parse_oid_hex
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	leaq	1(%rax), %rdi
	movq	%rdi, -48(%rbp)
	cmpb	$32, (%rax)
	je	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_die
	movq	-48(%rbp), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_cmp_name_ref@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rsi
	movl	%r14d, %edx
	movl	$8, %ecx
	callq	_bsearch
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	(%rbx), %rsi
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_7
LBB0_8:
	movq	8(%rbx), %rax
	movq	_PACKET_READ_DELIM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_die
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wanted-refs"

	.comm	_PACKET_READ_NORMAL,8,3         ## @PACKET_READ_NORMAL
L_.str.1:                               ## @.str.1
	.asciz	"expected wanted-ref, got '%s'"

	.comm	_cmp_name_ref,4,2               ## @cmp_name_ref
L_.str.2:                               ## @.str.2
	.asciz	"unexpected wanted-ref: '%s'"

	.comm	_PACKET_READ_DELIM,8,3          ## @PACKET_READ_DELIM
L_.str.3:                               ## @.str.3
	.asciz	"error processing wanted refs: %d"

	.no_dead_strip	_receive_wanted_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receive_wanted_refs
_receive_wanted_refs:                   ; @receive_wanted_refs
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_process_section_header
	mov	x0, x19
	bl	_packet_reader_read
Lloh2:
	adrp	x25, _PACKET_READ_NORMAL@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PACKET_READ_NORMAL@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.1:
Lloh4:
	adrp	x26, _cmp_name_ref@GOTPAGE
Lloh5:
	ldr	x26, [x26, _cmp_name_ref@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.2@PAGE
Lloh7:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh8:
	adrp	x23, l_.str.1@PAGE
Lloh9:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x24]
	add	x1, sp, #8
	bl	_oidcpy
	mov	x0, x19
	bl	_packet_reader_read
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	add	x1, sp, #8
	mov	x2, sp
	bl	_parse_oid_hex
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp]
	add	x0, x8, #1
	str	x0, [sp]
	ldrb	w8, [x8]
	cmp	w8, #32
	b.eq	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	__
	ldr	x1, [x19]
	bl	_die
	ldr	x0, [sp]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w4, [x26]
	mov	x1, x21
	mov	x2, x20
	mov	w3, #8
	bl	_bsearch
	mov	x24, x0
	cbnz	x0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	__
	ldr	x1, [x19]
	bl	_die
	b	LBB0_2
LBB0_8:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _PACKET_READ_DELIM@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PACKET_READ_DELIM@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldr	x1, [x19, #8]
	bl	_die
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wanted-refs"

	.comm	_PACKET_READ_NORMAL,8,3         ; @PACKET_READ_NORMAL
l_.str.1:                               ; @.str.1
	.asciz	"expected wanted-ref, got '%s'"

	.comm	_cmp_name_ref,4,2               ; @cmp_name_ref
l_.str.2:                               ; @.str.2
	.asciz	"unexpected wanted-ref: '%s'"

	.comm	_PACKET_READ_DELIM,8,3          ; @PACKET_READ_DELIM
l_.str.3:                               ; @.str.3
	.asciz	"error processing wanted refs: %d"

	.no_dead_strip	_receive_wanted_refs
.subsections_via_symbols
