	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_armor_decode               ## -- Begin function pgp_armor_decode
	.p2align	4, 0x90
_pgp_armor_decode:                      ## @pgp_armor_decode
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)
	movslq	%esi, %rbx
	addq	%rdi, %rbx
	movq	_PXE_PGP_CORRUPT_ARMOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_find_header
	testl	%eax, %eax
	jle	LBB0_19
## %bb.1:
	movl	%eax, %edi
	addq	-48(%rbp), %rdi
	movq	%rdi, -48(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_find_header
	testl	%eax, %eax
	jle	LBB0_19
## %bb.2:
	movq	-48(%rbp), %r13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdx
	cmpq	%rdx, %r13
	jae	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r13), %eax
	cmpb	$10, %al
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$13, %al
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%r13d, %edx
	movq	%r13, %rdi
	movl	$10, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	incq	%r13
	movq	%r13, -48(%rbp)
	jmp	LBB0_3
LBB0_8:
	movq	%rdx, -48(%rbp)
	cmpq	%r13, %rdx
	jb	LBB0_19
## %bb.9:
	movl	%r13d, %ebx
	notl	%ebx
	addl	%edx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$61, (%rdx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	decq	%rdx
	movq	%rdx, -48(%rbp)
	decl	%ebx
	cmpq	%r13, %rdx
	jae	LBB0_10
	jmp	LBB0_19
LBB0_12:
	incq	%rdx
	leaq	-52(%rbp), %rax
	movq	%rdx, %rdi
	movl	$4, %esi
	movq	%rax, %rdx
	callq	_pg_base64_decode
	cmpl	$3, %eax
	jne	LBB0_19
## %bb.13:
	movsbq	-52(%rbp), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movsbq	-51(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movsbq	-50(%rbp), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_pg_base64_dec_len
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_enlargeStringInfo
	movq	8(%r14), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_pg_base64_decode
	movl	%eax, %r15d
	cmpl	%r12d, %eax
	jle	LBB0_15
## %bb.14:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_15:
	testl	%r15d, %r15d
	movq	_PXE_PGP_CORRUPT_ARMOR@GOTPCREL(%rip), %r12
	js	LBB0_19
## %bb.16:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	shlq	$16, %rax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	shlq	$8, %rbx
	addq	%rax, %rbx
	addq	-72(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	8(%r14), %rdi
	movl	%r15d, %esi
	callq	_crc24
	cmpq	%rbx, %rax
	jne	LBB0_18
## %bb.17:
	addl	%r15d, (%r14)
	jmp	LBB0_19
LBB0_18:
	movl	(%r12), %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PXE_PGP_CORRUPT_ARMOR,4,2      ## @PXE_PGP_CORRUPT_ARMOR
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"overflow - decode estimate too small"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgp_armor_decode               ; -- Begin function pgp_armor_decode
	.p2align	2
_pgp_armor_decode:                      ; @pgp_armor_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	str	x0, [sp, #24]
	add	x22, x0, w1, sxtw
Lloh0:
	adrp	x24, _PXE_PGP_CORRUPT_ARMOR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PXE_PGP_CORRUPT_ARMOR@GOTPAGEOFF]
	ldr	w20, [x24]
	add	x2, sp, #24
	mov	x1, x22
	mov	w3, #0
	bl	_find_header
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.1:
	ldr	x8, [sp, #24]
	add	x0, x8, w0, uxtw
	str	x0, [sp, #24]
	add	x2, sp, #16
	mov	x1, x22
	mov	w3, #1
	bl	_find_header
	cmp	w0, #1
	b.lt	LBB0_18
; %bb.2:
	ldr	x22, [sp, #24]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	cmp	x22, x8
	b.hs	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w9, [x22]
	cmp	w9, #10
	ccmp	w9, #13, #4, ne
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w2, w8, w22
	mov	x0, x22
	mov	w1, #10
	bl	_memchr
	cbz	x0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x0, #1
	str	x22, [sp, #24]
	b	LBB0_3
LBB0_7:
	str	x8, [sp, #24]
	cmp	x8, x22
	b.lo	LBB0_18
; %bb.8:
	mvn	w9, w22
	add	w23, w9, w8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x8]
	cmp	w9, #61
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x8, x8, #1
	str	x8, [sp, #24]
	sub	w23, w23, #1
	cmp	x8, x22
	b.hs	LBB0_9
	b	LBB0_18
LBB0_11:
	add	x0, x8, #1
	add	x2, sp, #12
	mov	w1, #4
	bl	_pg_base64_decode
	cmp	w0, #3
	b.ne	LBB0_18
; %bb.12:
	ldrsb	x25, [sp, #12]
	ldrsb	x27, [sp, #13]
	ldrsb	x26, [sp, #14]
	mov	x0, x21
	bl	_pg_base64_dec_len
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_enlargeStringInfo
	ldr	x2, [x19, #8]
	mov	x0, x22
	mov	x1, x23
	bl	_pg_base64_decode
	mov	x20, x0
	cmp	w0, w21
	b.le	LBB0_14
; %bb.13:
Lloh2:
	adrp	x8, _FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_14:
	tbnz	w20, #31, LBB0_18
; %bb.15:
	lsl	x8, x27, #8
	add	x8, x8, x25, lsl #16
	add	x21, x8, x26
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_crc24
	cmp	x0, x21
	b.ne	LBB0_17
; %bb.16:
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	b	LBB0_18
LBB0_17:
	ldr	w20, [x24]
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PXE_PGP_CORRUPT_ARMOR,4,2      ; @PXE_PGP_CORRUPT_ARMOR
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"overflow - decode estimate too small"

.subsections_via_symbols
