	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hook_remove                    ## -- Begin function hook_remove
	.p2align	4, 0x90
_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_config_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_hooks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, %rax
	setbe	%cl
	movq	_HOOK_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	(%rax,%rdx,4), %rdx
	cmpq	%rbx, %rdx
	seta	%dl
	movl	%ebx, %esi
	subl	%eax, %esi
	testb	$3, %sil
	sete	%al
	andb	%cl, %al
	andb	%dl, %al
	movzbl	%al, %edi
	callq	_assert
LBB0_2:
	movq	_hooks_mu@GOTPCREL(%rip), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_malloc_mutex_lock
	movq	%rbx, %rdi
	callq	_hook_remove_locked
	movq	%r14, %rdi
	callq	_tsd_global_slow_dec
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_malloc_mutex_unlock            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_config_debug,8,3               ## @config_debug
	.comm	_hooks,8,3                      ## @hooks
	.comm	_HOOK_MAX,8,3                   ## @HOOK_MAX
	.comm	_hooks_mu,4,2                   ## @hooks_mu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hook_remove                    ; -- Begin function hook_remove
	.p2align	2
_hook_remove:                           ; @hook_remove
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _config_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_debug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _hooks@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hooks@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x20
Lloh6:
	adrp	x9, _HOOK_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HOOK_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x9, x8, x9, lsl #2
	ccmp	x9, x20, #0, ls
	cset	w9, hi
	sub	w8, w20, w8
	tst	x8, #0x3
	cset	w8, eq
	and	w0, w9, w8
	bl	_assert
LBB0_2:
Lloh9:
	adrp	x21, _hooks_mu@GOTPAGE
Lloh10:
	ldr	x21, [x21, _hooks_mu@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_malloc_mutex_lock
	mov	x0, x20
	bl	_hook_remove_locked
	mov	x0, x19
	bl	_tsd_global_slow_dec
	mov	x0, x19
	mov	x1, x21
	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
	b	_malloc_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_config_debug,8,3               ; @config_debug
	.comm	_hooks,8,3                      ; @hooks
	.comm	_HOOK_MAX,8,3                   ; @HOOK_MAX
	.comm	_hooks_mu,4,2                   ; @hooks_mu
.subsections_via_symbols
