	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_ipfw_newhook
_ng_ipfw_newhook:                       ## @ng_ipfw_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movb	(%rdx), %al
	testb	%al, %al
	je	LBB0_6
## %bb.1:
	cmpb	$48, %al
	jne	LBB0_3
## %bb.2:
	cmpb	$0, 1(%r15)
	jne	LBB0_7
LBB0_3:
	leaq	1(%r15), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_isdigit
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_4
LBB0_6:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %rbx
	movq	-32(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_10
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_M_NETGRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%r14d, 8(%rax)
	movq	%rbx, (%rax)
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_NG_HOOK_SET_PRIVATE
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_NETGRAPH,4,2                 ## @M_NETGRAPH
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ng_ipfw_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_ipfw_newhook
_ng_ipfw_newhook:                       ; @ng_ipfw_newhook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	ldrb	w8, [x2]
	cbz	w8, LBB0_6
; %bb.1:
	cmp	w8, #48
	b.ne	LBB0_3
; %bb.2:
	ldrb	w9, [x20, #1]
	cbnz	w9, LBB0_7
LBB0_3:
	add	x21, x20, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_isdigit
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x21], #1
	cbnz	w8, LBB0_4
LBB0_6:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #10
	bl	_strtol
	ldr	x8, [sp, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_10
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	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
	add	sp, sp, #64
	ret
LBB0_10:
	mov	x20, x0
Lloh2:
	adrp	x8, _M_NETGRAPH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_NETGRAPH@GOTPAGEOFF]
Lloh4:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.11:
	mov	x1, x0
	str	w19, [x0, #8]
	str	x20, [x0]
	mov	x0, x19
	bl	_NG_HOOK_SET_PRIVATE
	mov	w0, #0
	b	LBB0_9
LBB0_12:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_NETGRAPH,4,2                 ; @M_NETGRAPH
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ng_ipfw_newhook
.subsections_via_symbols
