	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pblk_prepare_resubmit
_pblk_prepare_resubmit:                 ## @pblk_prepare_resubmit
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r12,8), %r15
	addq	$20, %r15
	movl	20(%rbx,%r12,8), %edi
	callq	_READ_ONCE
	movq	_PBLK_WRITTEN_DATA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_smp_store_release
	movl	16(%rbx,%r12,8), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pblk_ppa_to_line
	movq	%rax, %rbx
	leaq	4(%rax), %rdi
	callq	_atomic_dec
	movq	_pblk_line_put@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kref_put
	incl	%r14d
	cmpl	%r14d, -56(%rbp)                ## 4-byte Folded Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_pblk_rb_ptr_wrap
	leaq	(%rax,%rax,2), %r12
	movq	8(%rbx,%r12,8), %rsi
	movq	_ADDR_EMPTY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pblk_trans_map_get
	movl	(%rbx,%r12,8), %esi
	movl	%eax, %edi
	callq	_pblk_ppa_comp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rbx,%r12,8), %rax
	addq	$8, %rax
	movq	_ADDR_EMPTY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_5
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADDR_EMPTY,8,3                 ## @ADDR_EMPTY
	.comm	_PBLK_WRITTEN_DATA,4,2          ## @PBLK_WRITTEN_DATA
	.comm	_pblk_line_put,4,2              ## @pblk_line_put
	.no_dead_strip	_pblk_prepare_resubmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pblk_prepare_resubmit
_pblk_prepare_resubmit:                 ; @pblk_prepare_resubmit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_spin_lock
	cbz	w19, LBB0_6
; %bb.1:
	mov	w22, #0
	add	x23, x20, #8
	mov	w25, #24
Lloh0:
	adrp	x26, _ADDR_EMPTY@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ADDR_EMPTY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	madd	x24, x24, x25, x27
	ldr	w0, [x24, #20]!
	bl	_READ_ONCE
Lloh2:
	adrp	x8, _PBLK_WRITTEN_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PBLK_WRITTEN_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x24
	bl	_smp_store_release
	ldur	w1, [x24, #-4]
	mov	x0, x20
	bl	_pblk_ppa_to_line
	mov	x24, x0
	add	x0, x0, #4
	bl	_atomic_dec
Lloh5:
	adrp	x8, _pblk_line_put@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pblk_line_put@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_kref_put
	add	w22, w22, #1
	cmp	w19, w22
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x23]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_pblk_rb_ptr_wrap
	mov	x24, x0
	madd	x28, x0, x25, x27
	ldr	x1, [x28, #8]!
	ldr	x8, [x26]
	cmp	x1, x8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_pblk_trans_map_get
	mul	x8, x24, x25
	ldr	w1, [x27, x8]
	mov	w0, w0
	bl	_pblk_ppa_comp
	cbnz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	str	x8, [x28]
	b	LBB0_2
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ADDR_EMPTY,8,3                 ; @ADDR_EMPTY
	.comm	_PBLK_WRITTEN_DATA,4,2          ; @PBLK_WRITTEN_DATA
	.comm	_pblk_line_put,4,2              ; @pblk_line_put
	.no_dead_strip	_pblk_prepare_resubmit
.subsections_via_symbols
