	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Encrypt_Init              ## -- Begin function HPDF_Encrypt_Init
	.p2align	4, 0x90
_HPDF_Encrypt_Init:                     ## @HPDF_Encrypt_Init
	.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
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_HPDF_MemSet
	movq	_HPDF_ENCRYPT_R2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$5, (%rbx)
	movl	12(%rbx), %edi
	movq	_HPDF_PADDING_STRING@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_HPDF_PASSWD_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_HPDF_MemCpy
	movl	8(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	callq	_HPDF_MemCpy
	movq	_HPDF_ENABLE_PRINT@GOTPCREL(%rip), %rax
	movq	_HPDF_ENABLE_EDIT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_HPDF_ENABLE_COPY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_HPDF_ENABLE_EDIT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_HPDF_PERMISSION_PAD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPDF_ENCRYPT_R2,4,2            ## @HPDF_ENCRYPT_R2
	.comm	_HPDF_PADDING_STRING,4,2        ## @HPDF_PADDING_STRING
	.comm	_HPDF_PASSWD_LEN,4,2            ## @HPDF_PASSWD_LEN
	.comm	_HPDF_ENABLE_PRINT,4,2          ## @HPDF_ENABLE_PRINT
	.comm	_HPDF_ENABLE_EDIT_ALL,4,2       ## @HPDF_ENABLE_EDIT_ALL
	.comm	_HPDF_ENABLE_COPY,4,2           ## @HPDF_ENABLE_COPY
	.comm	_HPDF_ENABLE_EDIT,4,2           ## @HPDF_ENABLE_EDIT
	.comm	_HPDF_PERMISSION_PAD,4,2        ## @HPDF_PERMISSION_PAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_HPDF_Encrypt_Init              ; -- Begin function HPDF_Encrypt_Init
	.p2align	2
_HPDF_Encrypt_Init:                     ; @HPDF_Encrypt_Init
	.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
	mov	w1, #0
	mov	w2, #4
	bl	_HPDF_MemSet
Lloh0:
	adrp	x8, _HPDF_ENCRYPT_R2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HPDF_ENCRYPT_R2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	w8, #5
	str	w8, [x19]
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x20, _HPDF_PADDING_STRING@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HPDF_PADDING_STRING@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x21, _HPDF_PASSWD_LEN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _HPDF_PASSWD_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_HPDF_MemCpy
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_HPDF_MemCpy
Lloh7:
	adrp	x8, _HPDF_ENABLE_PRINT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPDF_ENABLE_PRINT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _HPDF_ENABLE_EDIT_ALL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HPDF_ENABLE_EDIT_ALL@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _HPDF_ENABLE_COPY@GOTPAGE
Lloh14:
	ldr	x10, [x10, _HPDF_ENABLE_COPY@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh15:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _HPDF_ENABLE_EDIT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HPDF_ENABLE_EDIT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh19:
	adrp	x9, _HPDF_PERMISSION_PAD@GOTPAGE
Lloh20:
	ldr	x9, [x9, _HPDF_PERMISSION_PAD@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	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 AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HPDF_ENCRYPT_R2,4,2            ; @HPDF_ENCRYPT_R2
	.comm	_HPDF_PADDING_STRING,4,2        ; @HPDF_PADDING_STRING
	.comm	_HPDF_PASSWD_LEN,4,2            ; @HPDF_PASSWD_LEN
	.comm	_HPDF_ENABLE_PRINT,4,2          ; @HPDF_ENABLE_PRINT
	.comm	_HPDF_ENABLE_EDIT_ALL,4,2       ; @HPDF_ENABLE_EDIT_ALL
	.comm	_HPDF_ENABLE_COPY,4,2           ; @HPDF_ENABLE_COPY
	.comm	_HPDF_ENABLE_EDIT,4,2           ; @HPDF_ENABLE_EDIT
	.comm	_HPDF_PERMISSION_PAD,4,2        ; @HPDF_PERMISSION_PAD
.subsections_via_symbols
