	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btt_flog_write
_btt_flog_write:                        ## @btt_flog_write
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_NVDIMM_IO_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	___btt_log_write
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	leaq	(%rbx,%rbx,2), %rbx
	movl	$1, %ecx
	subq	16(%rax,%rbx,8), %rcx
	movq	%rcx, 16(%rax,%rbx,8)
	movl	(%rax,%rbx,8), %ecx
	incl	%ecx
	cmpl	$4, %ecx
	movl	$1, %edx
	cmovnel	%ecx, %edx
	movl	%edx, (%rax,%rbx,8)
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %edi
	callq	_ent_e_flag
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movl	$1, 4(%rax,%rbx,8)
LBB0_3:
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, %edi
	callq	_ent_lba
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx,%rbx,8)
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVDIMM_IO_ATOMIC,4,2           ## @NVDIMM_IO_ATOMIC
	.no_dead_strip	_btt_flog_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btt_flog_write
_btt_flog_write:                        ; @btt_flog_write
	.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, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NVDIMM_IO_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVDIMM_IO_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	bl	___btt_log_write
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x20]
	mov	w9, #24
	madd	x8, x19, x9, x8
	ldr	x9, [x8, #16]
	mov	w23, #1
	sub	x9, x23, x9
	str	x9, [x8, #16]
	ldr	w9, [x8]
	add	w10, w9, #1
	cmp	w10, #4
	csinc	w9, w23, w9, eq
	str	w9, [x8]
	ldr	w0, [x22]
	bl	_le32_to_cpu
	bl	_ent_e_flag
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20]
	mov	w9, #24
	madd	x8, x19, x9, x8
	str	w23, [x8, #4]
LBB0_3:
	ldr	w0, [x22]
	bl	_le32_to_cpu
	bl	_ent_lba
	ldr	x8, [x20]
	mov	w9, #24
	madd	x8, x19, x9, x8
	str	w0, [x8, #8]
LBB0_4:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_NVDIMM_IO_ATOMIC,4,2           ; @NVDIMM_IO_ATOMIC
	.no_dead_strip	_btt_flog_write
.subsections_via_symbols
