	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_header
_find_header:                           ## @find_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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	testl	%ecx, %ecx
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %r13
	cmoveq	%rax, %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_find_str
	testq	%rax, %rax
	je	LBB0_19
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rbx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, -1(%rbx)
	je	LBB0_4
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	cltq
	addq	%rax, %rbx
	movq	%r13, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_find_str
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_19
LBB0_4:
	movq	%rbx, %r12
LBB0_5:
	movq	%r12, (%r14)
	movq	%r13, %rdi
	callq	_strlen
	movslq	%eax, %rbx
	addq	%r12, %rbx
	cmpq	%r15, %rbx
	jae	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$45, %al
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$31, %al
	jle	LBB0_19
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%r15, %rbx
	jb	LBB0_6
## %bb.9:
	movq	%r15, %rbx
LBB0_10:
	movq	%r15, %rax
	subq	%rbx, %rax
	cmpq	$5, %rax
	jl	LBB0_19
## %bb.11:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_12
LBB0_19:
	movq	_PXE_PGP_CORRUPT_ARMOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	5(%rbx), %rax
	cmpq	%r15, %rax
	jae	LBB0_17
## %bb.13:
	movb	(%rax), %cl
	cmpb	$10, %cl
	je	LBB0_15
## %bb.14:
	cmpb	$13, %cl
	jne	LBB0_19
LBB0_15:
	addq	$6, %rbx
	cmpb	$13, %cl
	cmoveq	%rbx, %rax
	cmpq	%r15, %rax
	jae	LBB0_17
## %bb.16:
	xorl	%ecx, %ecx
	cmpb	$10, (%rax)
	sete	%cl
	addq	%rcx, %rax
LBB0_17:
	subl	(%r14), %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-----BEGIN"

L_.str.1:                               ## @.str.1
	.asciz	"-----END"

	.comm	_PXE_PGP_CORRUPT_ARMOR,4,2      ## @PXE_PGP_CORRUPT_ARMOR
	.no_dead_strip	_find_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_header
_find_header:                           ; @find_header
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w3, #0
	csel	x21, x9, x8, eq
	mov	x0, x21
	bl	_strlen
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_find_str
	cbz	x0, LBB0_13
; %bb.1:
	mov	x23, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x23, x22
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldurb	w8, [x23, #-1]
	cmp	w8, #10
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_strlen
	add	x23, x23, w0, sxtw
	mov	x0, x21
	bl	_strlen
	mov	x3, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x21
	bl	_find_str
	mov	x23, x0
	cbnz	x0, LBB0_2
	b	LBB0_13
LBB0_5:
	mov	x22, x23
LBB0_6:
	str	x22, [x19]
	mov	x0, x21
	bl	_strlen
	add	x22, x22, w0, sxtw
	cmp	x22, x20
	b.hs	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w8, [x22]
	cmp	w8, #45
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #31
	b.le	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #1
	cmp	x22, x20
	b.lo	LBB0_7
; %bb.10:
	mov	x22, x20
LBB0_11:
	sub	x8, x20, x22
	cmp	x8, #5
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x21
	mov	w2, #5
	bl	_memcmp
	cbz	x0, LBB0_15
LBB0_13:
Lloh4:
	adrp	x8, _PXE_PGP_CORRUPT_ARMOR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PXE_PGP_CORRUPT_ARMOR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
LBB0_14:
	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_15:
	add	x8, x22, #5
	cmp	x8, x20
	b.hs	LBB0_20
; %bb.16:
	ldrb	w9, [x8]
	cmp	w9, #10
	b.eq	LBB0_18
; %bb.17:
	cmp	w9, #13
	b.ne	LBB0_13
LBB0_18:
	add	x10, x22, #6
	cmp	w9, #13
	csel	x8, x10, x8, eq
	cmp	x8, x20
	b.hs	LBB0_20
; %bb.19:
	mov	x9, x8
	ldrb	w10, [x9], #1
	cmp	w10, #10
	csel	x8, x8, x9, ne
LBB0_20:
	ldr	w9, [x19]
	sub	w0, w8, w9
	b	LBB0_14
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-----BEGIN"

l_.str.1:                               ; @.str.1
	.asciz	"-----END"

	.comm	_PXE_PGP_CORRUPT_ARMOR,4,2      ; @PXE_PGP_CORRUPT_ARMOR
	.no_dead_strip	_find_header
.subsections_via_symbols
