	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Annotation_New            ## -- Begin function HPDF_Annotation_New
	.p2align	4, 0x90
_HPDF_Annotation_New:                   ## @HPDF_Annotation_New
	.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, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	_HPDF_OK@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%ebx, %edi
	callq	_HPDF_Dict_New
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r13
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_HPDF_Xref_Add
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.2:
	movl	%ebx, %edi
	callq	_HPDF_Array_New
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_HPDF_Dict_Add
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.4:
	leaq	16(%rbp), %rdx
	movq	(%rdx), %rbx
	movq	8(%rdx), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
## %bb.5:
	movq	%rax, (%rdx)
	movq	%rbx, 8(%rdx)
	movq	%rax, %rcx
	jmp	LBB0_11
LBB0_10:
	movq	%rbx, %rcx
	movq	%rax, %rbx
LBB0_11:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdx), %rsi
	movl	%r15d, %edi
	callq	_HPDF_Array_AddReal
	movq	%rax, %r12
	addq	%r14, %r12
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_HPDF_Array_AddReal
	movq	%rax, %r14
	addq	%r12, %r14
	leaq	16(%rbp), %rax
	movq	24(%rax), %rsi
	movl	%r15d, %edi
	callq	_HPDF_Array_AddReal
	movq	%rax, %rbx
	addq	%r14, %rbx
	movl	%r15d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_HPDF_Array_AddReal
	movq	%rax, %r14
	addq	%rbx, %r14
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddName
	movq	%rax, %rbx
	addq	%r14, %rbx
	movq	_HPDF_ANNOT_TYPE_NAMES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_HPDF_Dict_AddName
	addq	%rbx, %rax
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	_HPDF_OSUBCLASS_ANNOTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	jmp	LBB0_14
LBB0_13:
	xorl	%r13d, %r13d
LBB0_14:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_OK,8,3                    ## @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Annotation_New\n"

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

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

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

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

	.comm	_HPDF_ANNOT_TYPE_NAMES,8,3      ## @HPDF_ANNOT_TYPE_NAMES
	.comm	_HPDF_OSUBCLASS_ANNOTATION,4,2  ## @HPDF_OSUBCLASS_ANNOTATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Annotation_New            ; -- Begin function HPDF_Annotation_New
	.p2align	2
_HPDF_Annotation_New:                   ; @HPDF_Annotation_New
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _HPDF_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HPDF_OK@GOTPAGEOFF]
	ldr	x25, [x24]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x0, x22
	bl	_HPDF_Dict_New
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x23
	mov	x1, x19
	bl	_HPDF_Xref_Add
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x22
	bl	_HPDF_Array_New
	cbz	w0, LBB0_8
; %bb.3:
	mov	x22, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_HPDF_Dict_Add
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.5:
	stp	x9, x8, [x21]
LBB0_6:
	ldr	x1, [x21, #16]
	mov	x0, x22
	bl	_HPDF_Array_AddReal
	add	x23, x0, x25
	ldr	x1, [x21, #8]
	mov	x0, x22
	bl	_HPDF_Array_AddReal
	add	x23, x23, x0
	ldr	x1, [x21, #24]
	mov	x0, x22
	bl	_HPDF_Array_AddReal
	add	x23, x23, x0
	ldr	x1, [x21]
	mov	x0, x22
	bl	_HPDF_Array_AddReal
	add	x21, x23, x0
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, x19
	bl	_HPDF_Dict_AddName
	add	x21, x21, x0
Lloh10:
	adrp	x8, _HPDF_ANNOT_TYPE_NAMES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HPDF_ANNOT_TYPE_NAMES@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x2, [x8, x20, lsl #3]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_HPDF_Dict_AddName
	ldr	x8, [x24]
	add	x9, x21, x0
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
Lloh15:
	adrp	x8, _HPDF_OSUBCLASS_ANNOTATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HPDF_OSUBCLASS_ANNOTATION@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_OK,8,3                    ; @HPDF_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Annotation_New\n"

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

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

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

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

	.comm	_HPDF_ANNOT_TYPE_NAMES,8,3      ; @HPDF_ANNOT_TYPE_NAMES
	.comm	_HPDF_OSUBCLASS_ANNOTATION,4,2  ; @HPDF_OSUBCLASS_ANNOTATION
.subsections_via_symbols
