	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detect_memory_e801
_detect_memory_e801:                    ## @detect_memory_e801
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_initregs
	movl	$59393, -56(%rbp)               ## imm = 0xE801
	leaq	-32(%rbp), %rdx
	movl	$21, %edi
	movq	%rbx, %rsi
	callq	_intcall
	movq	_X86_EFLAGS_CF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %eax
	testl	%ecx, -28(%rbp)
	jne	LBB0_5
## %bb.1:
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %ecx
	movl	%edx, %esi
	orl	%ecx, %esi
	jne	LBB0_3
## %bb.2:
	movl	-32(%rbp), %edx
LBB0_3:
	cmpl	$15360, %edx                    ## imm = 0x3C00
	jg	LBB0_5
## %bb.4:
	shll	$6, %ecx
	addl	$15360, %ecx                    ## imm = 0x3C00
	cmpl	$15360, %edx                    ## imm = 0x3C00
	cmovnel	%edx, %ecx
	movq	_boot_params@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X86_EFLAGS_CF,4,2              ## @X86_EFLAGS_CF
	.comm	_boot_params,4,2                ## @boot_params
	.no_dead_strip	_detect_memory_e801
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_memory_e801
_detect_memory_e801:                    ; @detect_memory_e801
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	add	x0, sp, #24
	bl	_initregs
	mov	w8, #59393
	str	w8, [sp, #24]
	add	x1, sp, #24
	mov	x2, sp
	mov	w0, #21
	bl	_intcall
	ldr	w8, [sp, #4]
Lloh0:
	adrp	x9, _X86_EFLAGS_CF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _X86_EFLAGS_CF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	w9, w8, [sp, #8]
	ldr	w10, [sp]
	orr	w11, w9, w8
	cmp	w11, #0
	csel	w9, w9, w10, ne
	mov	w10, #15360
	cmp	w9, w10
	b.le	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
	add	w8, w10, w8, lsl #6
	csel	w8, w8, w9, eq
Lloh3:
	adrp	x9, _boot_params@GOTPAGE
Lloh4:
	ldr	x9, [x9, _boot_params@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_X86_EFLAGS_CF,4,2              ; @X86_EFLAGS_CF
	.comm	_boot_params,4,2                ; @boot_params
	.no_dead_strip	_detect_memory_e801
.subsections_via_symbols
