	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ppp_newhook
_ng_ppp_newhook:                        ## @ng_ppp_newhook
	.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	%rdx, %r14
	movq	%rsi, %r12
	movl	%edi, %r13d
	callq	_NG_NODE_PRIVATE
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_NG_PPP_HOOK_LINK_PREFIX@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_ng_ppp_hook_names@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	movl	$-1, %r12d
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.17:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	$24, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%r13
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rsi
	addq	$16, %rbx
	testq	%rsi, %rsi
	jne	LBB0_18
## %bb.21:
	movl	%r13d, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_3:
	movl	(%r15), %edi
	callq	_strlen
	movslq	%eax, %rbx
	movsbl	(%r14,%rbx), %edi
	callq	_isdigit
	movq	_EINVAL@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:
	addq	%rbx, %r14
	cmpb	$48, (%r14)
	jne	LBB0_6
## %bb.5:
	cmpb	$0, 1(%r14)
	jne	LBB0_11
LBB0_6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r12
	movq	-72(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_11
## %bb.7:
	testl	%r12d, %r12d
	js	LBB0_11
## %bb.8:
	movq	_NG_PPP_MAX_LINKS@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_11
## %bb.9:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rdx), %rax
	movslq	%r12d, %rcx
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_12
## %bb.10:
	movq	_EISCONN@GOTPCREL(%rip), %r15
LBB0_11:
	movl	(%r15), %ebx
	jmp	LBB0_29
LBB0_2:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_19:
	movl	%r13d, %ecx
	leaq	(,%rcx,8), %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rbx
	movq	(%r15), %rax
	movl	%r13d, %r12d
LBB0_22:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_23:
	shlq	$4, %rcx
	cmpq	$0, 8(%rax,%rcx)
	je	LBB0_24
## %bb.25:
	cmpq	$0, (%rbx)
	je	LBB0_27
## %bb.26:
	movq	_EISCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
LBB0_27:
	movl	(%rax,%rcx), %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_NG_HOOK_SET_RCVDATA
LBB0_28:
	movq	%r14, (%rbx)
	movslq	%r12d, %rsi
	movq	%r14, %rdi
	callq	_NG_HOOK_SET_PRIVATE
	xorl	%ebx, %ebx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_ng_ppp_update
LBB0_29:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	(%rax,%rcx), %rbx
	addq	$8, %rbx
	notl	%r12d
	cmpq	$0, (%rax,%rcx)
	je	LBB0_14
## %bb.13:
	cmpl	$0, 16(%rdx)
	je	LBB0_15
LBB0_14:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_15:
	cmpl	$0, (%rdx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_28
## %bb.16:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_PPP_HOOK_LINK_PREFIX,4,2    ## @NG_PPP_HOOK_LINK_PREFIX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NG_PPP_MAX_LINKS,4,2           ## @NG_PPP_MAX_LINKS
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ng_ppp_hook_names,8,3          ## @ng_ppp_hook_names
	.no_dead_strip	_ng_ppp_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ppp_newhook
_ng_ppp_newhook:                        ; @ng_ppp_newhook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_NG_NODE_PRIVATE
	mov	x21, x0
Lloh0:
	adrp	x24, _NG_PPP_HOOK_LINK_PREFIX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NG_PPP_HOOK_LINK_PREFIX@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x23
	bl	_strncmp
	cbz	x0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x24, _ng_ppp_hook_names@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ng_ppp_hook_names@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_17
; %bb.2:
	mov	x23, #0
	mov	w25, #24
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x8, [x24]
	ldr	x1, [x8, x25]
	add	x25, x25, #16
	cbnz	x1, LBB0_3
; %bb.5:
	mov	x22, #0
	and	x9, x23, #0xffffffff
	b	LBB0_18
LBB0_6:
	ldr	w0, [x24]
	bl	_strlen
	add	x22, x22, w0, sxtw
	ldrsb	w0, [x22]
	bl	_isdigit
	cbz	w0, LBB0_23
; %bb.7:
	ldrb	w8, [x22]
	cmp	w8, #48
	b.ne	LBB0_9
; %bb.8:
	ldrb	w8, [x22, #1]
	cbnz	w8, LBB0_23
LBB0_9:
	add	x1, sp, #8
	mov	x0, x22
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	cbnz	w9, LBB0_24
; %bb.10:
	tbnz	w0, #31, LBB0_24
; %bb.11:
Lloh6:
	adrp	x9, _NG_PPP_MAX_LINKS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NG_PPP_MAX_LINKS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w9, w0
	b.le	LBB0_24
; %bb.12:
	ldr	x8, [x21, #24]
	lsl	x9, x0, #32
	add	x22, x8, x9, asr #28
	ldr	x9, [x22, #8]!
	cbnz	x9, LBB0_22
; %bb.13:
	sxtw	x9, w0
	mvn	w23, w0
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_27
; %bb.14:
	ldr	w8, [x21, #16]
	cbnz	w8, LBB0_27
; %bb.15:
	ldr	w8, [x21]
	cmp	w8, #0
	b.le	LBB0_27
; %bb.16:
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_24
LBB0_17:
	mov	x9, #0
	mov	x22, #0
LBB0_18:
	mov	w23, #-1
	b	LBB0_20
LBB0_19:
	and	x9, x23, #0xffffffff
	ldr	x8, [x21, #8]
	add	x22, x8, w23, uxtw #3
	ldr	x8, [x24]
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_20:
	add	x10, x8, x9, lsl #4
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_23
; %bb.21:
	ldr	x10, [x22]
	cbz	x10, LBB0_26
LBB0_22:
Lloh11:
	adrp	x8, _EISCONN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
LBB0_25:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_26:
	lsl	x9, x9, #4
	ldr	w1, [x8, x9]
	mov	x0, x20
	bl	_NG_HOOK_SET_RCVDATA
LBB0_27:
	str	x20, [x22]
	sxtw	x1, w23
	mov	x0, x20
	bl	_NG_HOOK_SET_PRIVATE
	mov	x0, x19
	mov	w1, #0
	bl	_ng_ppp_update
	mov	w0, #0
	b	LBB0_25
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_PPP_HOOK_LINK_PREFIX,4,2    ; @NG_PPP_HOOK_LINK_PREFIX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NG_PPP_MAX_LINKS,4,2           ; @NG_PPP_MAX_LINKS
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ng_ppp_hook_names,8,3          ; @ng_ppp_hook_names
	.no_dead_strip	_ng_ppp_newhook
.subsections_via_symbols
