	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmdk_resize
_vmdk_resize:                           ## @vmdk_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	_secsz@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	imull	%ecx, %edi
	movq	_VMDK_IMAGE_ROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	(%rbx,%rdi), %eax
	decl	%eax
	negl	%ebx
	andl	%eax, %ebx
	movq	_blksz@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_VMDK_MIN_GRAIN_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	cmovgq	%rdx, %rax
	movq	_grainsz@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	movq	_verbose@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_fprintf
	movq	(%r14), %rax
	movl	(%r15), %ecx
LBB0_2:
	movq	_VMDK_SECTOR_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rsi
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	movq	%rax, (%r14)
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_image_set_size                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_secsz,4,2                      ## @secsz
	.comm	_VMDK_IMAGE_ROUND,4,2           ## @VMDK_IMAGE_ROUND
	.comm	_blksz,8,3                      ## @blksz
	.comm	_VMDK_MIN_GRAIN_SIZE,8,3        ## @VMDK_MIN_GRAIN_SIZE
	.comm	_grainsz,8,3                    ## @grainsz
	.comm	_verbose,8,3                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VMDK: image size = %ju, grain size = %ju\n"

	.comm	_VMDK_SECTOR_SIZE,8,3           ## @VMDK_SECTOR_SIZE
	.no_dead_strip	_vmdk_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmdk_resize
_vmdk_resize:                           ; @vmdk_resize
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _secsz@GOTPAGE
Lloh1:
	ldr	x20, [x20, _secsz@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _VMDK_IMAGE_ROUND@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VMDK_IMAGE_ROUND@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	madd	w10, w8, w0, w9
	sub	w10, w10, #1
	neg	w9, w9
	and	w19, w10, w9
Lloh5:
	adrp	x9, _blksz@GOTPAGE
Lloh6:
	ldr	x9, [x9, _blksz@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _VMDK_MIN_GRAIN_SIZE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VMDK_MIN_GRAIN_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x3, x9, x10, gt
Lloh11:
	adrp	x21, _grainsz@GOTPAGE
Lloh12:
	ldr	x21, [x21, _grainsz@GOTPAGEOFF]
	str	x3, [x21]
Lloh13:
	adrp	x9, _verbose@GOTPAGE
Lloh14:
	ldr	x9, [x9, _verbose@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_fprintf
	ldr	x3, [x21]
	ldr	w8, [x20]
LBB0_2:
Lloh21:
	adrp	x9, _VMDK_SECTOR_SIZE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VMDK_SECTOR_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	sdiv	x9, x3, x9
	str	x9, [x21]
	sdiv	w0, w19, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_image_set_size
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_secsz,4,2                      ; @secsz
	.comm	_VMDK_IMAGE_ROUND,4,2           ; @VMDK_IMAGE_ROUND
	.comm	_blksz,8,3                      ; @blksz
	.comm	_VMDK_MIN_GRAIN_SIZE,8,3        ; @VMDK_MIN_GRAIN_SIZE
	.comm	_grainsz,8,3                    ; @grainsz
	.comm	_verbose,8,3                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VMDK: image size = %ju, grain size = %ju\n"

	.comm	_VMDK_SECTOR_SIZE,8,3           ; @VMDK_SECTOR_SIZE
	.no_dead_strip	_vmdk_resize
.subsections_via_symbols
