	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteHeader
_WriteHeader:                           ## @WriteHeader
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movslq	4(%rdi), %r14
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	60(%r14), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_HPDF_Stream_Write
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	56(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteUINT32
	movq	%rax, %r13
	addq	%rbx, %r13
	movl	(%r12), %eax
	movl	%eax, (%r15)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_WriteUINT32
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	52(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteUINT32
	movq	%rax, %r15
	addq	%rbx, %r15
	movl	48(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteUINT16
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	44(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteUINT16
	movq	%rax, %r15
	addq	%rbx, %r15
	movl	40(%r14), %esi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_HPDF_Stream_Write
	movq	%rax, %r13
	addq	%r15, %r13
	movl	36(%r14), %esi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_HPDF_Stream_Write
	movq	%rax, %rbx
	addq	%r13, %rbx
	movl	32(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteINT16
	movq	%rax, %r15
	addq	%rbx, %r15
	movl	28(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteINT16
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	24(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteINT16
	movq	%rax, %r15
	addq	%rbx, %r15
	movl	20(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteINT16
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteUINT16
	movq	%rax, %r15
	addq	%rbx, %r15
	movl	12(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteUINT16
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteINT16
	movq	%rax, %r15
	addq	%rbx, %r15
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteINT16
	movq	%rax, %rbx
	addq	%r15, %rbx
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_WriteINT16
	addq	%rbx, %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" WriteHeader\n"

	.no_dead_strip	_WriteHeader
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteHeader
_WriteHeader:                           ; @WriteHeader
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x19, x0
	ldrsw	x23, [x0, #4]
Lloh0:
	adrp	x22, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HPDF_OK@GOTPAGEOFF]
	ldr	x24, [x22]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w1, [x23, #60]
	mov	x0, x20
	mov	w2, #4
	bl	_HPDF_Stream_Write
	add	x24, x0, x24
	ldr	w1, [x23, #56]
	mov	x0, x20
	bl	_WriteUINT32
	add	x24, x24, x0
	ldr	w8, [x20]
	str	w8, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_WriteUINT32
	add	x21, x24, x0
	ldr	w1, [x23, #52]
	mov	x0, x20
	bl	_WriteUINT32
	add	x21, x21, x0
	ldr	w1, [x23, #48]
	mov	x0, x20
	bl	_WriteUINT16
	add	x21, x21, x0
	ldr	w1, [x23, #44]
	mov	x0, x20
	bl	_WriteUINT16
	add	x21, x21, x0
	ldr	w1, [x23, #40]
	mov	x0, x20
	mov	w2, #8
	bl	_HPDF_Stream_Write
	add	x21, x21, x0
	ldr	w1, [x23, #36]
	mov	x0, x20
	mov	w2, #8
	bl	_HPDF_Stream_Write
	add	x21, x21, x0
	ldr	w1, [x23, #32]
	mov	x0, x20
	bl	_WriteINT16
	add	x21, x21, x0
	ldr	w1, [x23, #28]
	mov	x0, x20
	bl	_WriteINT16
	add	x21, x21, x0
	ldr	w1, [x23, #24]
	mov	x0, x20
	bl	_WriteINT16
	add	x21, x21, x0
	ldr	w1, [x23, #20]
	mov	x0, x20
	bl	_WriteINT16
	add	x21, x21, x0
	ldr	w1, [x23, #16]
	mov	x0, x20
	bl	_WriteUINT16
	add	x21, x21, x0
	ldr	w1, [x23, #12]
	mov	x0, x20
	bl	_WriteUINT16
	add	x21, x21, x0
	ldr	w1, [x23, #8]
	mov	x0, x20
	bl	_WriteINT16
	add	x21, x21, x0
	ldr	w1, [x23, #4]
	mov	x0, x20
	bl	_WriteINT16
	add	x21, x21, x0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_WriteINT16
	ldr	x8, [x22]
	add	x0, x21, x0
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_HPDF_Error_GetCode
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" WriteHeader\n"

	.no_dead_strip	_WriteHeader
.subsections_via_symbols
