	.file	"extr_gpio-pca953x.c_pca953x_check_register.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pca953x_check_register, @function
pca953x_check_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	call	pca953x_bank_shift@PLT
	mov	ebp, DWORD PTR REG_ADDR_MASK[rip]
	mov	ecx, eax
	mov	edi, eax
	and	ebp, ebx
	shr	ebp, cl
	call	BIT@PLT
	mov	r14d, eax
	test	DWORD PTR REG_ADDR_EXT[rip], ebx
	je	.L2
	mov	eax, DWORD PTR [r12]
	add	ebp, 8
	test	DWORD PTR PCA_PCAL[rip], eax
	je	.L5
.L2:
	mov	edi, ebp
	call	BIT@PLT
	test	eax, r13d
	jne	.L14
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, r12
	call	NBANK@PLT
	lea	esi, -1[r14]
	and	ebx, esi
	cmp	eax, ebx
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	setg	al
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	movzx	eax, al
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pca953x_check_register, .-pca953x_check_register
	.comm	REG_ADDR_MASK,4,4
	.comm	REG_ADDR_EXT,4,4
	.comm	PCA_PCAL,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-pca953x.c_pca953x_check_register.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pca953x_check_register, %function
pca953x_check_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r7, r2
	mov	r6, r0
	bl	pca953x_bank_shift
	ldr	r3, .L15
	ldr	r4, [r3]
	and	r4, r4, r5
	lsr	r4, r4, r0
	bl	BIT
	ldr	r3, .L15+4
	mov	r8, r0
	ldr	r3, [r3]
	tst	r5, r3
	beq	.L2
	ldr	r3, .L15+8
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	addne	r4, r4, #8
	beq	.L5
.L2:
	mov	r0, r4
	bl	BIT
	tst	r0, r7
	bne	.L14
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	mov	r0, r6
	bl	NBANK
	sub	r1, r8, #1
	and	r5, r5, r1
	cmp	r0, r5
	movle	r0, #0
	movgt	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	REG_ADDR_MASK
	.word	REG_ADDR_EXT
	.word	PCA_PCAL
	.size	pca953x_check_register, .-pca953x_check_register
	.comm	REG_ADDR_MASK,4,4
	.comm	REG_ADDR_EXT,4,4
	.comm	PCA_PCAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
