	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Page_GetExtGStateName     ## -- Begin function HPDF_Page_GetExtGStateName
	.p2align	4, 0x90
_HPDF_Page_GetExtGStateName:            ## @HPDF_Page_GetExtGStateName
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	4(%rdi), %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
LBB0_1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_HPDF_Dict_GetKeyByObj
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	movq	%rsp, %r12
	movq	_HPDF_LIMIT_MAX_NAME_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movslq	(%rbx), %rbx
	addq	%r15, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_HPDF_StrCpy
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rsi
	incq	%rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_HPDF_IToA
	movq	(%r13), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_HPDF_Dict_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.3:
	movq	(%r13), %rdi
	movq	%r14, %rsi
	callq	_HPDF_Dict_GetKeyByObj
	jmp	LBB0_10
LBB0_4:
	movq	_HPDF_OCLASS_DICT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_HPDF_Page_GetInheritableItem
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %r12
	movl	(%r15), %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.7:
	movq	%rbx, (%r13)
	jmp	LBB0_1
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	movq	%r12, %rsp
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Page_GetExtGStateName\n"

L_.str.1:                               ## @.str.1
	.asciz	"Resources"

	.comm	_HPDF_OCLASS_DICT,4,2           ## @HPDF_OCLASS_DICT
L_.str.2:                               ## @.str.2
	.asciz	"ExtGState"

	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,4,2    ## @HPDF_LIMIT_MAX_NAME_LEN
L_.str.3:                               ## @.str.3
	.asciz	"E"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Page_GetExtGStateName     ; -- Begin function HPDF_Page_GetExtGStateName
	.p2align	2
_HPDF_Page_GetExtGStateName:            ; @HPDF_Page_GetExtGStateName
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldrsw	x23, [x0, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x21, [x23]
	cbz	x21, LBB0_4
LBB0_1:
	mov	x0, x21
	mov	x1, x19
	bl	_HPDF_Dict_GetKeyByObj
	cbnz	x0, LBB0_11
; %bb.2:
	mov	x22, sp
Lloh5:
	adrp	x12, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGE
Lloh6:
	ldr	x12, [x12, _HPDF_LIMIT_MAX_NAME_LEN@GOTPAGEOFF]
	ldr	w8, [x12]
	add	w8, w8, #1
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldrsw	x8, [x12]
	add	x21, x20, x8
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_HPDF_StrCpy
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x2, x21
	bl	_HPDF_IToA
	ldr	x0, [x23]
	mov	x1, x20
	mov	x2, x19
	bl	_HPDF_Dict_Add
Lloh11:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	ldr	x0, [x23]
	mov	x1, x19
	bl	_HPDF_Dict_GetKeyByObj
	b	LBB0_9
LBB0_4:
Lloh14:
	adrp	x8, _HPDF_OCLASS_DICT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HPDF_OCLASS_DICT@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Page_GetInheritableItem
	cbz	x0, LBB0_11
; %bb.5:
	mov	x22, x0
	ldr	w0, [x20]
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_11
; %bb.6:
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_HPDF_Dict_Add
Lloh21:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
	str	x21, [x23]
	b	LBB0_1
LBB0_8:
	mov	x0, #0
LBB0_9:
	mov	sp, x22
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Page_GetExtGStateName\n"

l_.str.1:                               ; @.str.1
	.asciz	"Resources"

	.comm	_HPDF_OCLASS_DICT,4,2           ; @HPDF_OCLASS_DICT
l_.str.2:                               ; @.str.2
	.asciz	"ExtGState"

	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.comm	_HPDF_LIMIT_MAX_NAME_LEN,4,2    ; @HPDF_LIMIT_MAX_NAME_LEN
l_.str.3:                               ; @.str.3
	.asciz	"E"

.subsections_via_symbols
