	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function finish_record
_finish_record:                         ## @finish_record
	.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	_offset@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movq	_RECORDSIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_4:
	movq	_block@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	subq	%rbx, %rcx
	xorl	%esi, %esi
	movq	%rcx, %rdx
	callq	_memset
	movq	(%r15), %rax
	subq	%rbx, %rax
	addq	%rax, (%r14)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_if_needed                ## TAILCALL
LBB0_1:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
	testq	%rbx, %rbx
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_offset,8,3                     ## @offset
	.comm	_RECORDSIZE,8,3                 ## @RECORDSIZE
	.comm	_block,8,3                      ## @block
	.no_dead_strip	_finish_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function finish_record
_finish_record:                         ; @finish_record
	.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
Lloh0:
	adrp	x19, _offset@GOTPAGE
Lloh1:
	ldr	x19, [x19, _offset@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x20, _RECORDSIZE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RECORDSIZE@GOTPAGEOFF]
	ldr	x9, [x20]
	udiv	x10, x8, x9
	msub	x21, x10, x9, x8
	cbz	x21, LBB0_2
; %bb.1:
Lloh4:
	adrp	x10, _block@GOTPAGE
Lloh5:
	ldr	x10, [x10, _block@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	add	x0, x10, x8
	sub	x2, x9, x21
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20]
	ldr	x9, [x19]
	sub	x8, x8, x21
	add	x8, x8, x9
	str	x8, [x19]
LBB0_2:
	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
	b	_write_if_needed
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_offset,8,3                     ; @offset
	.comm	_RECORDSIZE,8,3                 ; @RECORDSIZE
	.comm	_block,8,3                      ; @block
	.no_dead_strip	_finish_record
.subsections_via_symbols
