	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_manual_hook_body
_test_manual_hook_body:                 ## @test_manual_hook_body
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	callq	_extent_hooks_prep
	movq	$4, -112(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-76(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mallctl
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assert_d_eq
	movq	$3, -88(%rbp)
	leaq	L_.str.2(%rip), %rdi
	leaq	-64(%rbp), %rbx
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mallctlnametomib
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assert_d_eq
	movl	-76(%rbp), %eax
	movq	%rax, -56(%rbp)
	movq	$8, -96(%rbp)
	movq	_hooks@GOTPCREL(%rip), %rax
	movq	%rax, -104(%rbp)
	movq	-88(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	leaq	-96(%rbp), %rcx
	leaq	-104(%rbp), %r8
	movl	$8, %r9d
	movq	%rbx, %rdi
	callq	_mallctlbymib
	leaq	L_.str.4(%rip), %rbx
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_assert_d_eq
	movq	-72(%rbp), %rax
	movq	56(%rax), %rdi
	movq	_extent_alloc_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_assert_ptr_ne
	movq	-72(%rbp), %rax
	movq	48(%rax), %rdi
	movq	_extent_dalloc_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_assert_ptr_ne
	movq	-72(%rbp), %rax
	movq	40(%rax), %rdi
	movq	_extent_commit_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_assert_ptr_ne
	movq	-72(%rbp), %rax
	movq	32(%rax), %rdi
	movq	_extent_decommit_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_assert_ptr_ne
	movq	-72(%rbp), %rax
	movq	24(%rax), %rdi
	movq	_extent_purge_lazy_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_assert_ptr_ne
	movq	-72(%rbp), %rax
	movq	16(%rax), %rdi
	movq	_extent_purge_forced_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_assert_ptr_ne
	movq	-72(%rbp), %rax
	movq	8(%rax), %rdi
	movq	_extent_split_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_assert_ptr_ne
	movq	-72(%rbp), %rax
	movq	(%rax), %rdi
	movq	_extent_merge_hook@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_assert_ptr_ne
	xorl	%eax, %eax
	callq	_check_background_thread_enabled
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	-76(%rbp), %edi
	callq	_test_extent_body
LBB0_2:
	movq	-88(%rbp), %rsi
	leaq	-64(%rbp), %r14
	leaq	-72(%rbp), %r15
	movl	$8, %r9d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_mallctlbymib
	leaq	L_.str.4(%rip), %r12
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_assert_d_eq
	movq	-88(%rbp), %rsi
	leaq	-96(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_mallctlbymib
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_assert_d_eq
	movq	-72(%rbp), %rdi
	movq	_default_hooks@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	-72(%rbp), %rax
	movq	56(%rax), %rdi
	movq	(%rbx), %rax
	movq	56(%rax), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	-72(%rbp), %rax
	movq	48(%rax), %rdi
	movq	(%rbx), %rax
	movq	48(%rax), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	-72(%rbp), %rax
	movq	40(%rax), %rdi
	movq	(%rbx), %rax
	movq	40(%rax), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	-72(%rbp), %rax
	movq	32(%rax), %rdi
	movq	(%rbx), %rax
	movq	32(%rax), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	-72(%rbp), %rax
	movq	24(%rax), %rdi
	movq	(%rbx), %rax
	movq	24(%rax), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	-72(%rbp), %rax
	movq	16(%rax), %rdi
	movq	(%rbx), %rax
	movq	16(%rax), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	-72(%rbp), %rax
	movq	8(%rax), %rdi
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	-72(%rbp), %rax
	movq	(%rax), %rdi
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdx
	callq	_assert_ptr_eq
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arenas.create"

L_.str.1:                               ## @.str.1
	.asciz	"Unexpected mallctl() failure"

L_.str.2:                               ## @.str.2
	.asciz	"arena.0.extent_hooks"

L_.str.3:                               ## @.str.3
	.asciz	"Unexpected mallctlnametomib() failure"

	.comm	_hooks,64,3                     ## @hooks
L_.str.4:                               ## @.str.4
	.asciz	"Unexpected extent_hooks error"

	.comm	_extent_alloc_hook,4,2          ## @extent_alloc_hook
	.comm	_extent_dalloc_hook,4,2         ## @extent_dalloc_hook
	.comm	_extent_commit_hook,4,2         ## @extent_commit_hook
	.comm	_extent_decommit_hook,4,2       ## @extent_decommit_hook
	.comm	_extent_purge_lazy_hook,4,2     ## @extent_purge_lazy_hook
	.comm	_extent_purge_forced_hook,4,2   ## @extent_purge_forced_hook
	.comm	_extent_split_hook,4,2          ## @extent_split_hook
	.comm	_extent_merge_hook,4,2          ## @extent_merge_hook
	.comm	_default_hooks,8,3              ## @default_hooks
	.no_dead_strip	_test_manual_hook_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_manual_hook_body
_test_manual_hook_body:                 ; @test_manual_hook_body
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_extent_hooks_prep
	mov	w8, #4
	str	x8, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #44
	add	x2, sp, #24
	mov	x3, #0
	mov	w4, #0
	bl	_mallctl
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_assert_d_eq
	mov	w8, #3
	str	x8, [sp, #16]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #48
	add	x2, sp, #16
	bl	_mallctlnametomib
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #0
	bl	_assert_d_eq
	ldr	w8, [sp, #44]
	str	x8, [sp, #56]
	mov	w8, #8
	str	x8, [sp, #32]
Lloh11:
	adrp	x8, _hooks@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hooks@GOTPAGEOFF]
	str	x8, [sp, #8]
	ldr	x1, [sp, #16]
	add	x0, sp, #48
	mov	x2, sp
	add	x3, sp, #32
	add	x4, sp, #8
	mov	w5, #8
	bl	_mallctlbymib
Lloh13:
	adrp	x19, l_.str.4@PAGE
Lloh14:
	add	x19, x19, l_.str.4@PAGEOFF
	mov	w1, #0
	mov	x2, x19
	bl	_assert_d_eq
	ldr	x8, [sp]
	ldr	x0, [x8, #56]
Lloh15:
	adrp	x8, _extent_alloc_hook@GOTPAGE
Lloh16:
	ldr	x8, [x8, _extent_alloc_hook@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_assert_ptr_ne
	ldr	x8, [sp]
	ldr	x0, [x8, #48]
Lloh18:
	adrp	x8, _extent_dalloc_hook@GOTPAGE
Lloh19:
	ldr	x8, [x8, _extent_dalloc_hook@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_assert_ptr_ne
	ldr	x8, [sp]
	ldr	x0, [x8, #40]
Lloh21:
	adrp	x8, _extent_commit_hook@GOTPAGE
Lloh22:
	ldr	x8, [x8, _extent_commit_hook@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_assert_ptr_ne
	ldr	x8, [sp]
	ldr	x0, [x8, #32]
Lloh24:
	adrp	x8, _extent_decommit_hook@GOTPAGE
Lloh25:
	ldr	x8, [x8, _extent_decommit_hook@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_assert_ptr_ne
	ldr	x8, [sp]
	ldr	x0, [x8, #24]
Lloh27:
	adrp	x8, _extent_purge_lazy_hook@GOTPAGE
Lloh28:
	ldr	x8, [x8, _extent_purge_lazy_hook@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_assert_ptr_ne
	ldr	x8, [sp]
	ldr	x0, [x8, #16]
Lloh30:
	adrp	x8, _extent_purge_forced_hook@GOTPAGE
Lloh31:
	ldr	x8, [x8, _extent_purge_forced_hook@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_assert_ptr_ne
	ldr	x8, [sp]
	ldr	x0, [x8, #8]
Lloh33:
	adrp	x8, _extent_split_hook@GOTPAGE
Lloh34:
	ldr	x8, [x8, _extent_split_hook@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_assert_ptr_ne
	ldr	x8, [sp]
	ldr	x0, [x8]
Lloh36:
	adrp	x8, _extent_merge_hook@GOTPAGE
Lloh37:
	ldr	x8, [x8, _extent_merge_hook@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_assert_ptr_ne
	bl	_check_background_thread_enabled
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [sp, #44]
	bl	_test_extent_body
LBB0_2:
	ldr	x1, [sp, #16]
	add	x0, sp, #48
	mov	x4, sp
	mov	x2, #0
	mov	x3, #0
	mov	w5, #8
	bl	_mallctlbymib
Lloh39:
	adrp	x19, l_.str.4@PAGE
Lloh40:
	add	x19, x19, l_.str.4@PAGEOFF
	mov	w1, #0
	mov	x2, x19
	bl	_assert_d_eq
	ldr	x1, [sp, #16]
	add	x0, sp, #48
	mov	x2, sp
	add	x3, sp, #32
	mov	x4, #0
	mov	x5, #0
	bl	_mallctlbymib
	mov	w1, #0
	mov	x2, x19
	bl	_assert_d_eq
	ldr	x0, [sp]
Lloh41:
	adrp	x20, _default_hooks@GOTPAGE
Lloh42:
	ldr	x20, [x20, _default_hooks@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldr	x8, [sp]
	ldr	x0, [x8, #56]
	ldr	x8, [x20]
	ldr	x1, [x8, #56]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldr	x8, [sp]
	ldr	x0, [x8, #48]
	ldr	x8, [x20]
	ldr	x1, [x8, #48]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldr	x8, [sp]
	ldr	x0, [x8, #40]
	ldr	x8, [x20]
	ldr	x1, [x8, #40]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldr	x8, [sp]
	ldr	x0, [x8, #32]
	ldr	x8, [x20]
	ldr	x1, [x8, #32]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldr	x8, [sp]
	ldr	x0, [x8, #24]
	ldr	x8, [x20]
	ldr	x1, [x8, #24]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldr	x8, [sp]
	ldr	x0, [x8, #16]
	ldr	x8, [x20]
	ldr	x1, [x8, #16]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldr	x8, [sp]
	ldr	x0, [x8, #8]
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldr	x8, [sp]
	ldr	x0, [x8]
	ldr	x8, [x20]
	ldr	x1, [x8]
	mov	x2, x19
	bl	_assert_ptr_eq
	ldur	x8, [x29, #-24]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arenas.create"

l_.str.1:                               ; @.str.1
	.asciz	"Unexpected mallctl() failure"

l_.str.2:                               ; @.str.2
	.asciz	"arena.0.extent_hooks"

l_.str.3:                               ; @.str.3
	.asciz	"Unexpected mallctlnametomib() failure"

	.comm	_hooks,64,3                     ; @hooks
l_.str.4:                               ; @.str.4
	.asciz	"Unexpected extent_hooks error"

	.comm	_extent_alloc_hook,4,2          ; @extent_alloc_hook
	.comm	_extent_dalloc_hook,4,2         ; @extent_dalloc_hook
	.comm	_extent_commit_hook,4,2         ; @extent_commit_hook
	.comm	_extent_decommit_hook,4,2       ; @extent_decommit_hook
	.comm	_extent_purge_lazy_hook,4,2     ; @extent_purge_lazy_hook
	.comm	_extent_purge_forced_hook,4,2   ; @extent_purge_forced_hook
	.comm	_extent_split_hook,4,2          ; @extent_split_hook
	.comm	_extent_merge_hook,4,2          ; @extent_merge_hook
	.comm	_default_hooks,8,3              ; @default_hooks
	.no_dead_strip	_test_manual_hook_body
.subsections_via_symbols
