	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_trailer
_write_trailer:                         ## @write_trailer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_BLOCKSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movq	_offset@GOTPCREL(%rip), %r12
	movslq	(%r12), %rdi
	subl	%edi, %ebx
	movq	_block@GOTPCREL(%rip), %r15
	addq	(%r15), %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	(%r15), %rsi
	movl	(%r14), %edx
	movl	$1, %edi
	callq	_write_or_die
	movq	_RECORDSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	cmpl	%eax, %ebx
	jge	LBB0_1
## %bb.2:
	movq	(%r15), %rdi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r15), %rsi
	movl	(%r14), %edx
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_or_die                   ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCKSIZE,4,2                  ## @BLOCKSIZE
	.comm	_offset,4,2                     ## @offset
	.comm	_block,8,3                      ## @block
	.comm	_RECORDSIZE,4,2                 ## @RECORDSIZE
	.no_dead_strip	_write_trailer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_trailer
_write_trailer:                         ; @write_trailer
	.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	x20, _BLOCKSIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BLOCKSIZE@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x22, _offset@GOTPAGE
Lloh3:
	ldr	x22, [x22, _offset@GOTPAGEOFF]
	ldrsw	x9, [x22]
	sub	w19, w8, w9
Lloh4:
	adrp	x21, _block@GOTPAGE
Lloh5:
	ldr	x21, [x21, _block@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x9
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	ldr	x1, [x21]
	ldr	w2, [x20]
	mov	w0, #1
	bl	_write_or_die
Lloh6:
	adrp	x8, _RECORDSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RECORDSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w19, w8, lsl #1
	b.ge	LBB0_2
; %bb.1:
	ldr	x0, [x21]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_memset
	ldr	x1, [x21]
	ldr	w2, [x20]
	mov	w0, #1
	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_or_die
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
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCKSIZE,4,2                  ; @BLOCKSIZE
	.comm	_offset,4,2                     ; @offset
	.comm	_block,8,3                      ; @block
	.comm	_RECORDSIZE,4,2                 ; @RECORDSIZE
	.no_dead_strip	_write_trailer
.subsections_via_symbols
