	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thd_producer
_thd_producer:                          ## @thd_producer
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$4, -56(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %rsi
	leaq	-56(%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	_REMOTE_NALLOC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	movq	_MALLOCX_TCACHE_NONE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %ebx
	movl	-44(%rbp), %edi
	callq	_MALLOCX_ARENA
	orl	%eax, %ebx
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_mallocx
	movq	%rax, (%r14,%r12,8)
	incq	%r12
	movl	(%r15), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpq	%rcx, %r12
	jb	LBB0_2
LBB0_3:
	cmpl	%eax, %r12d
	jae	LBB0_6
## %bb.4:
	movl	%r12d, %ebx
	movq	_MALLOCX_TCACHE_NONE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r12d
	xorl	%edi, %edi
	callq	_MALLOCX_ARENA
	orl	%eax, %r12d
	movl	$1, %edi
	movl	%r12d, %esi
	callq	_mallocx
	movq	%rax, (%r14,%rbx,8)
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arenas.create"

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

	.comm	_REMOTE_NALLOC,4,2              ## @REMOTE_NALLOC
	.comm	_MALLOCX_TCACHE_NONE,4,2        ## @MALLOCX_TCACHE_NONE
	.no_dead_strip	_thd_producer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thd_producer
_thd_producer:                          ; @thd_producer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w8, #4
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #12
	mov	x2, sp
	mov	x3, #0
	mov	w4, #0
	bl	_mallctl
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #0
	bl	_assert_d_eq
Lloh4:
	adrp	x20, _REMOTE_NALLOC@GOTPAGE
Lloh5:
	ldr	x20, [x20, _REMOTE_NALLOC@GOTPAGEOFF]
	ldr	w8, [x20]
	add	w9, w8, #1
Lloh6:
	adrp	x21, _MALLOCX_TCACHE_NONE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _MALLOCX_TCACHE_NONE@GOTPAGEOFF]
	cmp	w9, #3
	b.hs	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_4
LBB0_2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x21]
	ldr	w0, [sp, #12]
	bl	_MALLOCX_ARENA
	orr	w1, w0, w23
	mov	w0, #1
	bl	_mallocx
	str	x0, [x19, x22, lsl #3]
	add	x22, x22, #1
	ldr	w8, [x20]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	cmp	x22, x9
	b.lo	LBB0_3
LBB0_4:
	cmp	w22, w8
	b.hs	LBB0_7
; %bb.5:
	mov	w22, w22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x21]
	mov	w0, #0
	bl	_MALLOCX_ARENA
	orr	w1, w0, w23
	mov	w0, #1
	bl	_mallocx
	str	x0, [x19, x22, lsl #3]
	add	x22, x22, #1
	ldr	w8, [x20]
	cmp	x22, x8
	b.lo	LBB0_6
LBB0_7:
	mov	x0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arenas.create"

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

	.comm	_REMOTE_NALLOC,4,2              ; @REMOTE_NALLOC
	.comm	_MALLOCX_TCACHE_NONE,4,2        ; @MALLOCX_TCACHE_NONE
	.no_dead_strip	_thd_producer
.subsections_via_symbols
