	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Obj_Write                 ## -- Begin function HPDF_Obj_Write
	.p2align	4, 0x90
_HPDF_Obj_Write:                        ## @HPDF_Obj_Write
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	_HPDF_OTYPE_HIDDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.1:
	movslq	%ebx, %rdi
	callq	_HPDF_PTRACE
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_2
LBB0_4:
	movq	8(%rbx), %rax
	movq	_HPDF_OCLASS_PROXY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rsp, %r13
	movq	_HPDF_SHORT_BUF_SIZ@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movslq	(%r12), %rax
	leaq	(%r15,%rax), %r12
	decq	%r12
	movq	(%rbx), %rbx
	movl	$16777215, %esi                 ## imm = 0xFFFFFF
	andl	(%rbx), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_HPDF_IToA
	movb	$32, (%rax)
	leaq	1(%rax), %rdi
	movl	16(%rbx), %esi
	movq	%r12, %rdx
	callq	_HPDF_IToA
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movq	%r12, %rdx
	callq	_HPDF_StrCpy
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_HPDF_Stream_WriteStr
	movq	%r13, %rsp
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HPDF_Obj_WriteValue            ## TAILCALL
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Obj_Write\n"

	.comm	_HPDF_OTYPE_HIDDEN,4,2          ## @HPDF_OTYPE_HIDDEN
	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
	.comm	_HPDF_OCLASS_PROXY,8,3          ## @HPDF_OCLASS_PROXY
	.comm	_HPDF_SHORT_BUF_SIZ,4,2         ## @HPDF_SHORT_BUF_SIZ
L_.str.2:                               ## @.str.2
	.asciz	" R"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Obj_Write                 ; -- Begin function HPDF_Obj_Write
	.p2align	2
_HPDF_Obj_Write:                        ; @HPDF_Obj_Write
	.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	x21, x2
	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]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _HPDF_OTYPE_HIDDEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HPDF_OTYPE_HIDDEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	sxtw	x0, w20
	bl	_HPDF_PTRACE
Lloh8:
	adrp	x8, _HPDF_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HPDF_OK@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x9, _HPDF_OCLASS_PROXY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HPDF_OCLASS_PROXY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	mov	x23, sp
Lloh14:
	adrp	x12, _HPDF_SHORT_BUF_SIZ@GOTPAGE
Lloh15:
	ldr	x12, [x12, _HPDF_SHORT_BUF_SIZ@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldrsw	x8, [x12]
	add	x8, x21, x8
	sub	x22, x8, #1
	ldr	x20, [x20]
	ldr	w8, [x20]
	and	w1, w8, #0xffffff
	mov	x0, x21
	mov	x2, x22
	bl	_HPDF_IToA
	mov	w8, #32
	strb	w8, [x0], #1
	ldr	w1, [x20, #16]
	mov	x2, x22
	bl	_HPDF_IToA
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	bl	_HPDF_StrCpy
	mov	x0, x19
	mov	x1, x21
	bl	_HPDF_Stream_WriteStr
	mov	sp, x23
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.5:
	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_6:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	b	_HPDF_Obj_WriteValue
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Obj_Write\n"

	.comm	_HPDF_OTYPE_HIDDEN,4,2          ; @HPDF_OTYPE_HIDDEN
	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
	.comm	_HPDF_OCLASS_PROXY,8,3          ; @HPDF_OCLASS_PROXY
	.comm	_HPDF_SHORT_BUF_SIZ,4,2         ; @HPDF_SHORT_BUF_SIZ
l_.str.2:                               ; @.str.2
	.asciz	" R"

.subsections_via_symbols
