	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function record_buf
_record_buf:                            ## @record_buf
	.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	_MAXRECSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_recpos@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	subq	%rdi, %rax
	cmpq	%rsi, %rax
	jae	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%r15), %rdi
LBB0_2:
	movq	_recbuf@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%rbx, (%r15)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXRECSIZE,8,3                 ## @MAXRECSIZE
	.comm	_recpos,8,3                     ## @recpos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"record buffer overflow"

	.comm	_recbuf,8,3                     ## @recbuf
	.no_dead_strip	_record_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function record_buf
_record_buf:                            ; @record_buf
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MAXRECSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXRECSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x21, _recpos@GOTPAGE
Lloh4:
	ldr	x21, [x21, _recpos@GOTPAGEOFF]
	ldr	x8, [x21]
	sub	x9, x9, x8
	cmp	x9, x1
	b.hs	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x8, [x21]
LBB0_2:
Lloh7:
	adrp	x9, _recbuf@GOTPAGE
Lloh8:
	ldr	x9, [x9, _recbuf@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x0, x8, x9
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x21]
	add	x8, x8, x19
	str	x8, [x21]
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXRECSIZE,8,3                 ; @MAXRECSIZE
	.comm	_recpos,8,3                     ; @recpos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"record buffer overflow"

	.comm	_recbuf,8,3                     ; @recbuf
	.no_dead_strip	_record_buf
.subsections_via_symbols
