	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_pred1_compress
_ng_pred1_compress:                     ## @ng_pred1_compress
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r13d
	callq	_NG_NODE_PRIVATE
	movq	%rax, %r12
	movq	$0, (%r14)
	movl	(%rbx), %r15d
	incl	36(%rax)
	addl	%r15d, 16(%rax)
	movq	_PRED1_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	cltq
	imulq	$954437177, %rax, %rax          ## imm = 0x38E38E39
	movq	%rax, %rcx
	sarq	$33, %rcx
	shrq	$63, %rax
	addl	%ecx, %eax
	addl	$5, %eax
	cmpl	%eax, %r15d
	jle	LBB0_2
## %bb.1:
	incl	24(%r12)
	movq	%rbx, %rdi
	callq	_NG_FREE_M
	jmp	LBB0_4
LBB0_2:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_m_unshare
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12), %ecx
	addl	$8, %ecx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_m_copydata
	movl	%r15d, %edi
	andl	$32767, %edi                    ## imm = 0x7FFF
	callq	_htons
	movl	%eax, -44(%rbp)
	movq	_PPP_INITFCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	movl	$2, %edx
	callq	_Crc16
	movq	(%r12), %rsi
	addq	$8, %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	callq	_Crc16
	movl	%eax, %r14d
	notl	%r14d
	movq	(%r12), %rsi
	movq	8(%r12), %rdx
	addq	$8, %rsi
	addq	$8, %rdx
	movl	%r13d, %edi
	movl	%r15d, %ecx
	callq	_Pred1Compress
	cmpl	%r15d, %eax
	jge	LBB0_7
## %bb.6:
	movq	8(%r12), %rcx
	movl	$128, %edx
	orl	-44(%rbp), %edx
	movl	%edx, (%rcx)
	incl	32(%r12)
	movl	%eax, %r15d
	jmp	LBB0_8
LBB0_7:
	movq	(%r12), %rcx
	movl	-44(%rbp), %eax
	movl	%eax, (%rcx)
	incl	28(%r12)
LBB0_8:
	movzbl	%r14b, %eax
	movslq	%r15d, %rbx
	movl	%eax, 8(%rcx,%rbx,4)
	sarl	$8, %r14d
	movl	%r14d, 12(%rcx,%rbx,4)
	addl	$4, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_m_copyback
	movl	%ebx, %esi
	subl	(%r14), %esi
	jle	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_m_freem
LBB0_3:
	incl	24(%r12)
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	jge	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_m_adj
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	addl	%ebx, 20(%r12)
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PRED1_BUF_SIZE,4,2             ## @PRED1_BUF_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_PPP_INITFCS,4,2                ## @PPP_INITFCS
	.no_dead_strip	_ng_pred1_compress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_pred1_compress
_ng_pred1_compress:                     ; @ng_pred1_compress
	.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	x20, x2
	mov	x21, x1
	mov	x23, x0
	bl	_NG_NODE_PRIVATE
	mov	x19, x0
	str	xzr, [x20]
	ldr	w22, [x21]
	ldr	w8, [x0, #36]
	add	w8, w8, #1
	str	w8, [x0, #36]
	ldr	w8, [x0, #16]
	add	w8, w8, w22
	str	w8, [x0, #16]
Lloh0:
	adrp	x8, _PRED1_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRED1_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #3
	mov	w9, #36409
	movk	w9, #14563, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	add	w8, w8, #5
	cmp	w22, w8
	b.le	LBB0_2
; %bb.1:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	mov	x0, x21
	bl	_NG_FREE_M
	b	LBB0_9
LBB0_2:
Lloh3:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_m_unshare
	cbz	x0, LBB0_8
; %bb.3:
	mov	x21, x0
	ldr	w8, [x19]
	add	w3, w8, #8
	mov	w1, #0
	mov	x2, x22
	bl	_m_copydata
	and	w0, w22, #0x7fff
	bl	_htons
	str	w0, [sp, #12]
Lloh6:
	adrp	x8, _PPP_INITFCS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPP_INITFCS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	w2, #2
	bl	_Crc16
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x2, x22
	bl	_Crc16
	mvn	w24, w0
	ldp	x8, x9, [x19]
	add	x1, x8, #8
	add	x2, x9, #8
	mov	x0, x23
	mov	x3, x22
	bl	_Pred1Compress
	cmp	w0, w22
	b.ge	LBB0_5
; %bb.4:
	ldr	x3, [x19, #8]
	ldr	w8, [sp, #12]
	orr	w8, w8, #0x80
	str	w8, [x3]
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	mov	x22, x0
	b	LBB0_6
LBB0_5:
	ldr	x3, [x19]
	ldr	w8, [sp, #12]
	str	w8, [x3]
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
LBB0_6:
	add	w8, w22, #2
	and	w9, w24, #0xff
	add	x8, x3, w8, sxtw #2
	asr	w10, w24, #8
	stp	w9, w10, [x8]
	add	w22, w22, #4
	mov	x0, x21
	mov	w1, #0
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_m_copyback
	ldr	w8, [x21]
	subs	w1, w22, w8
	b.le	LBB0_11
; %bb.7:
	mov	x0, x21
	bl	_m_freem
LBB0_8:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_10:
	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_11:
	b.ge	LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_m_adj
LBB0_13:
	mov	w0, #0
	str	x21, [x20]
	ldr	w8, [x19, #20]
	add	w8, w8, w22
	str	w8, [x19, #20]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PRED1_BUF_SIZE,4,2             ; @PRED1_BUF_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_PPP_INITFCS,4,2                ; @PPP_INITFCS
	.no_dead_strip	_ng_pred1_compress
.subsections_via_symbols
