	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_super
_log_super:                             ## @log_super
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_WRITE_LOG_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, -24(%rbp)
	movq	_WRITE_LOG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, -32(%rbp)
	movl	8(%rbx), %edi
	callq	_cpu_to_le64
	movq	%rax, -40(%rbp)
	movl	4(%rbx), %edi
	callq	_cpu_to_le32
	movl	%eax, -48(%rbp)
	movq	_WRITE_LOG_SUPER_SECTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_write_metadata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DMERR
	movl	$-1, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_wait_for_completion_io
LBB0_3:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WRITE_LOG_MAGIC,4,2            ## @WRITE_LOG_MAGIC
	.comm	_WRITE_LOG_VERSION,4,2          ## @WRITE_LOG_VERSION
	.comm	_WRITE_LOG_SUPER_SECTOR,4,2     ## @WRITE_LOG_SUPER_SECTOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't write super"

	.no_dead_strip	_log_super
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_super
_log_super:                             ; @log_super
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _WRITE_LOG_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WRITE_LOG_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le64
	str	x0, [sp, #24]
Lloh3:
	adrp	x8, _WRITE_LOG_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WRITE_LOG_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le64
	str	x0, [sp, #16]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le64
	str	x0, [sp, #8]
	ldr	w0, [x19, #4]
	bl	_cpu_to_le32
	str	w0, [sp]
Lloh6:
	adrp	x8, _WRITE_LOG_SUPER_SECTOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WRITE_LOG_SUPER_SECTOR@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #32
	mov	x3, #0
	mov	w4, #0
	bl	_write_metadata
	cbz	x0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_wait_for_completion_io
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WRITE_LOG_MAGIC,4,2            ; @WRITE_LOG_MAGIC
	.comm	_WRITE_LOG_VERSION,4,2          ; @WRITE_LOG_VERSION
	.comm	_WRITE_LOG_SUPER_SECTOR,4,2     ; @WRITE_LOG_SUPER_SECTOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't write super"

	.no_dead_strip	_log_super
.subsections_via_symbols
