	.file	"extr_gpio-uniphier.c_uniphier_gpio_set_multiple.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uniphier_gpio_set_multiple, @function
uniphier_gpio_set_multiple:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rdi]
	mov	r14d, DWORD PTR UNIPHIER_GPIO_LINES_PER_BANK[rip]
	mov	QWORD PTR 8[rsp], rdx
	test	eax, eax
	jle	.L1
	mov	rbp, rdi
	mov	r15, rsi
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, r12d
	mov	edi, r12d
	cdq
	idiv	DWORD PTR BITS_PER_LONG[rip]
	mov	ebx, edx
	call	BIT_WORD@PLT
	mov	ecx, ebx
	mov	edi, r12d
	mov	r13, QWORD PTR [r15+rax*8]
	shr	r13, cl
	and	r13d, DWORD PTR UNIPHIER_GPIO_BANK_MASK[rip]
	call	BIT_WORD@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, ebx
	mov	rdi, rbp
	mov	r8, QWORD PTR [rsi+rax*8]
	mov	eax, r12d
	cdq
	idiv	r14d
	mov	edx, DWORD PTR UNIPHIER_GPIO_PORT_DATA[rip]
	shr	r8, cl
	mov	ecx, r13d
	mov	esi, eax
	call	uniphier_gpio_bank_write@PLT
	mov	r14d, DWORD PTR UNIPHIER_GPIO_LINES_PER_BANK[rip]
	add	r12d, r14d
	cmp	DWORD PTR 0[rbp], r12d
	jg	.L3
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	uniphier_gpio_set_multiple, .-uniphier_gpio_set_multiple
	.comm	UNIPHIER_GPIO_PORT_DATA,4,4
	.comm	UNIPHIER_GPIO_LINES_PER_BANK,4,4
	.comm	UNIPHIER_GPIO_BANK_MASK,8,8
	.comm	BITS_PER_LONG,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_gpio-uniphier.c_uniphier_gpio_set_multiple.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uniphier_gpio_set_multiple, %function
uniphier_gpio_set_multiple:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	sub	sp, sp, #20
	cmp	r3, #0
	str	r1, [sp, #8]
	str	r2, [sp, #12]
	ble	.L1
	mov	r7, r0
	mov	r4, #0
	ldr	r3, .L8
	ldr	fp, .L8+4
	ldr	r8, [r3]
	ldr	r10, .L8+8
.L3:
	ldr	r3, .L8+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	__aeabi_idivmod
	mov	r0, r4
	mov	r5, r1
	bl	BIT_WORD
	ldr	r3, [sp, #8]
	ldr	r6, [fp]
	ldr	r3, [r3, r0, lsl #2]
	mov	r0, r4
	and	r6, r6, r3, lsr r5
	bl	BIT_WORD
	mov	r9, r0
	mov	r1, r8
	mov	r0, r4
	bl	__aeabi_idiv
	ldr	r3, [sp, #12]
	mov	r1, r0
	ldr	r3, [r3, r9, lsl #2]
	mov	r0, r7
	lsr	r5, r3, r5
	ldr	r2, [r10]
	mov	r3, r6
	str	r5, [sp]
	bl	uniphier_gpio_bank_write
	ldr	r3, .L8
	ldr	r8, [r3]
	ldr	r3, [r7]
	add	r4, r4, r8
	cmp	r3, r4
	bgt	.L3
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	UNIPHIER_GPIO_LINES_PER_BANK
	.word	UNIPHIER_GPIO_BANK_MASK
	.word	UNIPHIER_GPIO_PORT_DATA
	.word	BITS_PER_LONG
	.size	uniphier_gpio_set_multiple, .-uniphier_gpio_set_multiple
	.comm	UNIPHIER_GPIO_PORT_DATA,4,4
	.comm	UNIPHIER_GPIO_LINES_PER_BANK,4,4
	.comm	UNIPHIER_GPIO_BANK_MASK,4,4
	.comm	BITS_PER_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
