	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ti_emif_get_mem_type           ## -- Begin function ti_emif_get_mem_type
	.p2align	4, 0x90
_ti_emif_get_mem_type:                  ## @ti_emif_get_mem_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_emif_instance@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_EMIF_SDRAM_CONFIG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_readl
	movq	_SDRAM_TYPE_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_SDRAM_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_emif_instance,8,3              ## @emif_instance
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EMIF_SDRAM_CONFIG,8,3          ## @EMIF_SDRAM_CONFIG
	.comm	_SDRAM_TYPE_MASK,8,3            ## @SDRAM_TYPE_MASK
	.comm	_SDRAM_TYPE_SHIFT,8,3           ## @SDRAM_TYPE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ti_emif_get_mem_type           ; -- Begin function ti_emif_get_mem_type
	.p2align	2
_ti_emif_get_mem_type:                  ; @ti_emif_get_mem_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _emif_instance@GOTPAGE
Lloh1:
	ldr	x8, [x8, _emif_instance@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EMIF_SDRAM_CONFIG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EMIF_SDRAM_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh6:
	adrp	x8, _SDRAM_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDRAM_TYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	and	x8, x8, x0
Lloh9:
	adrp	x9, _SDRAM_TYPE_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SDRAM_TYPE_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	lsr	x0, x8, x9
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_emif_instance,8,3              ; @emif_instance
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EMIF_SDRAM_CONFIG,8,3          ; @EMIF_SDRAM_CONFIG
	.comm	_SDRAM_TYPE_MASK,8,3            ; @SDRAM_TYPE_MASK
	.comm	_SDRAM_TYPE_SHIFT,8,3           ; @SDRAM_TYPE_SHIFT
.subsections_via_symbols
