	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rec_sync                     ## -- Begin function __rec_sync
	.p2align	4, 0x90
___rec_sync:                            ## @__rec_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r13
	movq	24(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movl	32(%r13), %edi
	xorl	%edx, %edx
	callq	_mpool_put
	movq	$0, 24(%r13)
LBB0_2:
	movq	_R_RECNOSYNC@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___bt_sync                      ## TAILCALL
LBB0_5:
	movq	_R_RDONLY@GOTPCREL(%rip), %rax
	movq	_R_INMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:
	movq	_RET_SUCCESS@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_31
## %bb.9:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_R_MODIFIED@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	movq	_R_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_MAX_REC_NUMBER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	*(%r13)
	movq	_RET_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
LBB0_13:
	movl	8(%r13), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	movq	_RET_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	movl	12(%r13), %r12d
	movl	$4, -120(%rbp)
	leaq	-124(%rbp), %rax
	movq	%rax, -112(%rbp)
	movq	_R_FIXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_F_ISSET
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	_R_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-120(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_RET_SUCCESS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_25
## %bb.17:
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	leaq	-120(%rbp), %rbx
	leaq	-104(%rbp), %r12
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	movq	-96(%rbp), %rsi
	movl	-104(%rbp), %edx
	callq	__write
	movslq	-104(%rbp), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	_R_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	*(%r14)
	cmpl	(%r15), %eax
	je	LBB0_18
	jmp	LBB0_24
LBB0_20:
	leaq	16(%r13), %rax
	movq	%rax, -56(%rbp)
	movl	$1, -64(%rbp)
	movq	_R_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-120(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_RET_SUCCESS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_25
## %bb.21:
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	leaq	-120(%rbp), %r12
	leaq	-104(%rbp), %rbx
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	-104(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	8(%r13), %edi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	__writev
	movslq	-104(%rbp), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_14
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_R_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	*(%r14)
	cmpl	(%r15), %eax
	je	LBB0_22
LBB0_24:
	movq	_R_MODIFIED@GOTPCREL(%rip), %rbx
	movl	-84(%rbp), %r12d                ## 4-byte Reload
LBB0_25:
	movl	%r12d, 12(%r13)
	movq	_RET_ERROR@GOTPCREL(%rip), %r14
	cmpl	(%r14), %eax
	je	LBB0_8
## %bb.26:
	movl	8(%r13), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_lseek
	cmpl	$-1, %eax
	je	LBB0_29
## %bb.27:
	movl	8(%r13), %edi
	movl	%eax, %esi
	callq	_ftruncate
	testq	%rax, %rax
	je	LBB0_30
LBB0_29:
	movl	(%r14), %eax
	jmp	LBB0_8
LBB0_30:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_F_CLR
	jmp	LBB0_6
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_R_RECNOSYNC,8,3                ## @R_RECNOSYNC
	.comm	_R_RDONLY,4,2                   ## @R_RDONLY
	.comm	_R_INMEM,4,2                    ## @R_INMEM
	.comm	_R_MODIFIED,4,2                 ## @R_MODIFIED
	.comm	_RET_SUCCESS,4,2                ## @RET_SUCCESS
	.comm	_R_EOF,4,2                      ## @R_EOF
	.comm	_MAX_REC_NUMBER,4,2             ## @MAX_REC_NUMBER
	.comm	_RET_ERROR,4,2                  ## @RET_ERROR
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_R_FIXLEN,4,2                   ## @R_FIXLEN
	.comm	_R_FIRST,4,2                    ## @R_FIRST
	.comm	_R_NEXT,4,2                     ## @R_NEXT
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rec_sync                     ; -- Begin function __rec_sync
	.p2align	2
___rec_sync:                            ; @__rec_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0, #8]
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	mov	w2, #0
	bl	_mpool_put
	str	xzr, [x19, #24]
LBB0_2:
Lloh3:
	adrp	x8, _R_RECNOSYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R_RECNOSYNC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.3:
	ldur	x8, [x29, #-56]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	___bt_sync
LBB0_5:
Lloh9:
	adrp	x8, _R_RDONLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R_RDONLY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _R_INMEM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _R_INMEM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_10
LBB0_6:
Lloh15:
	adrp	x8, _RET_SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RET_SUCCESS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
Lloh20:
	adrp	x21, _R_MODIFIED@GOTPAGE
Lloh21:
	ldr	x21, [x21, _R_MODIFIED@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_6
; %bb.11:
Lloh22:
	adrp	x8, _R_EOF@GOTPAGE
Lloh23:
	ldr	x8, [x8, _R_EOF@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x19]
Lloh25:
	adrp	x9, _MAX_REC_NUMBER@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MAX_REC_NUMBER@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
Lloh28:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_8
LBB0_13:
	ldr	w0, [x19, #8]
Lloh31:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	cbz	x0, LBB0_15
LBB0_14:
Lloh34:
	adrp	x8, _RET_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _RET_ERROR@GOTPAGEOFF]
	b	LBB0_7
LBB0_15:
	ldr	w22, [x19, #12]
	mov	w8, #4
	str	w8, [sp, #8]
	add	x8, sp, #4
	str	x8, [sp, #16]
Lloh36:
	adrp	x8, _R_FIXLEN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _R_FIXLEN@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cbz	x0, LBB0_20
; %bb.16:
	ldr	x8, [x20]
Lloh39:
	adrp	x9, _R_FIRST@GOTPAGE
Lloh40:
	ldr	x9, [x9, _R_FIRST@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x9]
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x20
	blr	x8
Lloh42:
	adrp	x23, _RET_SUCCESS@GOTPAGE
Lloh43:
	ldr	x23, [x23, _RET_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.17:
Lloh44:
	adrp	x24, _R_NEXT@GOTPAGE
Lloh45:
	ldr	x24, [x24, _R_NEXT@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	ldr	x1, [sp, #32]
	ldr	w2, [sp, #24]
	bl	__write
	ldrsw	x8, [sp, #24]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20]
	ldr	w3, [x24]
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x20
	blr	x8
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_18
	b	LBB0_24
LBB0_20:
	add	x8, x19, #16
	str	x8, [sp, #64]
	mov	w8, #1
	str	w8, [sp, #56]
	ldr	x8, [x20]
Lloh46:
	adrp	x9, _R_FIRST@GOTPAGE
Lloh47:
	ldr	x9, [x9, _R_FIRST@GOTPAGEOFF]
Lloh48:
	ldr	w3, [x9]
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x20
	blr	x8
Lloh49:
	adrp	x23, _RET_SUCCESS@GOTPAGE
Lloh50:
	ldr	x23, [x23, _RET_SUCCESS@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.21:
Lloh51:
	adrp	x24, _R_NEXT@GOTPAGE
Lloh52:
	ldr	x24, [x24, _R_NEXT@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]
	str	x8, [sp, #48]
	ldr	w8, [sp, #24]
	str	w8, [sp, #40]
	ldr	w0, [x19, #8]
	add	x1, sp, #40
	mov	w2, #2
	bl	__writev
	ldrsw	x8, [sp, #24]
	add	x8, x8, #1
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x20]
	ldr	w3, [x24]
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x20
	blr	x8
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_22
LBB0_24:
	str	w22, [x19, #12]
Lloh53:
	adrp	x20, _RET_ERROR@GOTPAGE
Lloh54:
	ldr	x20, [x20, _RET_ERROR@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.25:
	ldr	w0, [x19, #8]
Lloh55:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_lseek
	mov	x1, x0
	cmn	w1, #1
	b.eq	LBB0_27
; %bb.26:
	ldr	w0, [x19, #8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ftruncate
	cbz	x0, LBB0_28
LBB0_27:
	ldr	w0, [x20]
	b	LBB0_8
LBB0_28:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_F_CLR
	b	LBB0_6
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_R_RECNOSYNC,8,3                ; @R_RECNOSYNC
	.comm	_R_RDONLY,4,2                   ; @R_RDONLY
	.comm	_R_INMEM,4,2                    ; @R_INMEM
	.comm	_R_MODIFIED,4,2                 ; @R_MODIFIED
	.comm	_RET_SUCCESS,4,2                ; @RET_SUCCESS
	.comm	_R_EOF,4,2                      ; @R_EOF
	.comm	_MAX_REC_NUMBER,4,2             ; @MAX_REC_NUMBER
	.comm	_RET_ERROR,4,2                  ; @RET_ERROR
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_R_FIXLEN,4,2                   ; @R_FIXLEN
	.comm	_R_FIRST,4,2                    ; @R_FIRST
	.comm	_R_NEXT,4,2                     ; @R_NEXT
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
.subsections_via_symbols
