	.file	"extr_gpio-ws16c48.c_ws16c48_gpio_set_multiple.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ws16c48_gpio_set_multiple, @function
ws16c48_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
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 24[rsp], rdi
	call	gpiochip_get_data@PLT
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L1
	mov	r12, rax
	xor	r14d, r14d
	lea	r15, 16[rax]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, r14d
	mov	ebx, r14d
	call	BIT_WORD@PLT
	shr	ebx, 3
	mov	rcx, QWORD PTR [r12]
	mov	edi, r14d
	mov	edx, ebx
	mov	rbx, QWORD PTR [rcx+rdx*8]
	mov	QWORD PTR 16[rsp], rdx
	not	ebx
	and	ebx, DWORD PTR 0[rbp+rax*8]
	call	BIT_WORD@PLT
	xor	r9d, r9d
	mov	rdi, r15
	mov	rax, QWORD PTR 0[r13+rax*8]
	mov	rsi, r9
	mov	QWORD PTR 8[rsp], rax
	call	raw_spin_lock_irqsave@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR 8[rsp]
	mov	rsi, QWORD PTR 24[r12]
	lea	rax, [rax+rdx*4]
	mov	ecx, DWORD PTR [rax]
	add	rsi, rdx
	xor	edi, ecx
	and	edi, ebx
	xor	edi, ecx
	mov	DWORD PTR [rax], edi
	call	outb@PLT
	xor	r9d, r9d
	mov	rdi, r15
	mov	rsi, r9
	call	raw_spin_unlock_irqrestore@PLT
	mov	edi, r14d
	call	BIT_WORD@PLT
	mov	edi, r14d
	add	r14d, 8
	shr	QWORD PTR 0[rbp+rax*8], 8
	call	BIT_WORD@PLT
	shr	QWORD PTR 0[r13+rax*8], 8
	mov	rax, QWORD PTR 24[rsp]
	cmp	DWORD PTR [rax], r14d
	jbe	.L1
.L2:
	mov	edi, r14d
	call	BIT_WORD@PLT
	cmp	QWORD PTR 0[rbp+rax*8], 0
	jne	.L3
	mov	edi, r14d
	call	BIT_WORD@PLT
	mov	r14d, DWORD PTR BITS_PER_LONG[rip]
	lea	r8, 1[rax]
	mov	rax, QWORD PTR 24[rsp]
	imul	r14d, r8d
	cmp	DWORD PTR [rax], r14d
	ja	.L2
.L1:
	add	rsp, 40
	.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	ws16c48_gpio_set_multiple, .-ws16c48_gpio_set_multiple
	.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-ws16c48.c_ws16c48_gpio_set_multiple.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ws16c48_gpio_set_multiple, %function
ws16c48_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}
	mov	r4, r0
	sub	sp, sp, #12
	mov	r7, r1
	mov	r9, r2
	str	r0, [sp, #4]
	bl	gpiochip_get_data
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L1
	mov	r8, r0
	mov	r4, #0
	add	fp, r0, #8
	b	.L2
.L3:
	bl	BIT_WORD
	ldr	r3, [r8]
	ldr	r2, [r7, r0, lsl #2]
	ldr	r10, [r3, r5, lsl #2]
	mov	r0, r4
	bic	r2, r2, r10
	str	r2, [sp]
	bl	BIT_WORD
	mov	r6, #0
	mov	ip, r0
	mov	r1, r6
	mov	r0, fp
	ldr	r10, [r9, ip, lsl #2]
	bl	raw_spin_lock_irqsave
	ldr	ip, [r8, #4]
	ldr	r2, [sp]
	ldr	lr, [ip, r5, lsl #2]
	ldr	r1, [r8, #12]
	eor	r0, r10, lr
	and	r0, r0, r2
	eor	r0, r0, lr
	str	r0, [ip, r5, lsl #2]
	add	r1, r5, r1
	bl	outb
	mov	r1, r6
	mov	r0, fp
	bl	raw_spin_unlock_irqrestore
	mov	r0, r4
	bl	BIT_WORD
	mov	r3, r0
	ldr	r2, [r7, r0, lsl #2]
	mov	r0, r4
	lsr	r2, r2, #8
	str	r2, [r7, r3, lsl #2]
	bl	BIT_WORD
	ldr	r3, [r9, r0, lsl #2]
	add	r4, r4, #8
	lsr	r3, r3, #8
	str	r3, [r9, r0, lsl #2]
	ldr	r3, [sp, #4]
	ldr	r3, [r3]
	cmp	r3, r4
	bls	.L1
.L2:
	mov	r0, r4
	bl	BIT_WORD
	ldr	r3, [r7, r0, lsl #2]
	lsr	r5, r4, #3
	cmp	r3, #0
	mov	r0, r4
	bne	.L3
	bl	BIT_WORD
	ldr	r3, .L10
	add	r4, r0, #1
	ldr	r3, [r3]
	mul	r4, r3, r4
	ldr	r3, [sp, #4]
	ldr	r3, [r3]
	cmp	r3, r4
	bhi	.L2
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	BITS_PER_LONG
	.size	ws16c48_gpio_set_multiple, .-ws16c48_gpio_set_multiple
	.comm	BITS_PER_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
