	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mesh_table_alloc
_mesh_table_alloc:                      ## @mesh_table_alloc
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r13
	movl	$1, %r12d
	movl	%r14d, %ecx
	shll	%cl, %r12d
	leal	(,%r12,4), %r15d
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movl	(%rbx), %esi
	movl	%r15d, %edi
	callq	_kmalloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	%r14d, (%r13)
	decl	%r12d
	movl	%r12d, 4(%r13)
	leaq	28(%r13), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	24(%r13), %rdi
	movl	$4, %esi
	callq	_get_random_bytes
	cmpl	$0, 4(%r13)
	js	LBB0_6
## %bb.4:
	movq	$-1, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rdi
	addq	%rbx, %rdi
	callq	_spin_lock_init
	movslq	4(%r13), %rax
	incq	%r14
	addq	$4, %rbx
	cmpq	%rax, %r14
	jl	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	jmp	LBB0_11
LBB0_8:
	movq	32(%r13), %rdi
	callq	_kfree
LBB0_9:
	movq	%r13, %rdi
	callq	_kfree
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_mesh_table_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mesh_table_alloc
_mesh_table_alloc:                      ; @mesh_table_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #40
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	mov	w8, #1
	lsl	w23, w8, w20
	lsl	w21, w23, #2
	ldr	w1, [x22]
	mov	x0, x21
	bl	_kzalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.3:
	sub	w8, w23, #1
	stp	w20, w8, [x19]
	add	x0, x19, #28
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #24
	mov	w1, #4
	bl	_get_random_bytes
	ldr	w8, [x19, #4]
	tbnz	w8, #31, LBB0_6
; %bb.4:
	mov	x20, #0
	mov	x21, #-1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_spin_lock_init
	ldrsw	x8, [x19, #4]
	add	x21, x21, #1
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
	add	x0, x19, #8
	bl	_spin_lock_init
	b	LBB0_9
LBB0_7:
	ldr	x0, [x19, #32]
	bl	_kfree
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_mesh_table_alloc
.subsections_via_symbols
