	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Image_Validate            ## -- Begin function HPDF_Image_Validate
	.p2align	4, 0x90
_HPDF_Image_Validate:                   ## @HPDF_Image_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	_HPDF_FALSE@GOTPCREL(%rip), %r14
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	_HPDF_OSUBCLASS_XOBJECT@GOTPCREL(%rip), %rax
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	cmpl	%ecx, 4(%rbx)
	jne	LBB0_5
## %bb.2:
	movq	_HPDF_OCLASS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_HPDF_Dict_GetItem
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_HPDF_StrCmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movl	(%rbx), %edi
	movq	_HPDF_INVALID_IMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_HPDF_RaiseError
LBB0_6:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_HPDF_TRUE@GOTPCREL(%rip), %r14
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Image_Validate\n"

	.comm	_HPDF_FALSE,4,2                 ## @HPDF_FALSE
	.comm	_HPDF_OSUBCLASS_XOBJECT,4,2     ## @HPDF_OSUBCLASS_XOBJECT
	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
	.comm	_HPDF_INVALID_IMAGE,4,2         ## @HPDF_INVALID_IMAGE
L_.str.1:                               ## @.str.1
	.asciz	"Subtype"

	.comm	_HPDF_OCLASS_NAME,4,2           ## @HPDF_OCLASS_NAME
L_.str.2:                               ## @.str.2
	.asciz	"Image"

	.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_Image_Validate            ; -- Begin function HPDF_Image_Validate
	.p2align	2
_HPDF_Image_Validate:                   ; @HPDF_Image_Validate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	cbz	x19, LBB0_5
; %bb.1:
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _HPDF_OSUBCLASS_XOBJECT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HPDF_OSUBCLASS_XOBJECT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _HPDF_OCLASS_DICT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HPDF_OCLASS_DICT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _HPDF_OCLASS_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_OCLASS_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_GetItem
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x0]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_HPDF_StrCmp
	cbz	x0, LBB0_7
LBB0_4:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _HPDF_INVALID_IMAGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HPDF_INVALID_IMAGE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_HPDF_RaiseError
LBB0_5:
Lloh18:
	adrp	x8, _HPDF_FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HPDF_FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh20:
	adrp	x8, _HPDF_TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HPDF_TRUE@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Image_Validate\n"

	.comm	_HPDF_FALSE,4,2                 ; @HPDF_FALSE
	.comm	_HPDF_OSUBCLASS_XOBJECT,4,2     ; @HPDF_OSUBCLASS_XOBJECT
	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
	.comm	_HPDF_INVALID_IMAGE,4,2         ; @HPDF_INVALID_IMAGE
l_.str.1:                               ; @.str.1
	.asciz	"Subtype"

	.comm	_HPDF_OCLASS_NAME,4,2           ; @HPDF_OCLASS_NAME
l_.str.2:                               ; @.str.2
	.asciz	"Image"

	.comm	_HPDF_TRUE,4,2                  ; @HPDF_TRUE
.subsections_via_symbols
