	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function autoresize
_autoresize:                            ## @autoresize
	.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
	movl	%esi, %r15d
	movq	8(%rdi), %rax
	movq	16(%rdi), %rdx
	movslq	%esi, %rcx
	movq	(%rdx,%rcx,8), %r13
	movslq	(%r13), %r14
	movq	_UBI_VTBL_AUTORESIZE_FLG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, (%rax,%rcx,4)
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.3:
	movq	%r13, -56(%rbp)
	addq	%r14, %rsi
	leaq	-56(%rbp), %rdi
	callq	_ubi_resize_volume
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_1:
	movq	%rdi, %rbx
	leaq	(%rax,%rcx,4), %rsi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_ubi_change_vtbl_record
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movl	%r15d, %esi
	callq	_ubi_err
	jmp	LBB0_7
LBB0_6:
	movl	(%r13), %r8d
	movl	4(%r13), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %ecx
	callq	_ubi_msg
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UBI_VTBL_AUTORESIZE_FLG,4,2    ## @UBI_VTBL_AUTORESIZE_FLG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot clean auto-resize flag for volume %d"

L_.str.1:                               ## @.str.1
	.asciz	"cannot auto-resize volume %d"

L_.str.2:                               ## @.str.2
	.asciz	"volume %d (\"%s\") re-sized from %d to %d LEBs"

	.no_dead_strip	_autoresize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function autoresize
_autoresize:                            ; @autoresize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	x8, [x0, #16]
	ldr	x22, [x8, w1, sxtw #3]
	ldrsw	x20, [x22]
Lloh0:
	adrp	x8, _UBI_VTBL_AUTORESIZE_FLG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UBI_VTBL_AUTORESIZE_FLG@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	sbfiz	x11, x19, #2, #32
	ldp	x9, x8, [x0]
	ldr	w12, [x8, x11]
	bic	w10, w12, w10
	str	w10, [x8, x11]
	cbz	x9, LBB0_3
; %bb.1:
	str	x22, [sp, #8]
	add	x1, x9, x20
	add	x0, sp, #8
	bl	_ubi_resize_volume
	cbz	w0, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:
	mov	x21, x0
	sxtw	x9, w19
	add	x1, x8, x9, lsl #2
	mov	x0, sp
	mov	w2, #4
	bl	_memcpy
	mov	x2, sp
	mov	x0, x21
	mov	x1, x19
	bl	_ubi_change_vtbl_record
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	mov	x1, x19
	bl	_ubi_err
	b	LBB0_7
LBB0_6:
	ldp	w4, w2, [x22]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x3, x20
	bl	_ubi_msg
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UBI_VTBL_AUTORESIZE_FLG,4,2    ; @UBI_VTBL_AUTORESIZE_FLG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot clean auto-resize flag for volume %d"

l_.str.1:                               ; @.str.1
	.asciz	"cannot auto-resize volume %d"

l_.str.2:                               ; @.str.2
	.asciz	"volume %d (\"%s\") re-sized from %d to %d LEBs"

	.no_dead_strip	_autoresize
.subsections_via_symbols
