	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_rich_header_validate        ## -- Begin function pe_rich_header_validate
	.p2align	4, 0x90
_pe_rich_header_validate:               ## @pe_rich_header_validate
	.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	%rdi, %r14
	callq	_pe_rich_header
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	%rax, %r13
	subq	%rcx, %r13
	jbe	LBB0_8
## %bb.3:
	leaq	1(%rcx), %r15
	movl	%ecx, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %esi
	subl	%ecx, %esi
	movl	%esi, %ecx
	andl	$-4, %ecx
	cmpl	$60, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	-1(%r15), %edi
	callq	_rol32
	addq	%rax, %r13
	movq	(%r14), %rax
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, %r15
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rcx
	incq	%r15
	incl	%r12d
	jmp	LBB0_4
LBB0_8:
	movq	16(%r14), %r14
	cmpq	$0, (%r14)
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movzbl	(%rax,%rbx), %edi
	movl	(%rcx,%rbx,4), %esi
	callq	_rol32
	addq	%rax, %r13
	incq	%rbx
	cmpq	%rbx, (%r14)
	jg	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	cmpq	24(%r14), %r13
	sete	%al
	jmp	LBB0_12
LBB0_1:
	movl	$-1, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pe_rich_header_validate        ; -- Begin function pe_rich_header_validate
	.p2align	2
_pe_rich_header_validate:               ; @pe_rich_header_validate
	.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
	bl	_pe_rich_header
	cbz	x0, LBB0_11
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldp	x8, x21, [x19]
	subs	x20, x8, x21
	b.ls	LBB0_7
; %bb.2:
	add	x22, x21, #1
	mov	x9, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w1, w21, w9
	and	w9, w1, #0xfffffffc
	cmp	w9, #60
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldurb	w0, [x22, #-1]
	bl	_rol32
	add	x20, x0, x20
	ldr	x8, [x19]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x22, x8
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #8]
	add	x22, x22, #1
	add	w21, w21, #1
	b	LBB0_3
LBB0_7:
	ldr	x19, [x19, #16]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19, #8]
	ldrb	w0, [x8, x21]
	ldr	w1, [x9, x21, lsl #2]
	bl	_rol32
	add	x20, x0, x20
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x8, x21
	b.gt	LBB0_9
LBB0_10:
	ldr	x8, [x19, #24]
	cmp	x20, x8
	cset	w0, eq
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
