	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_capabilities_v2
_process_capabilities_v2:               ## @process_capabilities_v2
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_packet_reader_read
	movq	_PACKET_READ_NORMAL@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.1:
	movq	_server_capabilities_v2@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_argv_array_push
	movq	%rbx, %rdi
	callq	_packet_reader_read
	cmpq	(%r15), %rax
	je	LBB0_2
LBB0_3:
	movq	(%rbx), %rax
	movq	_PACKET_READ_FLUSH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_die                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_READ_NORMAL,8,3         ## @PACKET_READ_NORMAL
	.comm	_server_capabilities_v2,4,2     ## @server_capabilities_v2
	.comm	_PACKET_READ_FLUSH,8,3          ## @PACKET_READ_FLUSH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected flush after capabilities"

	.no_dead_strip	_process_capabilities_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_capabilities_v2
_process_capabilities_v2:               ; @process_capabilities_v2
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_packet_reader_read
Lloh0:
	adrp	x21, _PACKET_READ_NORMAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PACKET_READ_NORMAL@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x20, _server_capabilities_v2@GOTPAGE
Lloh3:
	ldr	x20, [x20, _server_capabilities_v2@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_argv_array_push
	mov	x0, x19
	bl	_packet_reader_read
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_2
LBB0_3:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _PACKET_READ_FLUSH@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PACKET_READ_FLUSH@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_die
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_READ_NORMAL,8,3         ; @PACKET_READ_NORMAL
	.comm	_server_capabilities_v2,4,2     ; @server_capabilities_v2
	.comm	_PACKET_READ_FLUSH,8,3          ; @PACKET_READ_FLUSH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected flush after capabilities"

	.no_dead_strip	_process_capabilities_v2
.subsections_via_symbols
