	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___bt_sync                      ## -- Begin function __bt_sync
	.p2align	4, 0x90
___bt_sync:                             ## @__bt_sync
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	$0, 8(%r14)
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_B_INMEM@GOTPCREL(%rip), %rax
	movq	_B_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_B_MODIFIED@GOTPCREL(%rip), %r15
	movq	_B_METADIRTY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r15), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_5
## %bb.9:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_bt_meta
	movl	%eax, %ebx
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_7
LBB0_11:
	movl	(%r14), %edi
	callq	_mpool_sync
	movl	%eax, %ebx
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.12:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_F_CLR
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_RET_ERROR,4,2                  ## @RET_ERROR
	.comm	_B_INMEM,4,2                    ## @B_INMEM
	.comm	_B_RDONLY,4,2                   ## @B_RDONLY
	.comm	_B_MODIFIED,4,2                 ## @B_MODIFIED
	.comm	_B_METADIRTY,4,2                ## @B_METADIRTY
	.comm	_RET_SUCCESS,4,2                ## @RET_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___bt_sync                      ; -- Begin function __bt_sync
	.p2align	2
___bt_sync:                             ; @__bt_sync
	.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	x20, x1
	ldr	x19, [x0]
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	w2, #0
	bl	_mpool_put
	str	xzr, [x19, #8]
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _B_INMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _B_INMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _B_RDONLY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _B_RDONLY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_8
LBB0_5:
Lloh14:
	adrp	x8, _RET_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RET_SUCCESS@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
LBB0_7:
	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
LBB0_8:
Lloh16:
	adrp	x21, _B_MODIFIED@GOTPAGE
Lloh17:
	ldr	x21, [x21, _B_MODIFIED@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh18:
	adrp	x20, _B_METADIRTY@GOTPAGE
Lloh19:
	ldr	x20, [x20, _B_METADIRTY@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_5
; %bb.9:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_bt_meta
	mov	x20, x0
Lloh20:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
LBB0_11:
	ldr	w0, [x19]
	bl	_mpool_sync
	mov	x20, x0
Lloh23:
	adrp	x8, _RET_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _RET_SUCCESS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.12:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_F_CLR
	b	LBB0_7
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_RET_ERROR,4,2                  ; @RET_ERROR
	.comm	_B_INMEM,4,2                    ; @B_INMEM
	.comm	_B_RDONLY,4,2                   ; @B_RDONLY
	.comm	_B_MODIFIED,4,2                 ; @B_MODIFIED
	.comm	_B_METADIRTY,4,2                ; @B_METADIRTY
	.comm	_RET_SUCCESS,4,2                ; @RET_SUCCESS
.subsections_via_symbols
