	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ng_tee_newhook
_ng_tee_newhook:                        ## @ng_tee_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	callq	_NG_NODE_PRIVATE
	movq	%rax, %rbx
	movq	%rax, %r12
	movq	_NG_TEE_HOOK_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_NG_TEE_HOOK_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	movq	_NG_TEE_HOOK_RIGHT2LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:
	movq	_NG_TEE_HOOK_LEFT2RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_1:
	addq	$48, %rbx
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, 16(%r12)
LBB0_3:
	movq	%rbx, 8(%r12)
	movq	%rbx, 80(%r12)
	jmp	LBB0_17
LBB0_5:
	movq	56(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, 64(%r12)
LBB0_7:
	movq	%r12, 56(%r12)
	movq	%r12, 32(%r12)
	movq	%r12, %rbx
	jmp	LBB0_17
LBB0_9:
	addq	$72, %rbx
	cmpq	$0, 56(%r12)
	je	LBB0_16
## %bb.10:
	movq	%rbx, 64(%r12)
	jmp	LBB0_17
LBB0_12:
	addq	$24, %rbx
	cmpq	$0, 8(%r12)
	je	LBB0_14
## %bb.13:
	movq	%rbx, 16(%r12)
	jmp	LBB0_17
LBB0_16:
	movq	%rbx, 56(%r12)
	jmp	LBB0_17
LBB0_14:
	movq	%rbx, 8(%r12)
LBB0_17:
	movl	%r14d, 4(%rbx)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bzero
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_NG_HOOK_SET_PRIVATE
	xorl	%eax, %eax
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NG_TEE_HOOK_RIGHT,4,2          ## @NG_TEE_HOOK_RIGHT
	.comm	_NG_TEE_HOOK_LEFT,4,2           ## @NG_TEE_HOOK_LEFT
	.comm	_NG_TEE_HOOK_RIGHT2LEFT,4,2     ## @NG_TEE_HOOK_RIGHT2LEFT
	.comm	_NG_TEE_HOOK_LEFT2RIGHT,4,2     ## @NG_TEE_HOOK_LEFT2RIGHT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ng_tee_newhook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ng_tee_newhook
_ng_tee_newhook:                        ; @ng_tee_newhook
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x1
	bl	_NG_NODE_PRIVATE
	mov	x20, x0
Lloh0:
	adrp	x8, _NG_TEE_HOOK_RIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NG_TEE_HOOK_RIGHT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _NG_TEE_HOOK_LEFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NG_TEE_HOOK_LEFT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.2:
Lloh6:
	adrp	x8, _NG_TEE_HOOK_RIGHT2LEFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NG_TEE_HOOK_RIGHT2LEFT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.3:
Lloh9:
	adrp	x8, _NG_TEE_HOOK_LEFT2RIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NG_TEE_HOOK_LEFT2RIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_5:
	add	x21, x20, #48
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	str	x8, [x20, #16]
LBB0_7:
	str	x21, [x20, #8]
	str	x21, [x20, #80]
	b	LBB0_17
LBB0_8:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_10
; %bb.9:
	str	x8, [x20, #64]
LBB0_10:
	str	x20, [x20, #56]
	str	x20, [x20, #32]
	mov	x21, x20
	b	LBB0_17
LBB0_11:
	add	x21, x20, #72
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_15
; %bb.12:
	str	x21, [x20, #64]
	b	LBB0_17
LBB0_13:
	add	x21, x20, #24
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_16
; %bb.14:
	str	x21, [x20, #16]
	b	LBB0_17
LBB0_15:
	str	x21, [x20, #56]
	b	LBB0_17
LBB0_16:
	str	x21, [x20, #8]
LBB0_17:
	str	w19, [x21, #4]
	mov	x0, x21
	mov	w1, #4
	bl	_bzero
	mov	x0, x19
	mov	x1, x21
	bl	_NG_HOOK_SET_PRIVATE
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NG_TEE_HOOK_RIGHT,4,2          ; @NG_TEE_HOOK_RIGHT
	.comm	_NG_TEE_HOOK_LEFT,4,2           ; @NG_TEE_HOOK_LEFT
	.comm	_NG_TEE_HOOK_RIGHT2LEFT,4,2     ; @NG_TEE_HOOK_RIGHT2LEFT
	.comm	_NG_TEE_HOOK_LEFT2RIGHT,4,2     ; @NG_TEE_HOOK_LEFT2RIGHT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ng_tee_newhook
.subsections_via_symbols
