	.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
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ubi_warn
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_2:
	movl	%esi, %r14d
	movq	24(%rbx), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r13
	movq	_UBI_VTBL_AUTORESIZE_FLG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	8(%rbx), %rdx
	andl	(%rdx,%rcx,4), %eax
	movslq	(%r13), %r15
	movl	%eax, (%rdx,%rcx,4)
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.5:
	movq	%r13, -56(%rbp)
	addq	%r15, %rsi
	leaq	-56(%rbp), %rdi
	callq	_ubi_resize_volume
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ubi_change_vtbl_record
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ubi_err
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r13), %r9d
	movl	4(%r13), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r15d, %r8d
	callq	_ubi_msg
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skip auto-resize because of R/O mode"

	.comm	_UBI_VTBL_AUTORESIZE_FLG,4,2    ## @UBI_VTBL_AUTORESIZE_FLG
L_.str.1:                               ## @.str.1
	.asciz	"cannot clean auto-resize flag for volume %d"

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

L_.str.3:                               ## @.str.3
	.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, #80
	.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
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ubi_warn
LBB0_2:
	mov	w22, #0
	b	LBB0_9
LBB0_3:
	mov	x19, x1
	ldr	x8, [x20, #24]
	sxtw	x9, w19
	ldr	x23, [x8, w1, sxtw #3]
	ldrsw	x21, [x23]
Lloh2:
	adrp	x8, _UBI_VTBL_AUTORESIZE_FLG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UBI_VTBL_AUTORESIZE_FLG@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
	lsl	x11, x9, #2
	ldp	x8, x12, [x20]
	ldr	w9, [x12, x11]
	bic	w9, w9, w10
	str	w9, [x12, x11]
	cbz	x8, LBB0_6
; %bb.4:
	str	x23, [sp, #8]
	add	x1, x8, x21
	add	x0, sp, #8
	bl	_ubi_resize_volume
	cbz	w0, LBB0_10
; %bb.5:
	mov	x22, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	str	w9, [sp]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_ubi_change_vtbl_record
	cbz	w0, LBB0_10
; %bb.7:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x20
	mov	x2, x19
	bl	_ubi_err
LBB0_9:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_10:
	ldp	w5, w3, [x23]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x21
	bl	_ubi_msg
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skip auto-resize because of R/O mode"

	.comm	_UBI_VTBL_AUTORESIZE_FLG,4,2    ; @UBI_VTBL_AUTORESIZE_FLG
l_.str.1:                               ; @.str.1
	.asciz	"cannot clean auto-resize flag for volume %d"

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

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

	.no_dead_strip	_autoresize
.subsections_via_symbols
