	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_create                    ## -- Begin function mesh_create
	.p2align	4, 0x90
_mesh_create:                           ## @mesh_create
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$104, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_timehist_setup
	movl	%eax, %r12d
	movl	%eax, 96(%rbx)
	movq	(%r14), %rax
	movl	8(%rax), %edi
	callq	_sldns_buffer_new
	movl	%eax, 92(%rbx)
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	(%r15), %eax
	movl	%eax, 88(%rbx)
	movq	%r14, 80(%rbx)
	leaq	76(%rbx), %rdi
	movq	_mesh_state_compare@GOTPCREL(%rip), %r15
	movq	%r15, %rsi
	callq	_rbtree_init
	movq	%rbx, %rdi
	addq	$72, %rdi
	movq	%r15, %rsi
	callq	_rbtree_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	%ecx, %edx
	incl	%edx
	shrl	$31, %edx
	addl	%edx, %ecx
	incl	%ecx
	sarl	%ecx
	movl	%ecx, 4(%rbx)
	movslq	4(%rax), %rax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 16(%rbx)
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	subl	%ecx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	cltq
	movq	%rax, 8(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_log_err
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mesh area alloc: out of memory"

	.comm	_mesh_state_compare,4,2         ## @mesh_state_compare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mesh_create                    ; -- Begin function mesh_create
	.p2align	2
_mesh_create:                           ; @mesh_create
	.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	x21, x0
	mov	w0, #1
	mov	w1, #104
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	bl	_timehist_setup
	mov	x22, x0
	str	w0, [x19, #96]
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_sldns_buffer_new
	str	w0, [x19, #92]
	cbz	w22, LBB0_5
; %bb.2:
	cbz	w0, LBB0_5
; %bb.3:
	ldr	w8, [x21]
	str	w8, [x19, #88]
	str	x20, [x19, #80]
	add	x0, x19, #76
Lloh0:
	adrp	x21, _mesh_state_compare@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mesh_state_compare@GOTPAGEOFF]
	mov	x1, x21
	bl	_rbtree_init
	add	x0, x19, #72
	mov	x1, x21
	bl	_rbtree_init
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
	ldr	x8, [x20]
	ldp	w9, w8, [x8]
	add	w10, w9, #1
	add	w11, w9, #2
	cmp	w10, #0
	csinc	w10, w11, w9, lt
	asr	w10, w10, #1
	stp	w9, w10, [x19]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	sxtw	x10, w9
	mov	w11, #1000
	msub	w8, w9, w11, w8
	mul	w8, w8, w11
	sxtw	x8, w8
	stp	x8, x10, [x19, #8]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_free
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log_err
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mesh area alloc: out of memory"

	.comm	_mesh_state_compare,4,2         ; @mesh_state_compare
.subsections_via_symbols
