	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ParseOS2
_ParseOS2:                              ## @ParseOS2
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movslq	8(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	callq	_FindTable
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_HPDF_PTRACE
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.1:
	movl	40(%r14), %edi
	movl	(%rbx), %esi
	movq	_HPDF_SEEK_SET@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_HPDF_Stream_Seek
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.2:
	movl	40(%r14), %edi
	leaq	-56(%rbp), %rsi
	callq	_GetUINT16
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.3:
	movl	40(%r14), %edi
	movl	(%rbx), %esi
	addl	$8, %esi
	movl	(%r13), %edx
	callq	_HPDF_Stream_Seek
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.4:
	movl	40(%r14), %edi
	movq	%r14, %rsi
	callq	_GetUINT16
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.5:
	movzwl	(%r14), %eax
	testl	$770, %eax                      ## imm = 0x302
	je	LBB0_8
## %bb.6:
	cmpq	$0, 48(%r14)
	je	LBB0_8
## %bb.7:
	movl	4(%r15), %edi
	movq	_HPDF_TTF_CANNOT_EMBEDDING_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_HPDF_SetError
	jmp	LBB0_23
LBB0_24:
	movl	4(%r15), %edi
	movq	_HPDF_TTF_MISSING_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_SetError                  ## TAILCALL
LBB0_8:
	movl	40(%r14), %edi
	movl	(%rbx), %esi
	addl	$30, %esi
	movl	(%r13), %edx
	callq	_HPDF_Stream_Seek
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.9:
	movl	$2, -44(%rbp)
	movl	40(%r14), %edi
	movq	8(%r14), %rsi
	leaq	-44(%rbp), %rdx
	callq	_HPDF_Stream_Read
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.10:
	movl	$10, -44(%rbp)
	movl	40(%r14), %edi
	movq	16(%r14), %rsi
	leaq	-44(%rbp), %rdx
	callq	_HPDF_Stream_Read
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.11:
	movq	16(%r14), %rax
	movslq	36(%rax), %rdi
	callq	_HPDF_PTRACE
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	leal	-1(%rcx), %edx
	cmpl	$5, %edx
	jae	LBB0_12
LBB0_13:
	movq	_HPDF_FONT_SERIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r15)
	movl	(%rax), %ecx
LBB0_14:
	cmpl	$10, %ecx
	je	LBB0_15
## %bb.16:
	cmpl	$12, %ecx
	je	LBB0_17
LBB0_18:
	cmpq	$0, -56(%rbp)
	jg	LBB0_19
	jmp	LBB0_22
LBB0_15:
	movq	_HPDF_FONT_SCRIPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r15)
	movl	(%rax), %ecx
	cmpl	$12, %ecx
	jne	LBB0_18
LBB0_17:
	movq	_HPDF_FONT_SYMBOLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	cmpq	$0, -56(%rbp)
	jle	LBB0_22
LBB0_19:
	movl	40(%r14), %edi
	movq	_HPDF_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$36, %esi
	callq	_HPDF_Stream_Seek
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.20:
	movl	40(%r14), %edi
	leaq	32(%r14), %rsi
	callq	_GetUINT32
	cmpq	(%r12), %rax
	jne	LBB0_23
## %bb.21:
	movl	40(%r14), %edi
	leaq	24(%r14), %rsi
	callq	_GetUINT32
	cmpq	(%r12), %rax
	jne	LBB0_23
LBB0_22:
	movslq	24(%r14), %rdi
	callq	_HPDF_PTRACE
	movq	(%r12), %rax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpl	$7, %ecx
	je	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OS/2"

L_.str.1:                               ## @.str.1
	.asciz	" ParseOS2\n"

	.comm	_HPDF_TTF_MISSING_TABLE,4,2     ## @HPDF_TTF_MISSING_TABLE
	.comm	_HPDF_SEEK_SET,4,2              ## @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_HPDF_TTF_CANNOT_EMBEDDING_FONT,4,2 ## @HPDF_TTF_CANNOT_EMBEDDING_FONT
	.comm	_HPDF_FONT_SERIF,4,2            ## @HPDF_FONT_SERIF
	.comm	_HPDF_FONT_SCRIPT,4,2           ## @HPDF_FONT_SCRIPT
	.comm	_HPDF_FONT_SYMBOLIC,4,2         ## @HPDF_FONT_SYMBOLIC
	.comm	_HPDF_SEEK_CUR,4,2              ## @HPDF_SEEK_CUR
	.no_dead_strip	_ParseOS2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ParseOS2
_ParseOS2:                              ; @ParseOS2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldrsw	x19, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_FindTable
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x21, LBB0_8
; %bb.1:
	ldr	w0, [x19, #40]
	ldr	w1, [x21]
Lloh4:
	adrp	x23, _HPDF_SEEK_SET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HPDF_SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_HPDF_Stream_Seek
Lloh6:
	adrp	x22, _HPDF_OK@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.2:
	ldr	w0, [x19, #40]
	add	x1, sp, #8
	bl	_GetUINT16
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.3:
	ldr	w0, [x19, #40]
	ldr	w8, [x21]
	add	w1, w8, #8
	ldr	w2, [x23]
	bl	_HPDF_Stream_Seek
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.4:
	ldr	w0, [x19, #40]
	mov	x1, x19
	bl	_GetUINT16
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.5:
	ldrh	w8, [x19]
	mov	w9, #770
	tst	w8, w9
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w0, [x20, #4]
Lloh8:
	adrp	x8, _HPDF_TTF_CANNOT_EMBEDDING_FONT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_TTF_CANNOT_EMBEDDING_FONT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
	b	LBB0_22
LBB0_8:
	ldr	w0, [x20, #4]
Lloh11:
	adrp	x8, _HPDF_TTF_MISSING_TABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_TTF_MISSING_TABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_HPDF_SetError
LBB0_9:
	ldr	w0, [x19, #40]
	ldr	w8, [x21]
	add	w1, w8, #30
	ldr	w2, [x23]
	bl	_HPDF_Stream_Seek
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.10:
	mov	w8, #2
	str	w8, [sp, #4]
	ldr	w0, [x19, #40]
	ldr	x1, [x19, #8]
	add	x2, sp, #4
	bl	_HPDF_Stream_Read
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.11:
	mov	w8, #10
	str	w8, [sp, #4]
	ldr	w0, [x19, #40]
	ldr	x1, [x19, #16]
	add	x2, sp, #4
	bl	_HPDF_Stream_Read
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.12:
	ldr	x8, [x19, #16]
	ldrsw	x0, [x8, #36]
	bl	_HPDF_PTRACE
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	sub	w10, w9, #1
	cmp	w10, #5
	b.hs	LBB0_24
LBB0_13:
	ldr	w9, [x20]
Lloh14:
	adrp	x10, _HPDF_FONT_SERIF@GOTPAGE
Lloh15:
	ldr	x10, [x10, _HPDF_FONT_SERIF@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x20]
	ldr	w9, [x8]
LBB0_14:
	cmp	w9, #10
	b.eq	LBB0_23
; %bb.15:
	cmp	w9, #12
	b.ne	LBB0_17
LBB0_16:
	ldr	w8, [x20]
Lloh17:
	adrp	x9, _HPDF_FONT_SYMBOLIC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HPDF_FONT_SYMBOLIC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_17:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_21
; %bb.18:
	ldr	w0, [x19, #40]
Lloh20:
	adrp	x8, _HPDF_SEEK_CUR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HPDF_SEEK_CUR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	w1, #36
	bl	_HPDF_Stream_Seek
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.19:
	ldr	w0, [x19, #40]
	add	x1, x19, #32
	bl	_GetUINT32
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.20:
	ldr	w0, [x19, #40]
	add	x1, x19, #24
	bl	_GetUINT32
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_22
LBB0_21:
	ldrsw	x0, [x19, #24]
	bl	_HPDF_PTRACE
	ldr	x0, [x22]
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
	ldr	w9, [x20]
Lloh23:
	adrp	x10, _HPDF_FONT_SCRIPT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _HPDF_FONT_SCRIPT@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x20]
	ldr	w9, [x8]
	cmp	w9, #12
	b.eq	LBB0_16
	b	LBB0_17
LBB0_24:
	cmp	w9, #7
	b.eq	LBB0_13
	b	LBB0_14
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OS/2"

l_.str.1:                               ; @.str.1
	.asciz	" ParseOS2\n"

	.comm	_HPDF_TTF_MISSING_TABLE,4,2     ; @HPDF_TTF_MISSING_TABLE
	.comm	_HPDF_SEEK_SET,4,2              ; @HPDF_SEEK_SET
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_TTF_CANNOT_EMBEDDING_FONT,4,2 ; @HPDF_TTF_CANNOT_EMBEDDING_FONT
	.comm	_HPDF_FONT_SERIF,4,2            ; @HPDF_FONT_SERIF
	.comm	_HPDF_FONT_SCRIPT,4,2           ; @HPDF_FONT_SCRIPT
	.comm	_HPDF_FONT_SYMBOLIC,4,2         ; @HPDF_FONT_SYMBOLIC
	.comm	_HPDF_SEEK_CUR,4,2              ; @HPDF_SEEK_CUR
	.no_dead_strip	_ParseOS2
.subsections_via_symbols
