	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcow_resize
_qcow_resize:                           ## @qcow_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.2:
	movq	_QCOW1_CLSTR_LOG2SZ@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_QCOW2_CLSTR_LOG2SZ@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_clstr_log2sz@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	callq	_assert
LBB0_6:
	movq	_secsz@GOTPCREL(%rip), %r14
	imull	(%r14), %ebx
	movl	%ebx, %edi
	callq	_round_clstr
	movl	%eax, %ebx
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_clstr_log2sz@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_fprintf
LBB0_8:
	movl	%ebx, %eax
	cltd
	idivl	(%r14)
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_image_set_size                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QCOW1_CLSTR_LOG2SZ,4,2         ## @QCOW1_CLSTR_LOG2SZ
	.comm	_clstr_log2sz,4,2               ## @clstr_log2sz
	.comm	_QCOW2_CLSTR_LOG2SZ,4,2         ## @QCOW2_CLSTR_LOG2SZ
	.comm	_secsz,4,2                      ## @secsz
	.comm	_verbose,8,3                    ## @verbose
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QCOW: image size = %ju, cluster size = %u\n"

	.no_dead_strip	_qcow_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcow_resize
_qcow_resize:                           ; @qcow_resize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _QCOW1_CLSTR_LOG2SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCOW1_CLSTR_LOG2SZ@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _QCOW2_CLSTR_LOG2SZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QCOW2_CLSTR_LOG2SZ@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _clstr_log2sz@GOTPAGE
Lloh5:
	ldr	x9, [x9, _clstr_log2sz@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	bl	_assert
LBB0_6:
Lloh7:
	adrp	x20, _secsz@GOTPAGE
Lloh8:
	ldr	x20, [x20, _secsz@GOTPAGEOFF]
	ldr	w8, [x20]
	mul	w0, w8, w19
	bl	_round_clstr
	mov	x19, x0
Lloh9:
	adrp	x8, _verbose@GOTPAGE
Lloh10:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _clstr_log2sz@GOTPAGE
Lloh16:
	ldr	x8, [x8, _clstr_log2sz@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w3, w9, w8
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_8:
	ldr	w8, [x20]
	sdiv	w0, w19, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_image_set_size
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_QCOW1_CLSTR_LOG2SZ,4,2         ; @QCOW1_CLSTR_LOG2SZ
	.comm	_clstr_log2sz,4,2               ; @clstr_log2sz
	.comm	_QCOW2_CLSTR_LOG2SZ,4,2         ; @QCOW2_CLSTR_LOG2SZ
	.comm	_secsz,4,2                      ; @secsz
	.comm	_verbose,8,3                    ; @verbose
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QCOW: image size = %ju, cluster size = %u\n"

	.no_dead_strip	_qcow_resize
.subsections_via_symbols
