	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_ref
_process_ref:                           ## @process_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	%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	%r8, %r13
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	-48(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_parse_oid_hex
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_10
## %bb.1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r14
	cmpb	$32, (%r14)
	jne	LBB0_10
## %bb.2:
	incq	%r14
	movq	%r14, -56(%rbp)
	testq	%r13, %r13
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_check_ref
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rdi
	callq	_alloc_ref
	movq	%rax, %r14
	leaq	8(%rax), %rdi
	leaq	-48(%rbp), %rsi
	callq	_oidcpy
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%r14, (%rax)
	movq	%r14, (%rcx)
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
	jmp	LBB0_9
LBB0_4:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_oid_array_append
LBB0_9:
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_check_no_capabilities
	movl	$1, %eax
LBB0_10:
	addq	$40, %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	".have"

L_.str.1:                               ## @.str.1
	.asciz	"capabilities^{}"

L_.str.2:                               ## @.str.2
	.asciz	"protocol error: unexpected capabilities^{}"

	.no_dead_strip	_process_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_ref
_process_ref:                           ; @process_ref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	mov	x2, sp
	bl	_parse_oid_hex
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x8, [sp]
	ldrb	w9, [x8]
	cmp	w9, #32
	b.ne	LBB0_7
; %bb.2:
	add	x24, x8, #1
	str	x24, [sp]
	cbz	x23, LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	w0, LBB0_10
LBB0_4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.5:
	mov	x0, x24
	mov	x1, x22
	bl	_check_ref
	cbz	x0, LBB0_11
; %bb.6:
	ldr	x0, [sp]
	bl	_alloc_ref
	mov	x22, x0
	add	x0, x0, #8
	add	x1, sp, #8
	bl	_oidcpy
	ldr	x8, [x21]
	str	x22, [x8]
	str	x22, [x21]
	b	LBB0_11
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_die
	b	LBB0_11
LBB0_10:
	add	x1, sp, #8
	mov	x0, x23
	bl	_oid_array_append
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_check_no_capabilities
	mov	w0, #1
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".have"

l_.str.1:                               ; @.str.1
	.asciz	"capabilities^{}"

l_.str.2:                               ; @.str.2
	.asciz	"protocol error: unexpected capabilities^{}"

	.no_dead_strip	_process_ref
.subsections_via_symbols
