	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_log_write_empty_meta_block
_r5l_log_write_empty_meta_block:        ## @r5l_log_write_empty_meta_block
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_r5l_recovery_create_empty_meta_block
	movq	%rbx, %rdi
	callq	_page_address
	movq	%rax, %r12
	movl	4(%r15), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rax, %rsi
	callq	_crc32c_le
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r12)
	movl	(%r15), %edi
	movl	(%r13), %edx
	movq	_REQ_OP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_REQ_SYNC@GOTPCREL(%rip), %rax
	movq	_REQ_FUA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	orl	(%rax), %r9d
	movl	$0, (%rsp)
	movl	%r14d, %esi
	movq	%rbx, %rcx
	callq	_sync_page_io
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	___free_page
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jne	LBB0_5
## %bb.3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_REQ_OP_WRITE,4,2               ## @REQ_OP_WRITE
	.comm	_REQ_SYNC,4,2                   ## @REQ_SYNC
	.comm	_REQ_FUA,4,2                    ## @REQ_FUA
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_r5l_log_write_empty_meta_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_log_write_empty_meta_block
_r5l_log_write_empty_meta_block:        ; @r5l_log_write_empty_meta_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_alloc_page
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	bl	_r5l_recovery_create_empty_meta_block
	mov	x0, x19
	bl	_page_address
	mov	x22, x0
	ldr	w0, [x21, #4]
Lloh3:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x1, x22
	bl	_crc32c_le
	bl	_cpu_to_le32
	str	w0, [x22]
	ldr	w0, [x21]
	ldr	w2, [x23]
Lloh5:
	adrp	x8, _REQ_OP_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REQ_OP_WRITE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _REQ_SYNC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _REQ_SYNC@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _REQ_FUA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _REQ_FUA@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w5, w9, w8
	mov	x1, x20
	mov	x3, x19
	mov	w6, #0
	bl	_sync_page_io
	mov	x20, x0
	mov	x0, x19
	bl	___free_page
	mov	w0, #0
	cbnz	w20, LBB0_5
; %bb.2:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_REQ_OP_WRITE,4,2               ; @REQ_OP_WRITE
	.comm	_REQ_SYNC,4,2                   ; @REQ_SYNC
	.comm	_REQ_FUA,4,2                    ; @REQ_FUA
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_r5l_log_write_empty_meta_block
.subsections_via_symbols
