	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apei_estatus_check             ## -- Begin function apei_estatus_check
	.p2align	4, 0x90
_apei_estatus_check:                    ## @apei_estatus_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_apei_estatus_check_header
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$4, %eax
	jb	LBB0_5
## %bb.2:
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	movl	(%rbx), %ecx
	addq	$-4, %rdx
	cmpq	%rcx, %rdx
	jb	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%ecx, %eax
	addl	$-4, %eax
	addq	%rcx, %rbx
	addq	$4, %rbx
	cmpl	$3, %eax
	ja	LBB0_3
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apei_estatus_check             ; -- Begin function apei_estatus_check
	.p2align	2
_apei_estatus_check:                    ; @apei_estatus_check
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_apei_estatus_check_header
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #4
	b.lo	LBB0_5
; %bb.2:
	add	x9, x19, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w11, w8
	ldr	w10, [x9]
	sub	x11, x11, #4
	cmp	x11, x10
	b.lo	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w8, w10
	sub	w8, w8, #4
	add	x9, x9, x10
	add	x9, x9, #4
	cmp	w8, #3
	b.hi	LBB0_3
LBB0_5:
	cbz	w8, LBB0_7
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
