	.file	"extr_pinctrl-sprd.c_sprd_pinctrl_add_pins.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"pin name[%s-%d], type = %d, bit offset = %ld, bit width = %ld, reg = 0x%lx\n"
	.text
	.p2align 4
	.type	sprd_pinctrl_add_pins, @function
sprd_pinctrl_add_pins:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	esi, edx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR 16[rdi]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR [rdi]
	mov	DWORD PTR 0[r13], edx
	mov	edx, 32
	call	devm_kcalloc@PLT
	mov	QWORD PTR 8[r13], rax
	test	rax, rax
	je	.L2
	mov	ecx, DWORD PTR 0[r13]
	test	ecx, ecx
	jle	.L10
	mov	rbx, rax
	mov	rax, QWORD PTR PINCTRL_REG_MISC_OFFSET[rip]
	mov	rsi, rbp
	xor	edx, edx
	mov	r8, QWORD PTR GLOBAL_CTRL_PIN[rip]
	mov	r14, QWORD PTR COMMON_PIN[rip]
	xor	ebp, ebp
	xor	edi, edi
	mov	QWORD PTR 8[rsp], rax
	mov	rax, QWORD PTR PINCTRL_REG_OFFSET[rip]
	mov	r15, QWORD PTR MISC_PIN[rip]
	mov	r11d, DWORD PTR PINCTRL_REG_LEN[rip]
	mov	QWORD PTR [rsp], rax
	mov	rax, rbx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	r9, r14
	je	.L15
	cmp	r9, r15
	jne	.L6
	lea	r9d, 0[rbp+rdi]
	mov	r10d, edx
	sub	r10d, r9d
	mov	r9d, r10d
	mov	r10, QWORD PTR 8[rsp]
	add	r10, QWORD PTR 8[r12]
	imul	r9d, r11d
	add	r9, r10
	mov	QWORD PTR 8[rax], r9
.L6:
	add	edx, 1
	add	rax, 32
	add	rsi, 32
	cmp	edx, ecx
	je	.L16
.L8:
	mov	r9d, DWORD PTR 24[rsi]
	mov	DWORD PTR 28[rax], r9d
	mov	r9, QWORD PTR [rsi]
	mov	r10d, DWORD PTR 20[rsi]
	mov	QWORD PTR [rax], r9
	mov	DWORD PTR 24[rax], r10d
	cmp	r9, r8
	jne	.L5
	mov	r9d, r11d
	imul	r9d, DWORD PTR 8[rsi]
	add	r9, QWORD PTR 8[r12]
	add	edx, 1
	mov	QWORD PTR 8[rax], r9
	mov	r9d, DWORD PTR 16[rsi]
	add	edi, 1
	add	rax, 32
	add	rsi, 32
	mov	DWORD PTR -12[rax], r9d
	mov	r9d, DWORD PTR -20[rsi]
	mov	DWORD PTR -16[rax], r9d
	cmp	edx, ecx
	jne	.L8
.L16:
	xor	ebp, ebp
	lea	r14, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR 28[rbx]
	mov	rsi, r14
	add	rbx, 32
	mov	r9d, DWORD PTR -12[rbx]
	mov	ecx, DWORD PTR -8[rbx]
	push	QWORD PTR -24[rbx]
	.cfi_def_cfa_offset 88
	add	ebp, 1
	mov	r8, QWORD PTR -32[rbx]
	push	rax
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR [r12]
	call	dev_dbg@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	cmp	DWORD PTR 0[r13], ebp
	jg	.L9
.L10:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	r10d, edx
	mov	r9, QWORD PTR [rsp]
	add	r9, QWORD PTR 8[r12]
	add	ebp, 1
	sub	r10d, edi
	imul	r10d, r11d
	add	r9, r10
	mov	QWORD PTR 8[rax], r9
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sprd_pinctrl_add_pins, .-sprd_pinctrl_add_pins
	.comm	PINCTRL_REG_OFFSET,8,8
	.comm	PINCTRL_REG_MISC_OFFSET,8,8
	.comm	PINCTRL_REG_LEN,4,4
	.comm	MISC_PIN,8,8
	.comm	GLOBAL_CTRL_PIN,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	COMMON_PIN,8,8
	.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-sprd.c_sprd_pinctrl_add_pins.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pin name[%s-%d], type = %d, bit offset = %ld, bit w"
	.ascii	"idth = %ld, reg = 0x%lx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sprd_pinctrl_add_pins, %function
sprd_pinctrl_add_pins:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L17
	ldr	r6, [r0, #8]
	mov	r5, r0
	str	r2, [r6]
	mov	r7, r1
	ldr	r0, [r0]
	mov	r1, r2
	ldr	r3, [r3]
	mov	r2, #24
	sub	sp, sp, #36
	bl	devm_kcalloc
	cmp	r0, #0
	str	r0, [r6, #4]
	beq	.L2
	ldr	ip, [r6]
	cmp	ip, #0
	ble	.L10
	mov	r2, #0
	ldr	r10, .L17+4
	ldr	r8, .L17+8
	ldr	r10, [r10]
	mov	r1, r7
	ldr	lr, .L17+12
	ldr	r7, .L17+16
	ldr	fp, .L17+20
	ldr	r9, .L17+24
	ldr	r8, [r8]
	add	r4, r0, #24
	mov	r3, r4
	str	r10, [sp, #20]
	str	r4, [sp, #24]
	mov	r0, r2
	mov	r4, r2
	ldr	lr, [lr]
	ldr	r7, [r7]
	ldr	fp, [fp]
	ldr	r10, [r9]
	str	r8, [sp, #16]
	str	r6, [sp, #28]
	b	.L8
.L5:
	cmp	r8, r7
	beq	.L15
	cmp	r8, fp
	bne	.L6
	ldr	r9, [r5, #4]
	ldr	r6, [sp, #20]
	add	r8, r4, r0
	add	r9, r6, r9
	sub	r8, r2, r8
	mla	r8, r10, r8, r9
	str	r8, [r3, #-20]
.L6:
	add	r2, r2, #1
	cmp	r2, ip
	add	r3, r3, #24
	add	r1, r1, #24
	beq	.L16
.L8:
	ldr	r9, [r1, #20]
	ldr	r8, [r1]
	str	r9, [r3, #-4]
	ldr	r9, [r1, #16]
	cmp	r8, lr
	str	r9, [r3, #-8]
	str	r8, [r3, #-24]
	bne	.L5
	ldr	r9, [r5, #4]
	ldr	r8, [r1, #4]
	add	r0, r0, #1
	mla	r8, r10, r8, r9
	ldr	r9, [r1, #12]
	str	r9, [r3, #-12]
	ldr	r9, [r1, #8]
	str	r8, [r3, #-20]
	str	r9, [r3, #-16]
	b	.L6
.L15:
	ldr	r9, [r5, #4]
	ldr	r6, [sp, #16]
	sub	r8, r2, r0
	add	r9, r6, r9
	mla	r8, r10, r8, r9
	add	r4, r4, #1
	str	r8, [r3, #-20]
	b	.L6
.L16:
	mov	r7, #0
	ldr	r4, [sp, #24]
	ldr	r6, [sp, #28]
	ldr	r8, .L17+28
.L9:
	ldr	r1, [r4, #-20]
	ldr	r3, [r4, #-8]
	ldr	r2, [r4, #-4]
	str	r1, [sp, #12]
	ldr	r1, [r4, #-16]
	add	r7, r7, #1
	str	r1, [sp, #8]
	ldr	r1, [r4, #-12]
	add	r4, r4, #24
	str	r1, [sp, #4]
	ldr	r0, [r4, #-48]
	mov	r1, r8
	str	r0, [sp]
	ldr	r0, [r5]
	bl	dev_dbg
	ldr	r3, [r6]
	cmp	r3, r7
	bgt	.L9
.L10:
	mov	r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L17+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	GFP_KERNEL
	.word	PINCTRL_REG_MISC_OFFSET
	.word	PINCTRL_REG_OFFSET
	.word	GLOBAL_CTRL_PIN
	.word	COMMON_PIN
	.word	MISC_PIN
	.word	PINCTRL_REG_LEN
	.word	.LC0
	.word	ENOMEM
	.size	sprd_pinctrl_add_pins, .-sprd_pinctrl_add_pins
	.comm	PINCTRL_REG_OFFSET,4,4
	.comm	PINCTRL_REG_MISC_OFFSET,4,4
	.comm	PINCTRL_REG_LEN,4,4
	.comm	MISC_PIN,4,4
	.comm	GLOBAL_CTRL_PIN,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	COMMON_PIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
