	.file	"extr_pinctrl-ns2-mux.c_ns2_mux_log_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ns2_mux_log_init, @function
ns2_mux_log_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rbx, rdi
	mov	edx, 40
	mov	edi, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR NS2_NUM_IOMUX[rip]
	call	devm_kcalloc@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L2
	mov	esi, DWORD PTR NS2_NUM_IOMUX[rip]
	test	esi, esi
	je	.L4
	lea	ecx, -1[rsi]
	mov	rdx, rax
	lea	rcx, 5[rcx+rcx*4]
	lea	rcx, [rax+rcx*8]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	DWORD PTR [rdx], 0
	add	rdx, 40
	cmp	rdx, rcx
	jne	.L6
.L4:
	mov	edi, DWORD PTR NS2_NUM_PWM_MUX[rip]
	mov	r8, QWORD PTR NS2_PIN_MUX_BASE0[rip]
	mov	QWORD PTR 24[rax], 0
	mov	DWORD PTR 8[rax], 31
	sub	esi, edi
	mov	QWORD PTR 32[rax], r8
	mov	QWORD PTR 16[rax], 0
	cmp	esi, 1
	jbe	.L7
	lea	ecx, -2[rsi]
	mov	r10, QWORD PTR NS2_MUX_PAD_FUNC1_OFFSET[rip]
	lea	rdx, 48[rax]
	lea	rcx, [rcx+rcx*4]
	lea	r9, 88[rax+rcx*8]
	mov	ecx, 30
	.p2align 4,,10
	.p2align 3
.L8:
	mov	DWORD PTR [rdx], ecx
	add	rdx, 40
	sub	ecx, 2
	mov	QWORD PTR -16[rdx], r8
	mov	QWORD PTR -24[rdx], r10
	mov	QWORD PTR -32[rdx], 0
	cmp	rdx, r9
	jne	.L8
.L7:
	test	edi, edi
	je	.L9
	mov	r8, QWORD PTR NS2_PIN_MUX_BASE1[rip]
	xor	edx, edx
	.p2align 4,,10
	.p2align 3
.L10:
	lea	ecx, [rsi+rdx]
	lea	rcx, [rcx+rcx*4]
	lea	rcx, [rax+rcx*8]
	mov	DWORD PTR 8[rcx], edx
	add	edx, 1
	mov	QWORD PTR 32[rcx], r8
	mov	QWORD PTR 24[rcx], 0
	mov	QWORD PTR 16[rcx], 0
	cmp	edx, edi
	jne	.L10
.L9:
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	ns2_mux_log_init, .-ns2_mux_log_init
	.comm	NS2_PIN_MUX_BASE1,8,8
	.comm	NS2_PIN_MUX_BASE0,8,8
	.comm	NS2_NUM_PWM_MUX,4,4
	.comm	NS2_NUM_IOMUX,4,4
	.comm	NS2_MUX_PAD_FUNC1_OFFSET,8,8
	.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-ns2-mux.c_ns2_mux_log_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ns2_mux_log_init, %function
ns2_mux_log_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L19
	ldr	r5, .L19+4
	mov	r4, r0
	mov	r2, #20
	ldr	r0, [r0, #4]
	ldr	r3, [r3]
	ldr	r1, [r5]
	bl	devm_kcalloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L2
	ldr	ip, [r5]
	cmp	ip, #0
	addne	r2, ip, ip, lsl #2
	movne	r3, r0
	movne	r1, #0
	addne	r2, r0, r2, lsl #2
	beq	.L4
.L6:
	str	r1, [r3], #20
	cmp	r3, r2
	bne	.L6
.L4:
	mov	r1, #0
	mov	r3, #31
	ldr	lr, .L19+8
	ldr	r2, .L19+12
	ldr	lr, [lr]
	ldr	r6, [r2]
	sub	ip, ip, lr
	cmp	ip, #1
	str	r6, [r0, #16]
	str	r1, [r0, #12]
	str	r1, [r0, #8]
	str	r3, [r0, #4]
	bls	.L7
	mov	r3, r0
	mov	r2, #30
	ldr	r5, .L19+16
	add	r4, ip, ip, lsl #2
	ldr	r7, [r5]
	sub	r5, r0, #20
	add	r4, r5, r4, lsl #2
.L8:
	str	r2, [r3, #24]
	str	r6, [r3, #36]
	str	r7, [r3, #32]
	str	r1, [r3, #28]
	add	r3, r3, #20
	cmp	r3, r4
	sub	r2, r2, #2
	bne	.L8
.L7:
	cmp	lr, #0
	beq	.L9
	mov	r3, #0
	mov	r2, r3
	ldr	r1, .L19+20
	add	ip, ip, ip, lsl #2
	ldr	r1, [r1]
	add	r0, r0, ip, lsl #2
.L10:
	str	r3, [r0, #4]
	add	r3, r3, #1
	cmp	r3, lr
	str	r1, [r0, #16]
	str	r2, [r0, #12]
	str	r2, [r0, #8]
	add	r0, r0, #20
	bne	.L10
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L19+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	NS2_NUM_IOMUX
	.word	NS2_NUM_PWM_MUX
	.word	NS2_PIN_MUX_BASE0
	.word	NS2_MUX_PAD_FUNC1_OFFSET
	.word	NS2_PIN_MUX_BASE1
	.word	ENOMEM
	.size	ns2_mux_log_init, .-ns2_mux_log_init
	.comm	NS2_PIN_MUX_BASE1,4,4
	.comm	NS2_PIN_MUX_BASE0,4,4
	.comm	NS2_NUM_PWM_MUX,4,4
	.comm	NS2_NUM_IOMUX,4,4
	.comm	NS2_MUX_PAD_FUNC1_OFFSET,4,4
	.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
