	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Catalog_Validate          ## -- Begin function HPDF_Catalog_Validate
	.p2align	4, 0x90
_HPDF_Catalog_Validate:                 ## @HPDF_Catalog_Validate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_HPDF_FALSE@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	_HPDF_OSUBCLASS_CATALOG@GOTPCREL(%rip), %rax
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	cmpl	%ecx, 4(%rdi)
	jne	LBB0_3
## %bb.2:
	movq	_HPDF_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_3:
	movl	(%rdi), %edi
	movq	_HPDF_INVALID_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_HPDF_SetError
LBB0_4:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_FALSE,4,2                 ## @HPDF_FALSE
	.comm	_HPDF_OSUBCLASS_CATALOG,4,2     ## @HPDF_OSUBCLASS_CATALOG
	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
	.comm	_HPDF_INVALID_OBJECT,4,2        ## @HPDF_INVALID_OBJECT
	.comm	_HPDF_TRUE,4,2                  ## @HPDF_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Catalog_Validate          ; -- Begin function HPDF_Catalog_Validate
	.p2align	2
_HPDF_Catalog_Validate:                 ; @HPDF_Catalog_Validate
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _HPDF_OSUBCLASS_CATALOG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HPDF_OSUBCLASS_CATALOG@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_3
; %bb.2:
Lloh6:
	adrp	x8, _HPDF_TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPDF_TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	ldr	w0, [x0]
Lloh8:
	adrp	x8, _HPDF_INVALID_OBJECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_INVALID_OBJECT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_SetError
LBB0_4:
Lloh11:
	adrp	x8, _HPDF_FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_FALSE,4,2                 ; @HPDF_FALSE
	.comm	_HPDF_OSUBCLASS_CATALOG,4,2     ; @HPDF_OSUBCLASS_CATALOG
	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
	.comm	_HPDF_INVALID_OBJECT,4,2        ; @HPDF_INVALID_OBJECT
	.comm	_HPDF_TRUE,4,2                  ; @HPDF_TRUE
.subsections_via_symbols
