	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpool_write
_mpool_write:                           ## @mpool_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movl	8(%r14), %edx
	callq	*%rax
LBB0_2:
	movl	(%rbx), %edx
	movl	16(%rbx), %edi
	movl	(%r14), %ecx
	imull	%edx, %ecx
	movl	8(%r14), %esi
	callq	_pwrite
	movslq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_3
## %bb.4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movl	8(%r14), %edx
	callq	*%rax
LBB0_6:
	movq	_MPOOL_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%r14)
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RET_ERROR,4,2                  ## @RET_ERROR
	.comm	_MPOOL_DIRTY,4,2                ## @MPOOL_DIRTY
	.comm	_RET_SUCCESS,4,2                ## @RET_SUCCESS
	.no_dead_strip	_mpool_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpool_write
_mpool_write:                           ; @mpool_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x20, #4]
	ldr	w1, [x19]
	ldr	w2, [x19, #8]
	blr	x8
LBB0_2:
	ldr	w2, [x20]
	ldr	w8, [x19]
	mul	w3, w8, w2
	ldr	w0, [x20, #16]
	ldr	w1, [x19, #8]
	bl	_pwrite
	ldrsw	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20, #4]
	ldr	w1, [x19]
	ldr	w2, [x19, #8]
	blr	x8
LBB0_5:
Lloh0:
	adrp	x8, _MPOOL_DIRTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPOOL_DIRTY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
Lloh3:
	adrp	x8, _RET_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RET_SUCCESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RET_ERROR,4,2                  ; @RET_ERROR
	.comm	_MPOOL_DIRTY,4,2                ; @MPOOL_DIRTY
	.comm	_RET_SUCCESS,4,2                ; @RET_SUCCESS
	.no_dead_strip	_mpool_write
.subsections_via_symbols
