	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_tag_newhook
_ng_tag_newhook:                        ## @ng_tag_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	_M_NETGRAPH_TAG@GOTPCREL(%rip), %r13
	movl	(%r13), %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_1
## %bb.2:
	movq	%rax, %r12
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_NG_HOOK_SET_PRIVATE
	movq	_ng_tag_default_in@GOTPCREL(%rip), %rsi
	movl	%r15d, %edi
	callq	_ng_tag_setdata_in
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	_ng_tag_default_out@GOTPCREL(%rip), %rsi
	movl	%r15d, %edi
	callq	_ng_tag_setdata_out
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	movl	$7, %edx
	callq	_strncpy
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movb	$0, 7(%rax)
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	movl	$7, %edx
	callq	_strncpy
	movq	(%r12), %rax
	movq	(%rax), %rax
	movb	$0, 7(%rax)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NETGRAPH_TAG,4,2             ## @M_NETGRAPH_TAG
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ng_tag_default_in,4,2          ## @ng_tag_default_in
	.comm	_ng_tag_default_out,4,2         ## @ng_tag_default_out
	.no_dead_strip	_ng_tag_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_tag_newhook
_ng_tag_newhook:                        ; @ng_tag_newhook
	.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
	mov	x19, x2
	mov	x22, x1
Lloh0:
	adrp	x23, _M_NETGRAPH_TAG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _M_NETGRAPH_TAG@GOTPAGEOFF]
Lloh2:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	bl	_NG_HOOK_SET_PRIVATE
Lloh8:
	adrp	x1, _ng_tag_default_in@GOTPAGE
Lloh9:
	ldr	x1, [x1, _ng_tag_default_in@GOTPAGEOFF]
	mov	x0, x22
	bl	_ng_tag_setdata_in
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	b	LBB0_5
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x1, _ng_tag_default_out@GOTPAGE
Lloh14:
	ldr	x1, [x1, _ng_tag_default_out@GOTPAGEOFF]
	mov	x0, x22
	bl	_ng_tag_setdata_out
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_free
LBB0_6:
	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
	ret
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
	mov	x1, x19
	mov	w2, #7
	bl	_strncpy
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	strb	wzr, [x8, #7]
	ldr	x8, [x20]
	ldr	x0, [x8]
	mov	x1, x19
	mov	w2, #7
	bl	_strncpy
	ldr	x8, [x20]
	ldr	x8, [x8]
	strb	wzr, [x8, #7]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NETGRAPH_TAG,4,2             ; @M_NETGRAPH_TAG
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ng_tag_default_in,4,2          ; @ng_tag_default_in
	.comm	_ng_tag_default_out,4,2         ; @ng_tag_default_out
	.no_dead_strip	_ng_tag_newhook
.subsections_via_symbols
