	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_pes
_check_pes:                             ## @check_pes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	12(%rdi), %rcx
	movl	12(%rdi), %edx
	movl	%edx, %r9d
	andl	$192, %r9d
	cmpl	$128, %r9d
	jne	LBB0_4
## %bb.1:
	movl	$192, %r8d
	andl	16(%rdi), %r8d
	je	LBB0_5
## %bb.2:
	cmpb	$64, %r8b
	jne	LBB0_6
LBB0_4:
	xorl	%r8d, %r8d
	cmpq	%rsi, %rcx
	jb	LBB0_7
	jmp	LBB0_13
LBB0_5:
	movb	$1, %r8b
	cmpq	%rsi, %rcx
	jb	LBB0_7
	jmp	LBB0_13
LBB0_6:
	shrl	$2, %r8d
	movl	$240, %eax
	andl	24(%rdi), %eax
	cmpl	%eax, %r8d
	sete	%r8b
	cmpq	%rsi, %rcx
	jae	LBB0_13
LBB0_7:
	cmpl	$255, %edx
	jne	LBB0_12
## %bb.8:
	addq	$16, %rdi
	movq	%rdi, %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movl	(%rcx), %edx
	addq	$4, %rcx
	cmpq	%rsi, %rax
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$255, %edx
	je	LBB0_9
LBB0_11:
	addq	$-4, %rcx
LBB0_12:
	andl	$192, %edx
	movl	%edx, %r9d
LBB0_13:
	xorl	%esi, %esi
	cmpl	$64, %r9d
	sete	%sil
	movl	(%rcx,%rsi,8), %eax
	addq	%rsi, %rsi
	movl	%eax, %edx
	andb	$-16, %dl
	cmpb	$48, %dl
	je	LBB0_16
## %bb.14:
	cmpb	$32, %dl
	jne	LBB0_17
## %bb.15:
	andl	8(%rcx,%rsi,4), %eax
	andl	16(%rcx,%rsi,4), %eax
	andl	$1, %eax
	jmp	LBB0_18
LBB0_16:
	andl	8(%rcx,%rsi,4), %eax
	andl	16(%rcx,%rsi,4), %eax
	andl	20(%rcx,%rsi,4), %eax
	andl	28(%rcx,%rsi,4), %eax
	andl	36(%rcx,%rsi,4), %eax
	andl	$1, %eax
	jmp	LBB0_18
LBB0_17:
	xorl	%ecx, %ecx
	cmpl	$15, %eax
	sete	%cl
	movl	%ecx, %eax
LBB0_18:
	testl	%eax, %eax
	setne	%al
	orb	%r8b, %al
	movzbl	%al, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check_pes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_pes
_check_pes:                             ; @check_pes
	.cfi_startproc
; %bb.0:
	mov	x9, x0
	ldr	w10, [x9, #12]!
	and	w11, w10, #0xc0
	cmp	w11, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x0, #16]
	ands	w8, w8, #0xc0
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #64
	b.ne	LBB0_5
LBB0_3:
	mov	w8, #0
	cmp	x9, x1
	b.lo	LBB0_6
	b	LBB0_12
LBB0_4:
	mov	w8, #1
	cmp	x9, x1
	b.lo	LBB0_6
	b	LBB0_12
LBB0_5:
	ldr	w12, [x0, #24]
	and	w12, w12, #0xf0
	cmp	w12, w8, lsr #2
	cset	w8, eq
	cmp	x9, x1
	b.hs	LBB0_12
LBB0_6:
	cmp	w10, #255
	b.ne	LBB0_11
; %bb.7:
	add	x9, x0, #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x1
	ldr	w10, [x9], #4
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w10, #255
	b.eq	LBB0_8
LBB0_10:
	sub	x9, x9, #4
LBB0_11:
	and	w11, w10, #0xc0
LBB0_12:
	cmp	w11, #64
	cset	w10, eq
	add	x10, x9, w10, uxtw #3
	ldr	w9, [x10]
	and	w11, w9, #0xf0
	cmp	w11, #48
	b.eq	LBB0_15
; %bb.13:
	cmp	w11, #32
	b.ne	LBB0_17
; %bb.14:
	ldr	w11, [x10, #8]
	ldr	w10, [x10, #16]
	and	w9, w9, w11
	b	LBB0_16
LBB0_15:
	ldr	w11, [x10, #8]
	ldp	w12, w13, [x10, #16]
	ldr	w14, [x10, #28]
	ldr	w10, [x10, #36]
	and	w9, w9, w11
	and	w9, w9, w12
	and	w9, w9, w13
	and	w9, w9, w14
LBB0_16:
	and	w9, w9, w10
	and	w9, w9, #0x1
	b	LBB0_18
LBB0_17:
	cmp	w9, #15
	cset	w9, eq
LBB0_18:
	cmp	w9, #0
	cset	w9, ne
	orr	w0, w9, w8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check_pes
.subsections_via_symbols
