	.file	"extr_pinctrl-paris.c_mtk_pctrl_build_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mtk_pctrl_build_state, @function
mtk_pctrl_build_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	platform_get_drvdata@PLT
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	edx, 8
	mov	rdi, rbp
	mov	rbx, rax
	mov	rax, QWORD PTR 16[rax]
	mov	esi, DWORD PTR 16[rax]
	call	devm_kmalloc_array@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L4
	mov	rax, QWORD PTR 16[rbx]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	edx, 4
	mov	rdi, rbp
	mov	esi, DWORD PTR 16[rax]
	call	devm_kmalloc_array@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L4
	mov	r9, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR [r9]
	test	edx, edx
	jle	.L6
	mov	rdi, QWORD PTR 8[r9]
	mov	rsi, QWORD PTR 8[rbx]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR [rdi+rdx*8]
	mov	DWORD PTR 4[rsi+rdx*8], ecx
	mov	r8d, DWORD PTR 4[rdi+rdx*8]
	mov	DWORD PTR [rsi+rdx*8], r8d
	mov	DWORD PTR [rax+rdx*4], ecx
	add	rdx, 1
	cmp	DWORD PTR [r9], edx
	jg	.L7
.L6:
	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
.L4:
	.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	mtk_pctrl_build_state, .-mtk_pctrl_build_state
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_pinctrl-paris.c_mtk_pctrl_build_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mtk_pctrl_build_state, %function
mtk_pctrl_build_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	platform_get_drvdata
	ldr	r6, .L11
	ldr	r3, [r0, #8]
	mov	r4, r0
	ldr	r1, [r3, #8]
	mov	r0, r5
	mov	r2, #8
	ldr	r3, [r6]
	bl	devm_kmalloc_array
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L4
	ldr	r2, [r4, #8]
	mov	r0, r5
	ldr	r1, [r2, #8]
	ldr	r3, [r6]
	mov	r2, #4
	bl	devm_kmalloc_array
	cmp	r0, #0
	str	r0, [r4]
	beq	.L4
	ldr	ip, [r4, #8]
	ldr	r3, [ip]
	cmp	r3, #0
	ble	.L6
	mov	r3, #0
	ldr	r4, [r4, #4]
	ldr	lr, [ip, #4]
	sub	r0, r0, #4
	add	r6, r4, #4
	add	r5, lr, #4
.L7:
	ldr	r2, [lr, r3, lsl #3]
	str	r2, [r6, r3, lsl #3]
	ldr	r1, [r5, r3, lsl #3]
	str	r1, [r4, r3, lsl #3]
	str	r2, [r0, #4]!
	ldr	r2, [ip]
	add	r3, r3, #1
	cmp	r2, r3
	bgt	.L7
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L11+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	mtk_pctrl_build_state, .-mtk_pctrl_build_state
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
