	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resize
_resize:                                ## @resize
	.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, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	movq	_inflate_threshold@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_halve_threshold@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_tnode_child_length
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_tnode_free_safe
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_4:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_tnode_child_length
	decl	%eax
	cmpl	%eax, %ebx
	jne	LBB0_9
LBB0_5:
	movq	%r14, %rdi
	callq	_tnode_child_length
	testl	%eax, %eax
	jle	LBB0_23
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %r15
	testq	%r15, %r15
	jne	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	callq	_tnode_child_length
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_23
LBB0_9:
	movq	%r14, %rdi
	callq	_check_tnode
	movq	%r14, %rdi
	callq	_node_parent
	testl	%eax, %eax
	cmoveq	_halve_threshold_root@GOTPCREL(%rip), %r15
	cmoveq	_inflate_threshold_root@GOTPCREL(%rip), %r12
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %r12d
	movq	_MAX_WORK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r15
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	jle	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	decl	%r13d
	movq	%r15, %rdi
	callq	_tnode_child_length
	cltq
	addq	%rax, %rbx
	movslq	(%r15), %rax
	subq	%rax, %rbx
	imulq	$50, %rbx, %rbx
	movq	%r15, %rdi
	callq	_tnode_child_length
	imull	%r12d, %eax
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_inflate
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
	jmp	LBB0_16
LBB0_14:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_node_set_parent
	movq	%r14, %rdi
	callq	_tnode_free_safe
	jmp	LBB0_24
LBB0_15:
	movl	$-1, %r13d
LBB0_16:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	_MAX_WORK@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	callq	_check_tnode
	cmpl	(%rbx), %r13d
	jne	LBB0_24
## %bb.17:
	incl	%r13d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r14
	cmpl	$2, 16(%r15)
	jl	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	decl	%r13d
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	callq	_tnode_child_length
	subl	(%r14), %eax
	imull	$100, %eax, %ebx
	movq	%r14, %rdi
	callq	_tnode_child_length
	imull	%r12d, %eax
	cmpl	%eax, %ebx
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_halve
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
LBB0_22:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_tnode_child_length
	decl	%eax
	cmpl	%eax, %ebx
	je	LBB0_5
LBB0_23:
	movq	%r14, %r15
LBB0_24:
	movq	%r15, %rax
	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	"In tnode_resize %p inflate_threshold=%d threshold=%d\n"

	.comm	_inflate_threshold,4,2          ## @inflate_threshold
	.comm	_halve_threshold,4,2            ## @halve_threshold
	.comm	_inflate_threshold_root,4,2     ## @inflate_threshold_root
	.comm	_halve_threshold_root,4,2       ## @halve_threshold_root
	.comm	_MAX_WORK,4,2                   ## @MAX_WORK
	.no_dead_strip	_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resize
_resize:                                ; @resize
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x21, _inflate_threshold@GOTPAGE
Lloh1:
	ldr	x21, [x21, _inflate_threshold@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x22, _halve_threshold@GOTPAGE
Lloh3:
	ldr	x22, [x22, _halve_threshold@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	ldr	w23, [x19]
	mov	x0, x19
	bl	_tnode_child_length
	cmp	w23, w0
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_tnode_free_safe
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w23, [x19]
	mov	x0, x19
	bl	_tnode_child_length
	sub	w8, w0, #1
	cmp	w23, w8
	b.ne	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_tnode_child_length
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.6:
	mov	x21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x20, [x8, x21, lsl #3]
	cbnz	x20, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	mov	x0, x19
	bl	_tnode_child_length
	cmp	x21, w0, sxtw
	b.lt	LBB0_7
	b	LBB0_3
LBB0_9:
	mov	x0, x19
	bl	_check_tnode
	mov	x0, x19
	bl	_node_parent
Lloh6:
	adrp	x8, _halve_threshold_root@GOTPAGE
Lloh7:
	ldr	x8, [x8, _halve_threshold_root@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x22, eq
	ldr	w22, [x8]
Lloh8:
	adrp	x8, _inflate_threshold_root@GOTPAGE
Lloh9:
	ldr	x8, [x8, _inflate_threshold_root@GOTPAGEOFF]
	csel	x8, x8, x21, eq
	ldr	w25, [x8]
Lloh10:
	adrp	x24, _MAX_WORK@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MAX_WORK@GOTPAGEOFF]
	ldr	w23, [x24]
	mov	w26, #50
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x21, x19
	ldr	x19, [x19, #8]
	cmp	x19, #1
	b.lt	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	w23, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	w23, w23, #1
	mov	x0, x21
	bl	_tnode_child_length
	add	x8, x19, w0, sxtw
	ldrsw	x9, [x21]
	sub	x8, x8, x9
	mul	x19, x8, x26
	mov	x0, x21
	bl	_tnode_child_length
	mul	w8, w0, w25
	cmp	x19, w8, sxtw
	b.lt	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_inflate
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_10
	b	LBB0_16
LBB0_14:
	mov	x0, x20
	mov	x1, #0
	bl	_node_set_parent
	mov	x0, x19
	bl	_tnode_free_safe
	mov	x19, x20
	b	LBB0_3
LBB0_15:
	mov	w23, #-1
LBB0_16:
	mov	x0, x21
	bl	_check_tnode
	ldr	w8, [x24]
	cmp	w23, w8
	b.ne	LBB0_23
; %bb.17:
	add	w23, w23, #1
	mov	w24, #100
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	mov	x19, x21
	ldr	w8, [x21, #16]
	cmp	w8, #2
	b.lt	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	subs	w23, w23, #1
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x19
	bl	_tnode_child_length
	ldr	w8, [x19]
	sub	w8, w0, w8
	mul	w21, w8, w24
	mov	x0, x19
	bl	_tnode_child_length
	mul	w8, w0, w22
	cmp	w21, w8
	b.ge	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_halve
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
LBB0_22:
	ldr	w20, [x19]
	mov	x0, x19
	bl	_tnode_child_length
	sub	w8, w0, #1
	cmp	w20, w8
	b.ne	LBB0_3
	b	LBB0_5
LBB0_23:
	mov	x19, x21
	b	LBB0_3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In tnode_resize %p inflate_threshold=%d threshold=%d\n"

	.comm	_inflate_threshold,4,2          ; @inflate_threshold
	.comm	_halve_threshold,4,2            ; @halve_threshold
	.comm	_inflate_threshold_root,4,2     ; @inflate_threshold_root
	.comm	_halve_threshold_root,4,2       ; @halve_threshold_root
	.comm	_MAX_WORK,4,2                   ; @MAX_WORK
	.no_dead_strip	_resize
.subsections_via_symbols
