	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function more_pkt
_more_pkt:                              ## @more_pkt
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_usingexbuf@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_DPRINTF
	movq	_RESP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MORE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_reqver@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_RM_VN_MODE
	movq	_rpkt@GOTPCREL(%rip), %r15
	movl	%eax, 16(%r15)
	movq	_seqno@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_AUTH_SEQ
	movl	%eax, 12(%r15)
	movq	_nitems@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 8(%r15)
	movq	_toaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_frominter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RESP_HEADER_SIZE@GOTPCREL(%rip), %rax
	movq	_databytes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	addq	(%rax), %r8
	movl	$-1, %edx
	movq	%r15, %rcx
	callq	_sendpkt
	movq	_numresppkts@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	(%r15), %rdi
	movq	_exbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_itemsize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	incq	(%r12)
	movl	$0, (%r14)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_databytes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_nitems@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incq	%rax
LBB0_3:
	movq	_itemsize@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rcx, %rbx
	movq	_databytes@GOTPCREL(%rip), %r15
	movq	%rbx, (%r15)
	movq	_nitems@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	addq	%rcx, %rbx
	movq	_RESP_DATA_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jbe	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edi
	callq	_DPRINTF
	movq	_seqno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAXSEQ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edi
	callq	_DPRINTF
	movq	_rpkt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r15), %rax
	jmp	LBB0_8
LBB0_7:
	movl	$1, (%r14)
	movq	_exbuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_usingexbuf,4,2                 ## @usingexbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"request: sending pkt\n"

	.comm	_RESP_BIT,4,2                   ## @RESP_BIT
	.comm	_MORE_BIT,4,2                   ## @MORE_BIT
	.comm	_reqver,4,2                     ## @reqver
	.comm	_rpkt,24,3                      ## @rpkt
	.comm	_seqno,8,3                      ## @seqno
	.comm	_nitems,8,3                     ## @nitems
	.comm	_toaddr,4,2                     ## @toaddr
	.comm	_frominter,4,2                  ## @frominter
	.comm	_RESP_HEADER_SIZE,8,3           ## @RESP_HEADER_SIZE
	.comm	_databytes,8,3                  ## @databytes
	.comm	_numresppkts,4,2                ## @numresppkts
	.comm	_exbuf,8,3                      ## @exbuf
	.comm	_itemsize,8,3                   ## @itemsize
	.comm	_RESP_DATA_SIZE,8,3             ## @RESP_DATA_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"request: giving him more data\n"

L_.str.2:                               ## @.str.2
	.asciz	"request: into extra buffer\n"

	.comm	_MAXSEQ,8,3                     ## @MAXSEQ
	.no_dead_strip	_more_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function more_pkt
_more_pkt:                              ; @more_pkt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x20, _usingexbuf@GOTPAGE
Lloh1:
	ldr	x20, [x20, _usingexbuf@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x24, _itemsize@GOTPAGE
Lloh3:
	ldr	x24, [x24, _itemsize@GOTPAGEOFF]
Lloh4:
	adrp	x21, _databytes@GOTPAGE
Lloh5:
	ldr	x21, [x21, _databytes@GOTPAGEOFF]
Lloh6:
	adrp	x23, _nitems@GOTPAGE
Lloh7:
	ldr	x23, [x23, _nitems@GOTPAGEOFF]
Lloh8:
	adrp	x19, _rpkt@GOTPAGE
Lloh9:
	ldr	x19, [x19, _rpkt@GOTPAGEOFF]
Lloh10:
	adrp	x22, _seqno@GOTPAGE
Lloh11:
	ldr	x22, [x22, _seqno@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_DPRINTF
Lloh14:
	adrp	x8, _RESP_BIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RESP_BIT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _MORE_BIT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MORE_BIT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _reqver@GOTPAGE
Lloh21:
	ldr	x8, [x8, _reqver@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_RM_VN_MODE
	str	w0, [x19, #16]
	ldr	x1, [x22]
	mov	w0, #0
	bl	_AUTH_SEQ
	str	w0, [x19, #12]
	ldr	w0, [x23]
	bl	_htons
	str	w0, [x19, #8]
Lloh23:
	adrp	x8, _toaddr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _toaddr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _frominter@GOTPAGE
Lloh27:
	ldr	x8, [x8, _frominter@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _RESP_HEADER_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RESP_HEADER_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x4, x9, x8
	mov	w2, #-1
	mov	x3, x19
	bl	_sendpkt
Lloh32:
	adrp	x8, _numresppkts@GOTPAGE
Lloh33:
	ldr	x8, [x8, _numresppkts@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x0, [x19]
Lloh34:
	adrp	x8, _exbuf@GOTPAGE
Lloh35:
	ldr	x8, [x8, _exbuf@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x8]
	ldr	w2, [x24]
	bl	_memcpy
	mov	x8, #0
	ldr	x9, [x22]
	add	x9, x9, #1
	str	x9, [x22]
	str	wzr, [x20]
	mov	w9, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
	ldr	x9, [x23]
	add	x9, x9, #1
LBB0_3:
	ldr	x10, [x24]
	add	x8, x8, x10
	add	x10, x8, x10
	str	x8, [x21]
	str	x9, [x23]
Lloh37:
	adrp	x8, _RESP_DATA_SIZE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _RESP_DATA_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cmp	x10, x8
	b.ls	LBB0_6
; %bb.4:
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #4
	bl	_DPRINTF
	ldr	x8, [x22]
Lloh42:
	adrp	x9, _MAXSEQ@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MAXSEQ@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	x0, #0
	b	LBB0_8
LBB0_6:
Lloh45:
	adrp	x1, l_.str.1@PAGE
Lloh46:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #4
	bl	_DPRINTF
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x0, x8, x9
	b	LBB0_8
LBB0_7:
	mov	w8, #1
	str	w8, [x20]
Lloh47:
	adrp	x8, _exbuf@GOTPAGE
Lloh48:
	ldr	x8, [x8, _exbuf@GOTPAGEOFF]
Lloh49:
	ldr	x0, [x8]
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_usingexbuf,4,2                 ; @usingexbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"request: sending pkt\n"

	.comm	_RESP_BIT,4,2                   ; @RESP_BIT
	.comm	_MORE_BIT,4,2                   ; @MORE_BIT
	.comm	_reqver,4,2                     ; @reqver
	.comm	_rpkt,24,3                      ; @rpkt
	.comm	_seqno,8,3                      ; @seqno
	.comm	_nitems,8,3                     ; @nitems
	.comm	_toaddr,4,2                     ; @toaddr
	.comm	_frominter,4,2                  ; @frominter
	.comm	_RESP_HEADER_SIZE,8,3           ; @RESP_HEADER_SIZE
	.comm	_databytes,8,3                  ; @databytes
	.comm	_numresppkts,4,2                ; @numresppkts
	.comm	_exbuf,8,3                      ; @exbuf
	.comm	_itemsize,8,3                   ; @itemsize
	.comm	_RESP_DATA_SIZE,8,3             ; @RESP_DATA_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"request: giving him more data\n"

l_.str.2:                               ; @.str.2
	.asciz	"request: into extra buffer\n"

	.comm	_MAXSEQ,8,3                     ; @MAXSEQ
	.no_dead_strip	_more_pkt
.subsections_via_symbols
