	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_new_meta
_r5l_new_meta:                          ## @r5l_new_meta
	.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	%rdi, %r14
	addq	$20, %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	%r14, 48(%rbx)
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_bio_list_init
	movq	_IO_UNIT_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	leaq	16(%r14), %rdi
	movq	_GFP_NOIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_alloc
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_page_address
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_clear_page
	movq	_R5LOG_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, 20(%r12)
	movq	_R5LOG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	8(%r14), %edi
	callq	_cpu_to_le64
	movq	%rax, 8(%r12)
	movl	12(%r14), %edi
	callq	_cpu_to_le64
	movq	%rax, (%r12)
	movl	12(%r14), %eax
	movl	%eax, 32(%rbx)
	movl	$24, (%rbx)
	movslq	8(%r14), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	%rax, 24(%rbx)
	movq	%r14, %rdi
	callq	_r5l_bio_alloc
	movq	%rax, 16(%rbx)
	movq	_r5l_log_endio@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rbx, (%rax)
	movq	8(%rbx), %rsi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%ecx, %ecx
	callq	_bio_add_page
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_r5_reserve_log_entry
	movq	%r14, %rdi
	callq	_spin_lock_irq
	leaq	4(%r14), %rsi
	movq	%r15, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_IO_UNIT_RUNNING,4,2            ## @IO_UNIT_RUNNING
	.comm	_GFP_NOIO,4,2                   ## @GFP_NOIO
	.comm	_R5LOG_MAGIC,4,2                ## @R5LOG_MAGIC
	.comm	_R5LOG_VERSION,4,2              ## @R5LOG_VERSION
	.comm	_r5l_log_endio,4,2              ## @r5l_log_endio
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_r5l_new_meta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_new_meta
_r5l_new_meta:                          ; @r5l_new_meta
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x0, x0, #20
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mempool_alloc
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	str	x19, [x20, #48]
	add	x21, x20, #4
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	add	x0, x20, #44
	bl	_INIT_LIST_HEAD
	add	x0, x20, #40
	bl	_bio_list_init
Lloh3:
	adrp	x8, _IO_UNIT_RUNNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IO_UNIT_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #36]
	add	x0, x19, #16
Lloh6:
	adrp	x8, _GFP_NOIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_NOIO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_mempool_alloc
	str	x0, [x20, #8]
	bl	_page_address
	mov	x22, x0
	bl	_clear_page
Lloh9:
	adrp	x8, _R5LOG_MAGIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R5LOG_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le32
Lloh12:
	adrp	x8, _R5LOG_VERSION@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R5LOG_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w8, w0, [x22, #16]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le64
	str	x0, [x22, #8]
	ldr	w0, [x19, #12]
	bl	_cpu_to_le64
	str	x0, [x22]
	ldp	w9, w8, [x19, #8]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	str	w8, [x20, #32]
	mov	w8, #24
	str	w8, [x20]
	add	w8, w9, #1
	str	w8, [x19, #8]
	str	x9, [x20, #24]
	mov	x0, x19
	bl	_r5l_bio_alloc
	str	x0, [x20, #16]
Lloh15:
	adrp	x8, _r5l_log_endio@GOTPAGE
Lloh16:
	ldr	x8, [x8, _r5l_log_endio@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x20, [x0]
	ldr	x1, [x20, #8]
Lloh18:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_bio_add_page
	mov	x0, x19
	mov	x1, x20
	bl	_r5_reserve_log_entry
	mov	x0, x19
	bl	_spin_lock_irq
	add	x1, x19, #4
	mov	x0, x21
	bl	_list_add_tail
	mov	x0, x19
	bl	_spin_unlock_irq
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_IO_UNIT_RUNNING,4,2            ; @IO_UNIT_RUNNING
	.comm	_GFP_NOIO,4,2                   ; @GFP_NOIO
	.comm	_R5LOG_MAGIC,4,2                ; @R5LOG_MAGIC
	.comm	_R5LOG_VERSION,4,2              ; @R5LOG_VERSION
	.comm	_r5l_log_endio,4,2              ; @r5l_log_endio
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_r5l_new_meta
.subsections_via_symbols
