	.file	"extr_pinctrl-rockchip.c_px30_calc_drv_reg_and_bit.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	px30_calc_drv_reg_and_bit, @function
px30_calc_drv_reg_and_bit:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r9d, DWORD PTR [rdi]
	mov	rax, QWORD PTR 8[rdi]
	test	r9d, r9d
	jne	.L2
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR PX30_DRV_PMU_OFFSET[rip]
	mov	QWORD PTR [rdx], rax
	mov	DWORD PTR [rcx], edi
.L3:
	mov	eax, esi
	cdq
	idiv	DWORD PTR PX30_DRV_PINS_PER_REG[rip]
	lea	eax, [rdi+rax*4]
	mov	DWORD PTR [rcx], eax
	mov	eax, esi
	cdq
	idiv	DWORD PTR PX30_DRV_PINS_PER_REG[rip]
	mov	DWORD PTR [r8], edx
	mov	esi, edx
	imul	esi, DWORD PTR PX30_DRV_BITS_PER_PIN[rip]
	mov	DWORD PTR [r8], esi
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR PX30_DRV_GRF_OFFSET[rip]
	sub	eax, 16
	mov	DWORD PTR [rcx], eax
	mov	edi, DWORD PTR [rdi]
	imul	edi, DWORD PTR PX30_DRV_BANK_STRIDE[rip]
	add	edi, eax
	mov	DWORD PTR [rcx], edi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	px30_calc_drv_reg_and_bit, .-px30_calc_drv_reg_and_bit
	.comm	PX30_DRV_PMU_OFFSET,4,4
	.comm	PX30_DRV_PINS_PER_REG,4,4
	.comm	PX30_DRV_GRF_OFFSET,4,4
	.comm	PX30_DRV_BITS_PER_PIN,4,4
	.comm	PX30_DRV_BANK_STRIDE,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-rockchip.c_px30_calc_drv_reg_and_bit.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	px30_calc_drv_reg_and_bit, %function
px30_calc_drv_reg_and_bit:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	ip, #0
	mov	r5, r3
	mov	r7, r1
	ldr	r3, [r0, #4]
	ldr	r6, [sp, #24]
	bne	.L2
	ldr	r1, .L6
	ldr	r3, [r3, #4]
	ldr	r4, [r1]
	str	r3, [r2]
	str	r4, [r5]
.L3:
	ldr	r8, .L6+4
	mov	r0, r7
	ldr	r1, [r8]
	bl	__aeabi_idiv
	add	r4, r4, r0, lsl #2
	str	r4, [r5]
	ldr	r1, [r8]
	mov	r0, r7
	bl	__aeabi_idivmod
	ldr	r3, .L6+8
	str	r1, [r6]
	ldr	r3, [r3]
	mul	r1, r3, r1
	str	r1, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, .L6+12
	ldr	r3, [r3]
	ldr	r4, [r1]
	str	r3, [r2]
	sub	r3, r4, #16
	ldr	r2, .L6+16
	str	r3, [r5]
	ldr	r4, [r0]
	ldr	r0, [r2]
	mla	r4, r0, r4, r3
	str	r4, [r5]
	b	.L3
.L7:
	.align	2
.L6:
	.word	PX30_DRV_PMU_OFFSET
	.word	PX30_DRV_PINS_PER_REG
	.word	PX30_DRV_BITS_PER_PIN
	.word	PX30_DRV_GRF_OFFSET
	.word	PX30_DRV_BANK_STRIDE
	.size	px30_calc_drv_reg_and_bit, .-px30_calc_drv_reg_and_bit
	.comm	PX30_DRV_PMU_OFFSET,4,4
	.comm	PX30_DRV_PINS_PER_REG,4,4
	.comm	PX30_DRV_GRF_OFFSET,4,4
	.comm	PX30_DRV_BITS_PER_PIN,4,4
	.comm	PX30_DRV_BANK_STRIDE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
