	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %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)
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)
	movl	$1, %edi
	callq	_malloc
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_assert_ptr_not_null
	movq	%rbx, %rdi
	callq	_free
	movq	$4, -56(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movl	$4, %r8d
	callq	_mallctl
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	%rsp, %r12
	movq	_BUFERROR_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_buferror
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_test_fail
	movq	%r12, %rsp
LBB0_2:
	movq	$4, -56(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mallctl
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%rsp, %r12
	movq	_BUFERROR_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_buferror
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_test_fail
	movq	%r12, %rsp
LBB0_4:
	movl	-44(%rbp), %edi
	movl	-48(%rbp), %esi
	leaq	L_.str.3(%rip), %rdx
	callq	_assert_u_eq
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in malloc()"

L_.str.1:                               ## @.str.1
	.asciz	"thread.arena"

	.comm	_BUFERROR_BUF,4,2               ## @BUFERROR_BUF
L_.str.2:                               ## @.str.2
	.asciz	"Error in mallctl(): %s"

L_.str.3:                               ## @.str.3
	.asciz	"Arena index should be same as for main thread"

.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:
	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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w8, [x0]
	stur	w8, [x29, #-44]
	mov	w0, #1
	bl	_malloc
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_assert_ptr_not_null
	mov	x0, x19
	bl	_free
	mov	w8, #4
	stur	x8, [x29, #-56]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	sub	x1, x29, #48
	sub	x2, x29, #56
	sub	x3, x29, #44
	mov	w4, #4
	bl	_mallctl
Lloh7:
	adrp	x20, _BUFERROR_BUF@GOTPAGE
Lloh8:
	ldr	x20, [x20, _BUFERROR_BUF@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, sp
	ldr	w2, [x20]
	mov	x9, x2
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_buferror
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_test_fail
	mov	sp, x21
LBB0_2:
	mov	w8, #4
	stur	x8, [x29, #-56]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	sub	x1, x29, #48
	sub	x2, x29, #56
	mov	x3, #0
	mov	w4, #0
	bl	_mallctl
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, sp
	ldr	w2, [x20]
	mov	x9, x2
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_buferror
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_test_fail
	mov	sp, x21
LBB0_4:
	ldp	w0, w1, [x29, #-48]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_assert_u_eq
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, #0
	sub	sp, x29, #32
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in malloc()"

l_.str.1:                               ; @.str.1
	.asciz	"thread.arena"

	.comm	_BUFERROR_BUF,4,2               ; @BUFERROR_BUF
l_.str.2:                               ; @.str.2
	.asciz	"Error in mallctl(): %s"

l_.str.3:                               ; @.str.3
	.asciz	"Arena index should be same as for main thread"

.subsections_via_symbols
