	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteTrailer
_WriteTrailer:                          ## @WriteTrailer
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	16(%rdi), %rbx
	movq	24(%rdi), %rax
	addq	(%rax), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_HPDF_Dict_AddNumber
	movq	_HPDF_OK@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.1:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	4(%r15), %edi
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_HPDF_Dict_AddNumber
	cmpl	(%rbx), %eax
	jne	LBB0_7
LBB0_3:
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	callq	_HPDF_Stream_WriteStr
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.4:
	movl	4(%r15), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_HPDF_Dict_Write
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	callq	_HPDF_Stream_WriteStr
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r15), %esi
	movl	%r14d, %edi
	callq	_HPDF_Stream_WriteUInt
	cmpl	(%rbx), %eax
	jne	LBB0_7
## %bb.8:
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Stream_WriteStr           ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" WriteTrailer\n"

L_.str.1:                               ## @.str.1
	.asciz	"Size"

	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
L_.str.2:                               ## @.str.2
	.asciz	"Prev"

L_.str.3:                               ## @.str.3
	.asciz	"trailer\n"

L_.str.4:                               ## @.str.4
	.asciz	"\nstartxref\n"

L_.str.5:                               ## @.str.5
	.asciz	"\n%%EOF\n"

	.no_dead_strip	_WriteTrailer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteTrailer
_WriteTrailer:                          ; @WriteTrailer
	.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
	ldp	x9, x8, [x0, #16]
	ldr	x8, [x8]
	add	x21, x9, x8
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_HPDF_Dict_AddNumber
Lloh4:
	adrp	x21, _HPDF_OK@GOTPAGE
Lloh5:
	ldr	x21, [x21, _HPDF_OK@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #4]
	ldr	x2, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_HPDF_Dict_AddNumber
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_3:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [x20, #4]
	mov	x1, x19
	mov	x2, #0
	bl	_HPDF_Dict_Write
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.5:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Stream_WriteStr
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_HPDF_Stream_WriteUInt
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	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	_HPDF_Stream_WriteStr
LBB0_8:
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" WriteTrailer\n"

l_.str.1:                               ; @.str.1
	.asciz	"Size"

	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
l_.str.2:                               ; @.str.2
	.asciz	"Prev"

l_.str.3:                               ; @.str.3
	.asciz	"trailer\n"

l_.str.4:                               ; @.str.4
	.asciz	"\nstartxref\n"

l_.str.5:                               ; @.str.5
	.asciz	"\n%%EOF\n"

	.no_dead_strip	_WriteTrailer
.subsections_via_symbols
