	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hest_esrc_len
_hest_esrc_len:                         ## @hest_esrc_len
	.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), %rax
	movq	_ACPI_HEST_TYPE_RESERVED@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jae	LBB0_6
## %bb.1:
	movq	_ACPI_HEST_TYPE_IA32_CORRECTED_CHECK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_ACPI_HEST_TYPE_IA32_CHECK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_4:
	leal	4(,%rax,4), %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_hest_esrc_len_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %ebx
LBB0_5:
	xorl	%edi, %edi
	cmpl	$-1, %ebx
	sete	%dil
	callq	_BUG_ON
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_HEST_TYPE_RESERVED,8,3    ## @ACPI_HEST_TYPE_RESERVED
	.comm	_hest_esrc_len_tab,8,3          ## @hest_esrc_len_tab
	.comm	_ACPI_HEST_TYPE_IA32_CORRECTED_CHECK,8,3 ## @ACPI_HEST_TYPE_IA32_CORRECTED_CHECK
	.comm	_ACPI_HEST_TYPE_IA32_CHECK,8,3  ## @ACPI_HEST_TYPE_IA32_CHECK
	.no_dead_strip	_hest_esrc_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hest_esrc_len
_hest_esrc_len:                         ; @hest_esrc_len
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ACPI_HEST_TYPE_RESERVED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_HEST_TYPE_RESERVED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _ACPI_HEST_TYPE_IA32_CORRECTED_CHECK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_HEST_TYPE_IA32_CORRECTED_CHECK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	lsl	w8, w8, #2
	add	w19, w8, #4
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x9, _hest_esrc_len_tab@GOTPAGE
Lloh7:
	ldr	x9, [x9, _hest_esrc_len_tab@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x9, x8, lsl #2]
Lloh9:
	adrp	x10, _ACPI_HEST_TYPE_IA32_CHECK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ACPI_HEST_TYPE_IA32_CHECK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	lsl	w8, w8, #2
	add	w8, w8, #4
	csel	w19, w9, w8, ne
LBB0_5:
	cmn	w19, #1
	cset	w0, eq
	bl	_BUG_ON
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_HEST_TYPE_RESERVED,8,3    ; @ACPI_HEST_TYPE_RESERVED
	.comm	_hest_esrc_len_tab,8,3          ; @hest_esrc_len_tab
	.comm	_ACPI_HEST_TYPE_IA32_CORRECTED_CHECK,8,3 ; @ACPI_HEST_TYPE_IA32_CORRECTED_CHECK
	.comm	_ACPI_HEST_TYPE_IA32_CHECK,8,3  ; @ACPI_HEST_TYPE_IA32_CHECK
	.no_dead_strip	_hest_esrc_len
.subsections_via_symbols
