	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddResource                    ## -- Begin function AddResource
	.p2align	4, 0x90
_AddResource:                           ## @AddResource
	.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	%rdi, %r15
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	4(%r15), %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r12
	movl	4(%r15), %edi
	callq	_HPDF_Array_New
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	addq	%r13, %r12
	movl	4(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%rcx, %r13
	callq	_HPDF_Name_New
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_HPDF_Array_Add
	movq	%rax, %rbx
	addq	%r12, %rbx
	movl	4(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_HPDF_Name_New
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_HPDF_Array_Add
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	4(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_HPDF_Name_New
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_HPDF_Array_Add
	movq	%rax, %rbx
	addq	%r12, %rbx
	movl	4(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_HPDF_Name_New
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_HPDF_Array_Add
	movq	%rax, %r12
	addq	%rbx, %r12
	movl	4(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_HPDF_Name_New
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_HPDF_Array_Add
	addq	%r12, %rax
	movq	%r14, %rbx
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rbx
LBB0_2:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetCode             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Page_AddResource\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"ProcSet"

L_.str.3:                               ## @.str.3
	.asciz	"PDF"

L_.str.4:                               ## @.str.4
	.asciz	"Text"

L_.str.5:                               ## @.str.5
	.asciz	"ImageB"

L_.str.6:                               ## @.str.6
	.asciz	"ImageC"

L_.str.7:                               ## @.str.7
	.asciz	"ImageI"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddResource                    ; -- Begin function AddResource
	.p2align	2
_AddResource:                           ; @AddResource
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HPDF_OK@GOTPAGEOFF]
	ldr	x24, [x23]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w0, [x19, #4]
	bl	_HPDF_Dict_New
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_HPDF_Dict_Add
	mov	x22, x0
	ldr	w0, [x19, #4]
	bl	_HPDF_Array_New
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_HPDF_Dict_Add
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	add	x21, x22, x24
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_HPDF_Name_New
	mov	x1, x0
	mov	x0, x20
	bl	_HPDF_Array_Add
	add	x21, x21, x0
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_HPDF_Name_New
	mov	x1, x0
	mov	x0, x20
	bl	_HPDF_Array_Add
	add	x21, x21, x0
	ldr	w0, [x19, #4]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_HPDF_Name_New
	mov	x1, x0
	mov	x0, x20
	bl	_HPDF_Array_Add
	add	x21, x21, x0
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_HPDF_Name_New
	mov	x1, x0
	mov	x0, x20
	bl	_HPDF_Array_Add
	add	x21, x21, x0
	ldr	w0, [x19, #4]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_HPDF_Name_New
	mov	x1, x0
	mov	x0, x20
	bl	_HPDF_Array_Add
	ldr	x8, [x23]
	add	x0, x21, x0
	cmp	x0, x8
	mov	x21, x20
	b.ne	LBB0_6
; %bb.4:
	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_5:
	mov	x21, x19
LBB0_6:
	ldr	w0, [x21]
	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
	b	_HPDF_Error_GetCode
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Page_AddResource\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"ProcSet"

l_.str.3:                               ; @.str.3
	.asciz	"PDF"

l_.str.4:                               ; @.str.4
	.asciz	"Text"

l_.str.5:                               ; @.str.5
	.asciz	"ImageB"

l_.str.6:                               ; @.str.6
	.asciz	"ImageC"

l_.str.7:                               ; @.str.7
	.asciz	"ImageI"

.subsections_via_symbols
