	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thd_start                      ## -- Begin function thd_start
	.p2align	4, 0x90
_thd_start:                             ## @thd_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	$4, -80(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-80(%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
	movl	%ebx, %eax
	notl	%eax
	testb	$3, %al
	je	LBB0_4
## %bb.1:
	movq	$3, -64(%rbp)
	movl	%ebx, %eax
	movl	$2863311531, %ecx               ## imm = 0xAAAAAAAB
	imulq	%rax, %rcx
	shrq	$33, %rcx
	leal	(%rcx,%rcx,2), %eax
	subl	%eax, %ebx
	leaq	l_reltable.thd_start(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	movq	%rcx, -72(%rbp)
	movq	_have_dss@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %r14d
	jne	LBB0_3
## %bb.2:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	testl	%ebx, %ebx
	cmovel	%ebx, %r14d
	leaq	L_.str.5(%rip), %rdi
	leaq	-48(%rbp), %rbx
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_mallctlnametomib
	leaq	L_.str.6(%rip), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_assert_d_eq
	movl	-52(%rbp), %eax
	movq	%rax, -40(%rbp)
	movq	-64(%rbp), %rsi
	leaq	-72(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$8, %r9d
	callq	_mallctlbymib
	leaq	L_.str.7(%rip), %rdx
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_assert_d_eq
LBB0_4:
	movl	-52(%rbp), %edi
	callq	_MALLOCX_ARENA
	movl	$1, %edi
	movl	%eax, %esi
	callq	_mallocx
	movq	%rax, %rbx
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdi
	callq	_assert_ptr_not_null
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dallocx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	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	"Error in arenas.create"

L_.str.2:                               ## @.str.2
	.asciz	"disabled"

L_.str.3:                               ## @.str.3
	.asciz	"primary"

L_.str.4:                               ## @.str.4
	.asciz	"secondary"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.thd_start
l_reltable.thd_start:
	.long	L_.str.2-l_reltable.thd_start
	.long	L_.str.3-l_reltable.thd_start
	.long	L_.str.4-l_reltable.thd_start

	.comm	_have_dss,8,3                   ## @have_dss
	.comm	_EFAULT,4,2                     ## @EFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str.5:                               ## @.str.5
	.asciz	"arena.0.dss"

L_.str.6:                               ## @.str.6
	.asciz	"Error in mallctlnametomib()"

L_.str.7:                               ## @.str.7
	.asciz	"Error in mallctlbymib()"

L_.str.8:                               ## @.str.8
	.asciz	"Unexpected mallocx() error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_thd_start                      ; -- Begin function thd_start
	.p2align	2
_thd_start:                             ; @thd_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mvn	w20, w19
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #4
	str	x8, [sp, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #28
	add	x2, sp, #16
	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
	tst	x20, #0x3
	b.eq	LBB0_2
; %bb.1:
	mov	w10, #3
	and	x8, x19, #0xffffffff
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	x8, x8, x9
	lsr	x8, x8, #33
	add	w8, w8, w8, lsl #1
	sub	w8, w19, w8
Lloh7:
	adrp	x9, l___const.thd_start.dss_precs@PAGE
Lloh8:
	add	x9, x9, l___const.thd_start.dss_precs@PAGEOFF
	ldr	x9, [x9, w8, uxtw #3]
	stp	x9, x10, [sp]
Lloh9:
	adrp	x9, _have_dss@GOTPAGE
Lloh10:
	ldr	x9, [x9, _have_dss@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	w8, #0, #4, eq
Lloh12:
	adrp	x8, _EFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	csel	w19, wzr, w8, eq
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	add	x1, sp, #32
	add	x2, sp, #8
	bl	_mallctlnametomib
Lloh17:
	adrp	x2, l_.str.6@PAGE
Lloh18:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w1, #0
	bl	_assert_d_eq
	ldr	w8, [sp, #28]
	str	x8, [sp, #40]
	ldr	x1, [sp, #8]
	add	x0, sp, #32
	mov	x4, sp
	mov	x2, #0
	mov	x3, #0
	mov	w5, #8
	bl	_mallctlbymib
Lloh19:
	adrp	x2, l_.str.7@PAGE
Lloh20:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_assert_d_eq
LBB0_2:
	ldr	w0, [sp, #28]
	bl	_MALLOCX_ARENA
	mov	x1, x0
	mov	w0, #1
	bl	_mallocx
	mov	x19, x0
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_assert_ptr_not_null
	mov	x0, x19
	mov	w1, #0
	bl	_dallocx
	ldur	x8, [x29, #-24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arenas.create"

l_.str.1:                               ; @.str.1
	.asciz	"Error in arenas.create"

l_.str.2:                               ; @.str.2
	.asciz	"disabled"

l_.str.3:                               ; @.str.3
	.asciz	"primary"

l_.str.4:                               ; @.str.4
	.asciz	"secondary"

	.section	__DATA,__const
	.p2align	3                               ; @__const.thd_start.dss_precs
l___const.thd_start.dss_precs:
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.4

	.comm	_have_dss,8,3                   ; @have_dss
	.comm	_EFAULT,4,2                     ; @EFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str.5:                               ; @.str.5
	.asciz	"arena.0.dss"

l_.str.6:                               ; @.str.6
	.asciz	"Error in mallctlnametomib()"

l_.str.7:                               ; @.str.7
	.asciz	"Error in mallctlbymib()"

l_.str.8:                               ; @.str.8
	.asciz	"Unexpected mallocx() error"

.subsections_via_symbols
