	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_PDFA_AppendOutputIntents  ## -- Begin function HPDF_PDFA_AppendOutputIntents
	.p2align	4, 0x90
_HPDF_PDFA_AppendOutputIntents:         ## @HPDF_PDFA_AppendOutputIntents
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_HPDF_HasDoc
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	16(%r13), %edi
	callq	_HPDF_Dict_New
	movq	%rax, %r14
	movl	20(%r13), %edi
	movq	%rax, %rsi
	callq	_HPDF_Xref_Add
	movq	%rax, %rbx
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_HPDF_Dict_AddName
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	addq	%rbx, %r15
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_HPDF_Dict_AddName
	movq	%r12, %rbx
	movq	%rax, %r12
	addq	%r15, %r12
	movl	16(%r13), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_HPDF_String_New
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	addq	%r12, %r14
	movl	16(%r13), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_HPDF_String_New
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r15
	addq	%r14, %r15
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	16(%r13), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_HPDF_String_New
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	movq	%rax, %r12
	addq	%r15, %r12
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_HPDF_Dict_Add
	movq	%rax, %rbx
	addq	%r12, %rbx
	cmpq	(%r15), %rbx
	jne	LBB0_3
## %bb.6:
	movq	8(%r13), %rdi
	movq	_HPDF_OCLASS_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	callq	_HPDF_Dict_GetItem
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_HPDF_Array_Add
LBB0_12:
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Error_GetDetailCode       ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	callq	_HPDF_Dict_Free
	jmp	LBB0_4
LBB0_1:
	movq	_HPDF_INVALID_DOCUMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	16(%r13), %edi
	callq	_HPDF_Array_New
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rax, %rbx
	movq	8(%r13), %rdi
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdx
	callq	_HPDF_Dict_Add
	cmpq	(%r15), %rax
	je	LBB0_9
## %bb.11:
	movq	%r13, %rdi
	callq	_HPDF_CheckError
	jmp	LBB0_12
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_INVALID_DOCUMENT,8,3      ## @HPDF_INVALID_DOCUMENT
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Type"

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

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

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

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

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

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

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

L_.str.8:                               ## @.str.8
	.asciz	"OutputIntents"

	.comm	_HPDF_OCLASS_ARRAY,4,2          ## @HPDF_OCLASS_ARRAY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_PDFA_AppendOutputIntents  ; -- Begin function HPDF_PDFA_AppendOutputIntents
	.p2align	2
_HPDF_PDFA_AppendOutputIntents:         ; @HPDF_PDFA_AppendOutputIntents
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_HPDF_HasDoc
	cbz	w0, LBB0_7
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_HPDF_Dict_New
	mov	x20, x0
	ldr	w0, [x19, #20]
	mov	x1, x20
	bl	_HPDF_Xref_Add
	mov	x23, x0
Lloh0:
	adrp	x24, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HPDF_OK@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_AddName
	add	x23, x0, x23
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_AddName
	add	x23, x23, x0
	ldr	w0, [x19, #16]
	mov	x1, x22
	mov	x2, #0
	bl	_HPDF_String_New
	mov	x2, x0
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_Add
	add	x23, x23, x0
	ldr	w0, [x19, #16]
	mov	x1, x22
	mov	x2, #0
	bl	_HPDF_String_New
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_Add
	add	x23, x23, x0
	ldr	w0, [x19, #16]
	mov	x1, x22
	mov	x2, #0
	bl	_HPDF_String_New
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_HPDF_Dict_Add
	add	x22, x23, x0
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_HPDF_Dict_Add
	ldr	x8, [x24]
	add	x23, x22, x0
	cmp	x23, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x8, _HPDF_OCLASS_ARRAY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HPDF_OCLASS_ARRAY@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_HPDF_Dict_GetItem
	mov	x21, x0
	cbz	x0, LBB0_9
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	bl	_HPDF_Array_Add
LBB0_5:
	mov	x0, x19
	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_GetDetailCode
LBB0_6:
	mov	x0, x20
	bl	_HPDF_Dict_Free
	b	LBB0_8
LBB0_7:
Lloh23:
	adrp	x8, _HPDF_INVALID_DOCUMENT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HPDF_INVALID_DOCUMENT@GOTPAGEOFF]
Lloh25:
	ldr	x23, [x8]
LBB0_8:
	mov	x0, x23
	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_9:
	ldr	w0, [x19, #16]
	bl	_HPDF_Array_New
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.10:
	ldr	x0, [x19, #8]
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x21
	bl	_HPDF_Dict_Add
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.11:
	mov	x0, x19
	bl	_HPDF_CheckError
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_INVALID_DOCUMENT,8,3      ; @HPDF_INVALID_DOCUMENT
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Type"

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

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

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

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

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

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

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

l_.str.8:                               ; @.str.8
	.asciz	"OutputIntents"

	.comm	_HPDF_OCLASS_ARRAY,4,2          ; @HPDF_OCLASS_ARRAY
.subsections_via_symbols
