	.file	"extr_dm-snap-persistent.c_write_header.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	write_header, @function
write_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 16[rdi]
	mov	ecx, DWORD PTR SECTOR_SHIFT[rip]
	mov	rdi, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR [rax]
	sal	edx, cl
	call	memset@PLT
	mov	edi, DWORD PTR SNAP_MAGIC[rip]
	mov	rbx, QWORD PTR 8[rbp]
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	QWORD PTR 24[rbx], rax
	call	cpu_to_le32@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	QWORD PTR 16[rbx], rax
	call	cpu_to_le32@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax]
	call	cpu_to_le32@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, rbp
	xor	r8d, r8d
	mov	QWORD PTR [rbx], rax
	mov	ecx, DWORD PTR REQ_OP_WRITE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	edx, edx
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	r9d, 1
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	chunk_io@PLT
	.cfi_endproc
.LFE0:
	.size	write_header, .-write_header
	.comm	SNAP_MAGIC,4,4
	.comm	SECTOR_SHIFT,4,4
	.comm	REQ_OP_WRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dm-snap-persistent.c_write_header.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_header, %function
write_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r2, [r0, #12]
	ldr	r3, .L4
	ldr	r2, [r2]
	ldr	r3, [r3]
	sub	sp, sp, #12
	lsl	r2, r2, r3
	mov	r1, #0
	ldr	r0, [r0, #8]
	bl	memset
	ldr	r3, .L4+4
	ldr	r5, [r4, #8]
	ldr	r0, [r3]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r4]
	str	r3, [r5, #12]
	bl	cpu_to_le32
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [r5, #8]
	bl	cpu_to_le32
	ldr	r3, [r4, #12]
	str	r0, [r5, #4]
	ldr	r0, [r3]
	bl	cpu_to_le32
	mov	ip, #1
	mov	r2, #0
	str	r0, [r5]
	ldr	r1, [r4, #8]
	stm	sp, {r2, ip}
	ldr	r3, .L4+8
	mov	r0, r4
	ldr	r3, [r3]
	bl	chunk_io
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	.align	2
.L4:
	.word	SECTOR_SHIFT
	.word	SNAP_MAGIC
	.word	REQ_OP_WRITE
	.size	write_header, .-write_header
	.comm	SNAP_MAGIC,4,4
	.comm	SECTOR_SHIFT,4,4
	.comm	REQ_OP_WRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
