	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_header
_write_header:                          ## @write_header
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	16(%rbx), %rax
	movl	(%rax), %edx
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	8(%rbx), %r14
	movq	_SNAP_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	movl	(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	movl	4(%rbx), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r14)
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movq	8(%rbx), %rsi
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_chunk_io                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.comm	_SNAP_MAGIC,4,2                 ## @SNAP_MAGIC
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.no_dead_strip	_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_header
_write_header:                          ; @write_header
	.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
	ldr	x0, [x0, #8]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _SECTOR_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w2, w8, w9
	mov	w1, #0
	bl	_memset
	ldr	x20, [x19, #8]
Lloh3:
	adrp	x8, _SNAP_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNAP_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #24]
	ldr	w0, [x19]
	bl	_cpu_to_le32
	str	x0, [x20, #16]
	ldr	w0, [x19, #4]
	bl	_cpu_to_le32
	str	x0, [x20, #8]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20]
	ldr	x1, [x19, #8]
Lloh6:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	mov	w5, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_chunk_io
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.comm	_SNAP_MAGIC,4,2                 ; @SNAP_MAGIC
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.no_dead_strip	_write_header
.subsections_via_symbols
