	.file	"extr_gpio.c_sh_pfc_register_gpiochip.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid number of IRQ resources\n"
	.text
	.p2align 4
	.globl	sh_pfc_register_gpiochip
	.type	sh_pfc_register_gpiochip, @function
sh_pfc_register_gpiochip:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8, QWORD PTR 32[rdi]
	mov	rax, QWORD PTR 16[r8]
	test	rax, rax
	je	.L8
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR [rdi]
	mov	rsi, QWORD PTR [rax]
	test	edi, edi
	je	.L9
	mov	r9, QWORD PTR 64[rbx]
	xor	ecx, ecx
	mov	rax, r9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, rsi
	jg	.L3
	add	rdx, QWORD PTR 8[rax]
	cmp	rdx, rsi
	jg	.L17
.L3:
	add	ecx, 1
	add	rax, 16
	cmp	edi, ecx
	jne	.L6
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR [r8]
	cmp	QWORD PTR 8[rbx], rax
	jne	.L4
	sal	rcx, 4
	mov	esi, DWORD PTR gpio_pin_setup[rip]
	mov	rdi, rbx
	lea	rdx, [r9+rcx]
	call	sh_pfc_add_gpiochip@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L18
	mov	QWORD PTR 56[rbx], rbp
	mov	edi, DWORD PTR CONFIG_OF[rip]
	call	IS_ENABLED@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, QWORD PTR 40[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore 3
	.cfi_restore 6
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	sh_pfc_register_gpiochip, .-sh_pfc_register_gpiochip
	.comm	gpio_pin_setup,4,4
	.comm	gpio_function_setup,4,4
	.comm	EINVAL,4,4
	.comm	CONFIG_OF,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.c_sh_pfc_register_gpiochip.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid number of IRQ resources\012\000"
	.text
	.align	2
	.global	sh_pfc_register_gpiochip
	.syntax unified
	.arm
	.fpu softvfp
	.type	sh_pfc_register_gpiochip, %function
sh_pfc_register_gpiochip:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r0, #16]
	mov	r5, r0
	ldr	r0, [r6, #8]
	cmp	r0, #0
	beq	.L13
	ldr	lr, [r5]
	ldr	ip, [r0]
	cmp	lr, #0
	beq	.L9
	mov	r3, #0
	ldr	r2, [r5, #32]
	add	r0, r2, #4
.L6:
	ldr	r1, [r2, r3, lsl #3]
	cmp	r1, ip
	bgt	.L3
	ldr	r4, [r0, r3, lsl #3]
	add	r1, r1, r4
	cmp	r1, ip
	bgt	.L15
.L3:
	add	r3, r3, #1
	cmp	lr, r3
	bne	.L6
.L13:
	mov	r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r1, [r6]
	ldr	r0, [r5, #4]
	cmp	r0, r1
	bne	.L4
	ldr	r1, .L17
	add	r2, r2, r3, lsl #3
	ldr	r1, [r1]
	mov	r0, r5
	bl	sh_pfc_add_gpiochip
	mov	r6, r0
	bl	IS_ERR
	subs	r4, r0, #0
	bne	.L16
	ldr	r3, .L17+4
	str	r6, [r5, #28]
	ldr	r0, [r3]
	bl	IS_ENABLED
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, [r5, #20]
	ldr	r1, .L17+8
	bl	dev_err
	ldr	r3, .L17+12
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L9:
	mov	r4, lr
	b	.L1
.L18:
	.align	2
.L17:
	.word	gpio_pin_setup
	.word	CONFIG_OF
	.word	.LC0
	.word	EINVAL
	.size	sh_pfc_register_gpiochip, .-sh_pfc_register_gpiochip
	.comm	gpio_pin_setup,4,4
	.comm	gpio_function_setup,4,4
	.comm	EINVAL,4,4
	.comm	CONFIG_OF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
