	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_PVK_header
_do_PVK_header:                         ## @do_PVK_header
	.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
	movq	%r8, %r15
	movq	%rcx, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$19, %esi
	jbe	LBB0_2
	jmp	LBB0_7
LBB0_4:
	cmpl	$23, %esi
	ja	LBB0_5
LBB0_2:
	movq	_PEM_F_DO_PVK_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_PVK_TOO_SHORT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_PEMerr
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_read_ledword
	movq	_MS_PVKMAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.6:
	movq	-48(%rbp), %rax
LBB0_7:
	addq	$4, %rax
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_read_ledword
	movq	%rbx, %rdi
	callq	_read_ledword
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_read_ledword
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_read_ledword
	movl	%eax, (%r15)
	movq	_PVK_MAX_KEYLEN@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpl	(%rcx), %eax
	ja	LBB0_13
## %bb.8:
	movl	(%r14), %eax
	movq	_PVK_MAX_SALTLEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_13
## %bb.9:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.10:
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_PEM_F_DO_PVK_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_INCONSISTENT_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PEMerr
	jmp	LBB0_13
LBB0_14:
	movq	_PEM_F_DO_PVK_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PEM_R_BAD_MAGIC_NUMBER@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	-48(%rbp), %rax
	movq	%rax, (%r12)
	movl	$1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PEM_F_DO_PVK_HEADER,4,2        ## @PEM_F_DO_PVK_HEADER
	.comm	_PEM_R_PVK_TOO_SHORT,4,2        ## @PEM_R_PVK_TOO_SHORT
	.comm	_MS_PVKMAGIC,4,2                ## @MS_PVKMAGIC
	.comm	_PEM_R_BAD_MAGIC_NUMBER,4,2     ## @PEM_R_BAD_MAGIC_NUMBER
	.comm	_PVK_MAX_KEYLEN,4,2             ## @PVK_MAX_KEYLEN
	.comm	_PVK_MAX_SALTLEN,4,2            ## @PVK_MAX_SALTLEN
	.comm	_PEM_R_INCONSISTENT_HEADER,4,2  ## @PEM_R_INCONSISTENT_HEADER
	.no_dead_strip	_do_PVK_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_PVK_header
_do_PVK_header:                         ; @do_PVK_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x19, x0
	ldr	x8, [x0]
	str	x8, [sp, #8]
	cbz	w2, LBB0_2
; %bb.1:
	cmp	w1, #19
	b.ls	LBB0_3
	b	LBB0_7
LBB0_2:
	cmp	w1, #23
	b.hi	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _PEM_F_DO_PVK_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PEM_F_DO_PVK_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _PEM_R_PVK_TOO_SHORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PEM_R_PVK_TOO_SHORT@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	bl	_PEMerr
	mov	w0, #0
	b	LBB0_10
LBB0_5:
	add	x0, sp, #8
	bl	_read_ledword
Lloh5:
	adrp	x8, _MS_PVKMAGIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MS_PVKMAGIC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.6:
	ldr	x8, [sp, #8]
LBB0_7:
	add	x8, x8, #4
	str	x8, [sp, #8]
	add	x0, sp, #8
	bl	_read_ledword
	add	x0, sp, #8
	bl	_read_ledword
	mov	x22, x0
	add	x0, sp, #8
	bl	_read_ledword
	str	w0, [x20]
	add	x0, sp, #8
	bl	_read_ledword
	str	w0, [x21]
Lloh8:
	adrp	x8, _PVK_MAX_KEYLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PVK_MAX_KEYLEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hi	LBB0_9
; %bb.8:
	ldr	w8, [x20]
Lloh11:
	adrp	x9, _PVK_MAX_SALTLEN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PVK_MAX_SALTLEN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ls	LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
LBB0_11:
	cbz	w22, LBB0_15
; %bb.12:
	cbnz	w8, LBB0_15
; %bb.13:
Lloh14:
	adrp	x8, _PEM_F_DO_PVK_HEADER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PEM_F_DO_PVK_HEADER@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _PEM_R_INCONSISTENT_HEADER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PEM_R_INCONSISTENT_HEADER@GOTPAGEOFF]
	b	LBB0_4
LBB0_14:
Lloh19:
	adrp	x8, _PEM_F_DO_PVK_HEADER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PEM_F_DO_PVK_HEADER@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _PEM_R_BAD_MAGIC_NUMBER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PEM_R_BAD_MAGIC_NUMBER@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	mov	w0, #1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PEM_F_DO_PVK_HEADER,4,2        ; @PEM_F_DO_PVK_HEADER
	.comm	_PEM_R_PVK_TOO_SHORT,4,2        ; @PEM_R_PVK_TOO_SHORT
	.comm	_MS_PVKMAGIC,4,2                ; @MS_PVKMAGIC
	.comm	_PEM_R_BAD_MAGIC_NUMBER,4,2     ; @PEM_R_BAD_MAGIC_NUMBER
	.comm	_PVK_MAX_KEYLEN,4,2             ; @PVK_MAX_KEYLEN
	.comm	_PVK_MAX_SALTLEN,4,2            ; @PVK_MAX_SALTLEN
	.comm	_PEM_R_INCONSISTENT_HEADER,4,2  ; @PEM_R_INCONSISTENT_HEADER
	.no_dead_strip	_do_PVK_header
.subsections_via_symbols
