	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vhd_make_footer
_vhd_make_footer:                       ## @vhd_make_footer
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	leaq	52(%rbx), %rdi
	movq	_VHD_FOOTER_COOKIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_be64enc
	leaq	48(%rbx), %rdi
	movq	_VHD_FEATURES_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_be32enc
	leaq	44(%rbx), %rdi
	movq	_VHD_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_be32enc
	leaq	40(%rbx), %rdi
	movl	%r12d, %esi
	callq	_be64enc
	leaq	36(%rbx), %r12
	xorl	%eax, %eax
	callq	_vhd_timestamp
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_be32enc
	leaq	32(%rbx), %rdi
	movq	_VHD_CREATOR_TOOL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_be32enc
	leaq	28(%rbx), %rdi
	movq	_VHD_CREATOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_be32enc
	leaq	24(%rbx), %rdi
	movq	_VHD_CREATOR_OS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_be32enc
	leaq	20(%rbx), %rdi
	movl	%r15d, %esi
	callq	_be64enc
	leaq	16(%rbx), %rdi
	movl	%r15d, %esi
	callq	_be64enc
	leaq	12(%rbx), %r12
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_vhd_geometry
	movl	12(%rbx), %esi
	movq	%r12, %rdi
	callq	_be16enc
	leaq	8(%rbx), %rdi
	movl	%r14d, %esi
	callq	_be32enc
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	callq	_mkimg_uuid
	leaq	4(%rbx), %rdi
	movq	%r14, %rsi
	callq	_mkimg_uuid_enc
	movq	%rbx, %rdi
	movl	$56, %esi
	callq	_vhd_checksum
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_be32enc
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VHD_FOOTER_COOKIE,4,2          ## @VHD_FOOTER_COOKIE
	.comm	_VHD_FEATURES_RESERVED,4,2      ## @VHD_FEATURES_RESERVED
	.comm	_VHD_VERSION,4,2                ## @VHD_VERSION
	.comm	_VHD_CREATOR_TOOL,4,2           ## @VHD_CREATOR_TOOL
	.comm	_VHD_CREATOR_VERSION,4,2        ## @VHD_CREATOR_VERSION
	.comm	_VHD_CREATOR_OS,4,2             ## @VHD_CREATOR_OS
	.no_dead_strip	_vhd_make_footer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vhd_make_footer
_vhd_make_footer:                       ; @vhd_make_footer
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	add	x0, x19, #52
Lloh0:
	adrp	x8, _VHD_FOOTER_COOKIE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VHD_FOOTER_COOKIE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_be64enc
	add	x0, x19, #48
Lloh3:
	adrp	x8, _VHD_FEATURES_RESERVED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VHD_FEATURES_RESERVED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_be32enc
	add	x0, x19, #44
Lloh6:
	adrp	x8, _VHD_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VHD_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_be32enc
	add	x0, x19, #40
	mov	x1, x22
	bl	_be64enc
	add	x22, x19, #36
	bl	_vhd_timestamp
	mov	x1, x0
	mov	x0, x22
	bl	_be32enc
	add	x0, x19, #32
Lloh9:
	adrp	x8, _VHD_CREATOR_TOOL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VHD_CREATOR_TOOL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_be32enc
	add	x0, x19, #28
Lloh12:
	adrp	x8, _VHD_CREATOR_VERSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VHD_CREATOR_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_be32enc
	add	x0, x19, #24
Lloh15:
	adrp	x8, _VHD_CREATOR_OS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VHD_CREATOR_OS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_be32enc
	add	x0, x19, #20
	mov	x1, x21
	bl	_be64enc
	add	x0, x19, #16
	mov	x1, x21
	bl	_be64enc
	add	x22, x19, #12
	mov	x0, x21
	mov	x1, x22
	bl	_vhd_geometry
	ldr	w1, [x19, #12]
	mov	x0, x22
	bl	_be16enc
	add	x0, x19, #8
	mov	x1, x20
	bl	_be32enc
	add	x0, sp, #12
	bl	_mkimg_uuid
	add	x0, x19, #4
	add	x1, sp, #12
	bl	_mkimg_uuid_enc
	mov	x0, x19
	mov	w1, #56
	bl	_vhd_checksum
	mov	x1, x0
	mov	x0, x19
	bl	_be32enc
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VHD_FOOTER_COOKIE,4,2          ; @VHD_FOOTER_COOKIE
	.comm	_VHD_FEATURES_RESERVED,4,2      ; @VHD_FEATURES_RESERVED
	.comm	_VHD_VERSION,4,2                ; @VHD_VERSION
	.comm	_VHD_CREATOR_TOOL,4,2           ; @VHD_CREATOR_TOOL
	.comm	_VHD_CREATOR_VERSION,4,2        ; @VHD_CREATOR_VERSION
	.comm	_VHD_CREATOR_OS,4,2             ; @VHD_CREATOR_OS
	.no_dead_strip	_vhd_make_footer
.subsections_via_symbols
