	.file	"extr_dw_mmc-k3.c_dw_mci_hi6220_parse_dt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hisilicon,peripheral-syscon"
.LC1:
	.string	"mshc"
	.text
	.p2align 4
	.type	dw_mci_hi6220_parse_dt, @function
dw_mci_hi6220_parse_dt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	esi, 16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	call	devm_kzalloc@PLT
	test	rax, rax
	je	.L13
	mov	rbx, rax
	mov	rax, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	mov	edi, DWORD PTR [rax]
	call	syscon_regmap_lookup_by_phandle@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L4
	mov	QWORD PTR 8[rbx], 0
.L4:
	mov	rax, QWORD PTR 8[rbp]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR [rax]
	call	of_alias_get_id@PLT
	test	rax, rax
	js	.L5
	cmp	QWORD PTR TIMING_MODE[rip], rax
	mov	QWORD PTR [rbx], rax
	jle	.L14
.L7:
	mov	QWORD PTR 0[rbp], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	eax, eax
	cmp	QWORD PTR TIMING_MODE[rip], rax
	mov	QWORD PTR [rbx], 0
	jg	.L7
.L14:
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	dw_mci_hi6220_parse_dt, .-dw_mci_hi6220_parse_dt
	.comm	TIMING_MODE,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dw_mmc-k3.c_dw_mci_hi6220_parse_dt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hisilicon,peripheral-syscon\000"
	.align	2
.LC1:
	.ascii	"mshc\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dw_mci_hi6220_parse_dt, %function
dw_mci_hi6220_parse_dt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, lr}
	mov	r1, #8
	mov	r5, r0
	ldr	r2, [r3]
	ldr	r0, [r0, #4]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L13
	ldr	r3, [r5, #4]
	ldr	r1, .L14+4
	ldr	r0, [r3]
	bl	syscon_regmap_lookup_by_phandle
	str	r0, [r4, #4]
	bl	IS_ERR
	cmp	r0, #0
	movne	r3, #0
	strne	r3, [r4, #4]
	ldr	r3, [r5, #4]
	ldr	r1, .L14+8
	ldr	r0, [r3]
	bl	of_alias_get_id
	subs	r3, r0, #0
	movlt	r2, #0
	movlt	r3, r2
	strlt	r2, [r4]
	ldr	r2, .L14+12
	strge	r3, [r4]
	ldr	r2, [r2]
	cmp	r2, r3
	ldrle	r3, .L14+16
	strgt	r4, [r5]
	ldrle	r0, [r3]
	rsble	r0, r0, #0
	movgt	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r3, .L14+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	GFP_KERNEL
	.word	.LC0
	.word	.LC1
	.word	TIMING_MODE
	.word	EINVAL
	.word	ENOMEM
	.size	dw_mci_hi6220_parse_dt, .-dw_mci_hi6220_parse_dt
	.comm	TIMING_MODE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
