	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tsb_grow                       ## -- Begin function tsb_grow
	.p2align	4, 0x90
_tsb_grow:                              ## @tsb_grow
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_MAX_ORDER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	cmpq	$1048576, %rax                  ## imm = 0x100000
	movl	$1048576, %ebx                  ## imm = 0x100000
	cmovbq	%rax, %rbx
	movl	$8192, %r14d                    ## imm = 0x2000
	xorl	%r15d, %r15d
	cmpq	$8193, %rbx                     ## imm = 0x2001
	jb	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_tsb_size_to_rss_limit
	cmpq	%r12, %rax
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	addq	%r14, %r14
	cmpq	%rbx, %r14
	jb	LBB0_2
	jmp	LBB0_4
LBB0_1:
                                        ## implicit-def: $rax
LBB0_4:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, %r14
	movq	$-1, %r12
	cmovneq	%rax, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rdx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %rax
	cmpq	%rax, %r14
	ja	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	___GFP_NORETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_tsb_caches@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %r13d
	xorl	%eax, %eax
	callq	_numa_node_id
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_kmem_cache_alloc_node
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rax,%rdx,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	$-1, %r12
	movl	$8192, %r14d                    ## imm = 0x2000
	testq	%r15, %r15
	movl	$0, %r15d
	jne	LBB0_5
LBB0_11:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movq	$-1, (%rax,%rdx,8)
LBB0_13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_tsb_init
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rax,%rbx,8), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax,%rbx,8)
	seta	%dil
LBB0_16:
	movl	8(%rax,%rbx,8), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movslq	12(%rax,%rbx,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_tsb_caches@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edi
	movq	%r13, %rsi
	jmp	LBB0_18
LBB0_19:
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	%r12, (%rax,%rcx,8)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_25
## %bb.20:
	movq	%rdx, %r12
	andl	$7, %r12d
	movq	%rsi, %rbx
	shlq	$2, %rbx
	movq	_tlb_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cheetah_plus@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.21:
	movq	_hypervisor@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	movq	%r15, %rdi
	movq	%r13, %rdx
	jmp	LBB0_24
LBB0_25:
	movq	%r13, 16(%rax,%rcx,8)
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_setup_tsb_params
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_23:
	movq	%r15, %rdi
	callq	___pa
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	___pa
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
LBB0_24:
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_copy_tsb
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, 16(%rax,%rcx,8)
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_setup_tsb_params
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_tsb_context_switch
	xorl	%eax, %eax
	callq	_preempt_disable
	movq	%rbx, %rdi
	callq	_smp_tsb_sync
	xorl	%eax, %eax
	callq	_preempt_enable
	movq	_tsb_caches@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %edi
	movq	%r15, %rsi
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kmem_cache_free                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_MAX_ORDER,8,3                  ## @MAX_ORDER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	___GFP_NORETRY,4,2              ## @__GFP_NORETRY
	.comm	_tsb_caches,8,3                 ## @tsb_caches
	.comm	_tlb_type,8,3                   ## @tlb_type
	.comm	_cheetah_plus,8,3               ## @cheetah_plus
	.comm	_hypervisor,8,3                 ## @hypervisor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tsb_grow                       ; -- Begin function tsb_grow
	.p2align	2
_tsb_grow:                              ; @tsb_grow
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MAX_ORDER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_ORDER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	lsl	x8, x8, x9
	mov	w9, #1048576
	cmp	x8, #256, lsl #12               ; =1048576
	csel	x19, x8, x9, lo
	cmp	x19, #2, lsl #12                ; =8192
	b.ls	LBB0_4
; %bb.1:
	mov	x25, #0
	mov	w21, #8192
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_tsb_size_to_rss_limit
	cmp	x0, x23
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	lsl	x21, x21, #1
	cmp	x21, x19
	b.lo	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x25, #0
	mov	w21, #8192
                                        ; implicit-def: $x0
LBB0_5:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	cmp	x21, x19
Lloh6:
	adrp	x26, ___GFP_NOWARN@GOTPAGE
Lloh7:
	ldr	x26, [x26, ___GFP_NOWARN@GOTPAGEOFF]
	csinv	x28, x0, xzr, ne
Lloh8:
	adrp	x27, ___GFP_NORETRY@GOTPAGE
Lloh9:
	ldr	x27, [x27, ___GFP_NORETRY@GOTPAGEOFF]
	mov	w19, #24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w10, [x26]
	ldr	w11, [x27]
	orr	w10, w11, w10
	cmp	x21, x9, lsl #1
	csel	w23, w10, w8, hi
Lloh16:
	adrp	x8, _tsb_caches@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tsb_caches@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w24, [x8, x25, lsl #2]
	bl	_numa_node_id
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
	bl	_kmem_cache_alloc_node
	mov	x23, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #8]
	madd	x9, x20, x19, x8
	ldr	x9, [x9, #16]
	mov	x28, #-1
	cmp	x9, #0
	ccmp	x25, #0, #4, eq
	mov	w21, #8192
	mov	x25, #0
	b.ne	LBB0_6
; %bb.8:
	cbz	x9, LBB0_10
; %bb.9:
	mov	w9, #24
	mul	x9, x20, x9
	mov	x10, #-1
	str	x10, [x8, x9]
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	x0, x23
	mov	x1, x21
	bl	_tsb_init
	mov	x26, x22
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	x9, [x22, #8]
	mov	w8, #24
	madd	x8, x20, x8, x9
	ldr	x24, [x8, #16]
	cbz	x24, LBB0_13
; %bb.12:
	mov	w10, #24
	mul	x10, x20, x10
	ldr	x9, [x9, x10]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x9, x10
	cset	w0, hi
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	w22, w19, [x8, #8]
                                        ; kill: def $w19 killed $w19 def $x19
	sxtw	x19, w19
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x26
	bl	_spin_unlock_irqrestore
Lloh19:
	adrp	x8, _tsb_caches@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tsb_caches@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x23
	b	LBB0_23
LBB0_16:
	ldr	x8, [x26, #8]
	mov	w9, #24
	mul	x9, x20, x9
	str	x28, [x8, x9]
	cbz	x24, LBB0_20
; %bb.17:
	and	x27, x22, #0x7
Lloh22:
	adrp	x8, _tlb_type@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tlb_type@GOTPAGEOFF]
	lsl	x22, x19, #2
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _cheetah_plus@GOTPAGE
Lloh26:
	ldr	x9, [x9, _cheetah_plus@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.18:
Lloh28:
	adrp	x9, _hypervisor@GOTPAGE
Lloh29:
	ldr	x9, [x9, _hypervisor@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.19:
	mov	x25, x24
	mov	x2, x23
	b	LBB0_22
LBB0_20:
	mov	w9, #24
	madd	x8, x20, x9, x8
	str	x23, [x8, #16]
	mov	x0, x26
	mov	x1, x20
	mov	x2, x21
	bl	_setup_tsb_params
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_irqrestore
LBB0_21:
	mov	x0, x24
	bl	___pa
	mov	x25, x0
	mov	x0, x23
	bl	___pa
	mov	x2, x0
LBB0_22:
	mov	x0, x25
	mov	x1, x22
	mov	x3, x21
	bl	_copy_tsb
	ldr	x8, [x26, #8]
	mov	w9, #24
	madd	x8, x20, x9, x8
	str	x23, [x8, #16]
	mov	x0, x26
	mov	x1, x20
	mov	x2, x21
	bl	_setup_tsb_params
	mov	x0, x26
	bl	_spin_unlock_irqrestore
	mov	x0, x26
	bl	_tsb_context_switch
	bl	_preempt_disable
	mov	x0, x26
	bl	_smp_tsb_sync
	bl	_preempt_enable
Lloh31:
	adrp	x8, _tsb_caches@GOTPAGE
Lloh32:
	ldr	x8, [x8, _tsb_caches@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	w0, [x8, x27, lsl #2]
	mov	x1, x24
LBB0_23:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_kmem_cache_free
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_MAX_ORDER,8,3                  ; @MAX_ORDER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	___GFP_NORETRY,4,2              ; @__GFP_NORETRY
	.comm	_tsb_caches,8,3                 ; @tsb_caches
	.comm	_tlb_type,8,3                   ; @tlb_type
	.comm	_cheetah_plus,8,3               ; @cheetah_plus
	.comm	_hypervisor,8,3                 ; @hypervisor
.subsections_via_symbols
