	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Page_BeforeWrite
_Page_BeforeWrite:                      ## @Page_BeforeWrite
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_HPDF_PTRACE
	movq	(%r14), %rax
	movq	_HPDF_GMODE_PATH_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%ebx, %edi
	callq	_HPDF_Page_EndPath
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.2:
	movq	(%r14), %rax
LBB0_3:
	movq	_HPDF_GMODE_TEXT_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_HPDF_PTRACE
	movl	%ebx, %edi
	callq	_HPDF_Page_EndText
	movq	_HPDF_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
LBB0_5:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.7:
	movq	_HPDF_OK@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_HPDF_Page_GRestore
	cmpl	(%r15), %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_8
LBB0_10:
	movq	_HPDF_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" HPDF_Page_BeforeWrite\n"

	.comm	_HPDF_GMODE_PATH_OBJECT,8,3     ## @HPDF_GMODE_PATH_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	" HPDF_Page_BeforeWrite warning path object is not end\n"

	.comm	_HPDF_OK,4,2                    ## @HPDF_OK
	.comm	_HPDF_GMODE_TEXT_OBJECT,8,3     ## @HPDF_GMODE_TEXT_OBJECT
L_.str.2:                               ## @.str.2
	.asciz	" HPDF_Page_BeforeWrite warning text block is not end\n"

	.no_dead_strip	_Page_BeforeWrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Page_BeforeWrite
_Page_BeforeWrite:                      ; @Page_BeforeWrite
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldrsw	x20, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPDF_PTRACE
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _HPDF_GMODE_PATH_OBJECT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HPDF_GMODE_PATH_OBJECT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x21, _HPDF_OK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HPDF_OK@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x0, x19
	bl	_HPDF_Page_EndPath
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.2:
	ldr	x8, [x20]
LBB0_3:
Lloh9:
	adrp	x9, _HPDF_GMODE_TEXT_OBJECT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HPDF_GMODE_TEXT_OBJECT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_HPDF_PTRACE
	mov	x0, x19
	bl	_HPDF_Page_EndText
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_10
LBB0_5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_HPDF_Page_GRestore
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
LBB0_9:
	ldr	w0, [x21]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" HPDF_Page_BeforeWrite\n"

	.comm	_HPDF_GMODE_PATH_OBJECT,8,3     ; @HPDF_GMODE_PATH_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	" HPDF_Page_BeforeWrite warning path object is not end\n"

	.comm	_HPDF_OK,4,2                    ; @HPDF_OK
	.comm	_HPDF_GMODE_TEXT_OBJECT,8,3     ; @HPDF_GMODE_TEXT_OBJECT
l_.str.2:                               ; @.str.2
	.asciz	" HPDF_Page_BeforeWrite warning text block is not end\n"

	.no_dead_strip	_Page_BeforeWrite
.subsections_via_symbols
