	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hook_remove
_hook_remove:                           ## @hook_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_HOOKPROC_MAGIC_ONLIST@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_PJDLOG_ASSERT
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setg	%dil
	callq	_PJDLOG_ASSERT
	movq	_hookprocs_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_owned
	movl	%eax, %edi
	callq	_PJDLOG_ASSERT
	movq	_hp_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hookprocs@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	_HOOKPROC_MAGIC_ALLOCATED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOOKPROC_MAGIC_ONLIST,8,3      ## @HOOKPROC_MAGIC_ONLIST
	.comm	_hookprocs_lock,4,2             ## @hookprocs_lock
	.comm	_hookprocs,4,2                  ## @hookprocs
	.comm	_hp_next,4,2                    ## @hp_next
	.comm	_HOOKPROC_MAGIC_ALLOCATED,8,3   ## @HOOKPROC_MAGIC_ALLOCATED
	.no_dead_strip	_hook_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hook_remove
_hook_remove:                           ; @hook_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HOOKPROC_MAGIC_ONLIST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOOKPROC_MAGIC_ONLIST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_PJDLOG_ASSERT
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, gt
	bl	_PJDLOG_ASSERT
Lloh3:
	adrp	x0, _hookprocs_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _hookprocs_lock@GOTPAGEOFF]
	bl	_mtx_owned
	bl	_PJDLOG_ASSERT
Lloh5:
	adrp	x8, _hp_next@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hp_next@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x0, _hookprocs@GOTPAGE
Lloh9:
	ldr	x0, [x0, _hookprocs@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_REMOVE
Lloh10:
	adrp	x8, _HOOKPROC_MAGIC_ALLOCATED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HOOKPROC_MAGIC_ALLOCATED@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HOOKPROC_MAGIC_ONLIST,8,3      ; @HOOKPROC_MAGIC_ONLIST
	.comm	_hookprocs_lock,4,2             ; @hookprocs_lock
	.comm	_hookprocs,4,2                  ; @hookprocs
	.comm	_hp_next,4,2                    ; @hp_next
	.comm	_HOOKPROC_MAGIC_ALLOCATED,8,3   ; @HOOKPROC_MAGIC_ALLOCATED
	.no_dead_strip	_hook_remove
.subsections_via_symbols
