	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ExtGState_Check                ## -- Begin function ExtGState_Check
	.p2align	4, 0x90
_ExtGState_Check:                       ## @ExtGState_Check
	.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	%rdi, %rbx
	callq	_HPDF_ExtGState_Validate
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_HPDF_OSUBCLASS_EXT_GSTATE_R@GOTPCREL(%rip), %rax
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	cmpl	%ecx, 4(%rbx)
	jne	LBB0_3
## %bb.5:
	movl	(%rbx), %edi
	movq	_HPDF_EXT_GSTATE_READ_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_HPDF_RaiseError                ## TAILCALL
LBB0_1:
	movq	_HPDF_INVALID_OBJECT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_INVALID_OBJECT,4,2        ## @HPDF_INVALID_OBJECT
	.comm	_HPDF_OSUBCLASS_EXT_GSTATE_R,4,2 ## @HPDF_OSUBCLASS_EXT_GSTATE_R
	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
	.comm	_HPDF_EXT_GSTATE_READ_ONLY,4,2  ## @HPDF_EXT_GSTATE_READ_ONLY
	.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	_ExtGState_Check                ; -- Begin function ExtGState_Check
	.p2align	2
_ExtGState_Check:                       ; @ExtGState_Check
	.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
	bl	_HPDF_ExtGState_Validate
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _HPDF_OSUBCLASS_EXT_GSTATE_R@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HPDF_OSUBCLASS_EXT_GSTATE_R@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_4
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _HPDF_EXT_GSTATE_READ_ONLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HPDF_EXT_GSTATE_READ_ONLY@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_HPDF_RaiseError
LBB0_3:
Lloh9:
	adrp	x8, _HPDF_INVALID_OBJECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HPDF_INVALID_OBJECT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_INVALID_OBJECT,4,2        ; @HPDF_INVALID_OBJECT
	.comm	_HPDF_OSUBCLASS_EXT_GSTATE_R,4,2 ; @HPDF_OSUBCLASS_EXT_GSTATE_R
	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
	.comm	_HPDF_EXT_GSTATE_READ_ONLY,4,2  ; @HPDF_EXT_GSTATE_READ_ONLY
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
.subsections_via_symbols
