	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_pap
_handle_pap:                            ## @handle_pap
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %r13
	testl	%edx, %edx
	jle	LBB0_6
## %bb.1:
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_ND_TCHECK
	movslq	(%r15), %r12
	cmpl	$3, %ebx
	ja	LBB0_3
## %bb.2:
	movq	%r12, %r13
	jmp	LBB0_6
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_papcode_values@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	callq	_tok2str
	movq	%r12, %rdi
	callq	_ND_PRINT
	movl	4(%r15), %edi
	callq	_ND_TCHECK
	movslq	4(%r15), %rdi
	callq	_ND_PRINT
	leaq	8(%r15), %r14
	movl	8(%r15), %edi
	movl	$2, %esi
	callq	_ND_TCHECK2
	movq	%r14, %rdi
	callq	_EXTRACT_16BITS
	movslq	%eax, %r14
	cmpl	%ebx, %eax
	jg	LBB0_5
## %bb.4:
	cmpl	$3, %eax
	jg	LBB0_7
LBB0_5:
	movq	%r14, %r13
LBB0_6:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ND_PRINT                       ## TAILCALL
LBB0_7:
	leal	-129(%r12), %ecx
	cmpl	$2, %ecx
	jae	LBB0_8
## %bb.20:
	cmpl	$5, %eax
	jb	LBB0_6
## %bb.21:
	movl	16(%r15), %edi
	callq	_ND_TCHECK
	movslq	16(%r15), %rax
	addq	$-5, %r14
	cmpq	%rax, %r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jl	LBB0_25
## %bb.22:
	movl	%eax, %r14d
	leaq	L_.str.9(%rip), %rdi
	callq	_ND_PRINT
	testl	%r14d, %r14d
	jle	LBB0_25
## %bb.23:
	xorl	%ebx, %ebx
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%r15,%rbx,4), %edi
	callq	_ND_TCHECK
	movl	20(%r15,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_safeputchar
	incq	%rbx
	cmpl	%ebx, %r14d
	jne	LBB0_24
	jmp	LBB0_25
LBB0_8:
	cmpl	$128, %r12d
	jne	LBB0_25
## %bb.9:
	cmpl	$6, %eax
	jb	LBB0_6
## %bb.10:
	movl	16(%r15), %edi
	callq	_ND_TCHECK
	movslq	16(%r15), %rbx
	leaq	-5(%r14), %rax
	cmpq	%rbx, %rax
	jl	LBB0_25
## %bb.11:
	leaq	20(%r15), %r12
	leaq	L_.str.7(%rip), %rdi
	callq	_ND_PRINT
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.13:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_ND_TCHECK
	movl	(%r12), %esi
	addq	$4, %r12
	movq	%r13, %rdi
	callq	_safeputchar
	decl	%ebx
	jne	LBB0_14
	jmp	LBB0_15
LBB0_12:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_15:
	movq	%r12, %rax
	subq	%r15, %rax
	sarq	$2, %rax
	cmpq	%r14, %rax
	jge	LBB0_25
## %bb.16:
	movl	(%r12), %edi
	callq	_ND_TCHECK
	movslq	(%r12), %rax
	addq	$4, %r12
	movq	%r12, %rcx
	subq	%r15, %rcx
	sarq	$2, %rcx
	subq	%rcx, %r14
	cmpq	%rax, %r14
	jl	LBB0_25
## %bb.17:
	movl	%eax, %r14d
	leaq	L_.str.8(%rip), %rdi
	callq	_ND_PRINT
	testl	%r14d, %r14d
	jle	LBB0_25
## %bb.18:
	xorl	%ebx, %ebx
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	callq	_ND_TCHECK
	movl	(%r12,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_safeputchar
	incq	%rbx
	cmpl	%ebx, %r14d
	jne	LBB0_19
LBB0_25:
	addq	$8, %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	"[|pap]"

	.comm	_papcode_values,4,2             ## @papcode_values
L_.str.3:                               ## @.str.3
	.asciz	"unknown"

L_.str.7:                               ## @.str.7
	.asciz	", Peer "

L_.str.8:                               ## @.str.8
	.asciz	", Name "

L_.str.9:                               ## @.str.9
	.asciz	", Msg "

	.no_dead_strip	_handle_pap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_pap
_handle_pap:                            ; @handle_pap
	.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
	cmp	w2, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_ND_TCHECK
	ldrsw	x21, [x20]
	cmp	w22, #3
	b.ls	LBB0_14
; %bb.2:
Lloh0:
	adrp	x8, _papcode_values@GOTPAGE
Lloh1:
	ldr	x8, [x8, _papcode_values@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.3@PAGE
Lloh4:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_tok2str
	mov	x0, x21
	bl	_ND_PRINT
	ldr	w0, [x20, #4]
	bl	_ND_TCHECK
	ldrsw	x0, [x20, #4]
	bl	_ND_PRINT
	mov	x23, x20
	ldr	w0, [x23, #8]!
	mov	w1, #2
	bl	_ND_TCHECK2
	mov	x0, x23
	bl	_EXTRACT_16BITS
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	cmp	w0, w22
	b.gt	LBB0_4
; %bb.3:
	cmp	w23, #3
	b.gt	LBB0_5
LBB0_4:
	mov	x21, x23
	b	LBB0_14
LBB0_5:
	sub	w8, w21, #129
	cmp	w8, #2
	b.hs	LBB0_11
; %bb.6:
	cmp	w23, #5
	b.lo	LBB0_13
; %bb.7:
	ldr	w0, [x20, #16]
	bl	_ND_TCHECK
	ldrsw	x21, [x20, #16]
	sub	x8, x23, #5
	cmp	x8, x21
	b.lt	LBB0_22
; %bb.8:
Lloh5:
	adrp	x0, l_.str.9@PAGE
Lloh6:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_ND_PRINT
	cmp	w21, #1
	b.lt	LBB0_22
; %bb.9:
	add	x20, x20, #20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_ND_TCHECK
	ldr	w1, [x20], #4
	mov	x0, x19
	bl	_safeputchar
	subs	w21, w21, #1
	b.ne	LBB0_10
	b	LBB0_22
LBB0_11:
	cmp	w21, #128
	b.ne	LBB0_22
; %bb.12:
	cmp	w23, #6
	b.hs	LBB0_15
LBB0_13:
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
LBB0_14:
	mov	x0, x21
	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
	b	_ND_PRINT
LBB0_15:
	ldr	w0, [x20, #16]
	bl	_ND_TCHECK
	ldrsw	x22, [x20, #16]
	sub	x8, x23, #5
	cmp	x8, x22
	b.lt	LBB0_22
; %bb.16:
	add	x21, x20, #20
Lloh9:
	adrp	x0, l_.str.7@PAGE
Lloh10:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_ND_PRINT
	cmp	w22, #1
	b.lt	LBB0_18
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_ND_TCHECK
	ldr	w1, [x21], #4
	mov	x0, x19
	bl	_safeputchar
	subs	w22, w22, #1
	b.ne	LBB0_17
LBB0_18:
	sub	x8, x21, x20
	cmp	x23, x8, asr #2
	b.le	LBB0_22
; %bb.19:
	ldr	w0, [x21]
	bl	_ND_TCHECK
	ldrsw	x22, [x21], #4
	sub	x8, x21, x20
	sub	x8, x23, x8, asr #2
	cmp	x8, x22
	b.lt	LBB0_22
; %bb.20:
Lloh11:
	adrp	x0, l_.str.8@PAGE
Lloh12:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_ND_PRINT
	cmp	w22, #1
	b.lt	LBB0_22
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_ND_TCHECK
	ldr	w1, [x21], #4
	mov	x0, x19
	bl	_safeputchar
	subs	w22, w22, #1
	b.ne	LBB0_21
LBB0_22:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[|pap]"

	.comm	_papcode_values,4,2             ; @papcode_values
l_.str.3:                               ; @.str.3
	.asciz	"unknown"

l_.str.7:                               ; @.str.7
	.asciz	", Peer "

l_.str.8:                               ; @.str.8
	.asciz	", Name "

l_.str.9:                               ; @.str.9
	.asciz	", Msg "

	.no_dead_strip	_handle_pap
.subsections_via_symbols
