	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Page_CheckState           ## -- Begin function HPDF_Page_CheckState
	.p2align	4, 0x90
_HPDF_Page_CheckState:                  ## @HPDF_Page_CheckState
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	_HPDF_OSUBCLASS_PAGE@GOTPCREL(%rip), %rax
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	cmpl	%ecx, 16(%rdi)
	jne	LBB0_3
## %bb.4:
	movq	8(%rdi), %rax
	testl	%esi, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_HPDF_INVALID_OBJECT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_HPDF_INVALID_PAGE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_7:
	movl	(%rdi), %edi
	movq	_HPDF_PAGE_INVALID_GMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	popq	%rbp
	jmp	_HPDF_RaiseError                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_INVALID_OBJECT,4,2        ## @HPDF_INVALID_OBJECT
	.comm	_HPDF_OSUBCLASS_PAGE,4,2        ## @HPDF_OSUBCLASS_PAGE
	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
	.comm	_HPDF_INVALID_PAGE,4,2          ## @HPDF_INVALID_PAGE
	.comm	_HPDF_PAGE_INVALID_GMODE,4,2    ## @HPDF_PAGE_INVALID_GMODE
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Page_CheckState           ; -- Begin function HPDF_Page_CheckState
	.p2align	2
_HPDF_Page_CheckState:                  ; @HPDF_Page_CheckState
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _HPDF_OSUBCLASS_PAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HPDF_OSUBCLASS_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _HPDF_OCLASS_DICT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HPDF_OCLASS_DICT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh9:
	adrp	x8, _HPDF_INVALID_OBJECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_INVALID_OBJECT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ret
LBB0_5:
Lloh12:
	adrp	x8, _HPDF_INVALID_PAGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HPDF_INVALID_PAGE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_6:
	ldr	w0, [x0]
Lloh15:
	adrp	x8, _HPDF_PAGE_INVALID_GMODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HPDF_PAGE_INVALID_GMODE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	b	_HPDF_RaiseError
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_INVALID_OBJECT,4,2        ; @HPDF_INVALID_OBJECT
	.comm	_HPDF_OSUBCLASS_PAGE,4,2        ; @HPDF_OSUBCLASS_PAGE
	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
	.comm	_HPDF_INVALID_PAGE,4,2          ; @HPDF_INVALID_PAGE
	.comm	_HPDF_PAGE_INVALID_GMODE,4,2    ; @HPDF_PAGE_INVALID_GMODE
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
.subsections_via_symbols
