	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_apei_estatus_check_header      ## -- Begin function apei_estatus_check_header
	.p2align	4, 0x90
_apei_estatus_check_header:             ## @apei_estatus_check_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movslq	(%rdi), %rcx
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.2:
	movslq	4(%rdi), %rdx
	addq	$16, %rcx
	cmpq	%rdx, %rcx
	jbe	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	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_header      ; -- Begin function apei_estatus_check_header
	.p2align	2
_apei_estatus_check_header:             ; @apei_estatus_check_header
	.cfi_startproc
; %bb.0:
	ldrsw	x8, [x0]
	sub	w9, w8, #1
	cmp	w9, #2
	b.ls	LBB0_3
; %bb.1:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_4
; %bb.2:
	ldrsw	x9, [x0, #4]
	add	x8, x8, #16
	cmp	x8, x9
	b.ls	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
