	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mci_hi6220_parse_dt
_dw_mci_hi6220_parse_dt:                ## @dw_mci_hi6220_parse_dt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	$0, 8(%rbx)
LBB0_3:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_alias_get_id
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmovleq	%rax, %rcx
	movq	%rcx, (%rbx)
	movq	_TIMING_MODE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_6
## %bb.4:
	movq	%rbx, (%r14)
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_7:
	subl	(%rcx), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hisilicon,peripheral-syscon"

L_.str.1:                               ## @.str.1
	.asciz	"mshc"

	.comm	_TIMING_MODE,8,3                ## @TIMING_MODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dw_mci_hi6220_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mci_hi6220_parse_dt
_dw_mci_hi6220_parse_dt:                ; @dw_mci_hi6220_parse_dt
	.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
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	str	xzr, [x20, #8]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_alias_get_id
	cmp	x0, #0
	csel	x8, x0, xzr, gt
	str	x8, [x20]
Lloh7:
	adrp	x9, _TIMING_MODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TIMING_MODE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.4:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hisilicon,peripheral-syscon"

l_.str.1:                               ; @.str.1
	.asciz	"mshc"

	.comm	_TIMING_MODE,8,3                ; @TIMING_MODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dw_mci_hi6220_parse_dt
.subsections_via_symbols
