	.file	"extr_gpio-cadence.c_cdns_gpio_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ngpios"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"ngpios must be less or equal 32\n"
	.align 8
.LC2:
	.string	"Failed to register generic gpio, %d\n"
	.align 8
.LC3:
	.string	"Failed to retrieve peripheral clock, %d\n"
	.align 8
.LC4:
	.string	"Failed to enable the peripheral clock, %d\n"
	.align 8
.LC5:
	.string	"Could not register gpiochip, %d\n"
	.text
	.p2align 4
	.type	cdns_gpio_probe, @function
cdns_gpio_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, 104
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	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	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 32
	call	devm_kzalloc@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	xor	esi, esi
	mov	rdi, r13
	mov	rbp, rax
	call	devm_platform_ioremap_resource@PLT
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L17
	mov	edi, DWORD PTR 0[r13]
	lea	rdx, 4[rsp]
	lea	rsi, .LC0[rip]
	call	of_property_read_u32@PLT
	cmp	DWORD PTR 4[rsp], 32
	jg	.L18
	mov	rdi, QWORD PTR CDNS_GPIO_DIRECTION_MODE[rip]
	add	rdi, QWORD PTR 0[rbp]
	lea	r14, 24[rbp]
	call	ioread32@PLT
	xor	esi, esi
	mov	r12, QWORD PTR CDNS_GPIO_DIRECTION_MODE[rip]
	add	r12, QWORD PTR 0[rbp]
	mov	rbx, rax
	mov	eax, DWORD PTR 4[rsp]
	lea	edi, -1[rax]
	call	GENMASK@PLT
	mov	rsi, r12
	mov	edi, eax
	call	iowrite32@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	r8, QWORD PTR 0[rbp]
	xor	r9d, r9d
	mov	eax, DWORD PTR BGPIOF_READ_OUTPUT_REG_SET[rip]
	mov	rcx, QWORD PTR CDNS_GPIO_INPUT_VALUE[rip]
	mov	rsi, r13
	mov	rdi, r14
	mov	edx, 4
	push	rax
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR CDNS_GPIO_DIRECTION_MODE[rip]
	add	rcx, r8
	add	rax, r8
	add	r8, QWORD PTR CDNS_GPIO_OUTPUT_VALUE[rip]
	push	rax
	.cfi_def_cfa_offset 104
	push	0
	.cfi_def_cfa_offset 112
	call	bgpio_init@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r12d, eax
	test	eax, eax
	jne	.L19
	mov	rdi, r13
	call	dev_name@PLT
	mov	QWORD PTR 88[rbp], r13
	xor	esi, esi
	mov	rdi, r13
	mov	DWORD PTR 96[rbp], eax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 28[rbp], -1
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR THIS_MODULE[rip]
	mov	DWORD PTR 80[rbp], eax
	mov	eax, DWORD PTR cdns_gpio_request[rip]
	mov	DWORD PTR 76[rbp], eax
	mov	eax, DWORD PTR cdns_gpio_free[rip]
	mov	DWORD PTR 72[rbp], eax
	call	devm_clk_get@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	mov	rdi, QWORD PTR 8[rbp]
	test	rax, rax
	jne	.L20
	call	clk_prepare_enable@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L21
	xor	esi, esi
	mov	rdi, r13
	call	platform_get_irq@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L10
	lea	rax, cdns_gpio_irqchip[rip]
	mov	DWORD PTR 32[rbp], 1
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, r13
	mov	QWORD PTR 64[rbp], rax
	mov	eax, DWORD PTR cdns_gpio_irq_handler[rip]
	mov	edx, 4
	mov	esi, 1
	mov	DWORD PTR 56[rbp], eax
	call	devm_kcalloc@PLT
	mov	QWORD PTR 40[rbp], rax
	test	rax, rax
	je	.L22
	mov	DWORD PTR [rax], r15d
	mov	eax, DWORD PTR IRQ_TYPE_NONE[rip]
	mov	DWORD PTR 52[rbp], eax
	mov	eax, DWORD PTR handle_level_irq[rip]
	mov	DWORD PTR 48[rbp], eax
.L10:
	mov	rsi, r14
	mov	rdx, rbp
	mov	rdi, r13
	call	devm_gpiochip_add_data@PLT
	mov	r14d, eax
	test	eax, eax
	js	.L23
	mov	rdi, QWORD PTR CDNS_GPIO_BYPASS_MODE[rip]
	add	rdi, QWORD PTR 0[rbp]
	call	ioread32@PLT
	xor	esi, esi
	mov	r14, QWORD PTR CDNS_GPIO_OUTPUT_EN[rip]
	add	r14, QWORD PTR 0[rbp]
	mov	QWORD PTR 16[rbp], rax
	mov	eax, DWORD PTR 4[rsp]
	lea	edi, -1[rax]
	call	GENMASK@PLT
	mov	rsi, r14
	mov	edi, eax
	call	iowrite32@PLT
	mov	rsi, QWORD PTR CDNS_GPIO_BYPASS_MODE[rip]
	xor	edi, edi
	add	rsi, QWORD PTR 0[rbp]
	call	iowrite32@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	platform_set_drvdata@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[rbp]
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
.L7:
	mov	rsi, QWORD PTR CDNS_GPIO_DIRECTION_MODE[rip]
	mov	edi, ebx
	add	rsi, QWORD PTR 0[rbp]
	call	iowrite32@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	call	PTR_ERR@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	mov	r12d, eax
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L7
.L22:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L12:
	mov	rdi, QWORD PTR 8[rbp]
	call	clk_disable_unprepare@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, eax
	lea	rsi, .LC5[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, r14d
	jmp	.L12
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cdns_gpio_probe, .-cdns_gpio_probe
	.comm	handle_level_irq,4,4
	.comm	cdns_gpio_request,4,4
	.comm	cdns_gpio_irqchip,4,4
	.comm	cdns_gpio_irq_handler,4,4
	.comm	cdns_gpio_free,4,4
	.comm	THIS_MODULE,4,4
	.comm	IRQ_TYPE_NONE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CDNS_GPIO_OUTPUT_VALUE,8,8
	.comm	CDNS_GPIO_OUTPUT_EN,8,8
	.comm	CDNS_GPIO_INPUT_VALUE,8,8
	.comm	CDNS_GPIO_DIRECTION_MODE,8,8
	.comm	CDNS_GPIO_BYPASS_MODE,8,8
	.comm	BGPIOF_READ_OUTPUT_REG_SET,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-cadence.c_cdns_gpio_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ngpios\000"
	.align	2
.LC1:
	.ascii	"ngpios must be less or equal 32\012\000"
	.align	2
.LC2:
	.ascii	"Failed to register generic gpio, %d\012\000"
	.align	2
.LC3:
	.ascii	"Failed to retrieve peripheral clock, %d\012\000"
	.align	2
.LC4:
	.ascii	"Failed to enable the peripheral clock, %d\012\000"
	.align	2
.LC5:
	.ascii	"Could not register gpiochip, %d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cdns_gpio_probe, %function
cdns_gpio_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #32
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, .L26
	ldr	ip, .L26+4
	sub	sp, sp, #36
	mov	r1, #64
	ldr	r2, [r7]
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	mov	r6, r0
	str	r3, [sp, #24]
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L17
	mov	r1, #0
	mov	r0, r6
	bl	devm_platform_ioremap_resource
	str	r0, [r4]
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L18
	ldr	r1, .L26+8
	ldr	r0, [r6]
	add	r2, sp, #24
	bl	of_property_read_u32
	ldr	r3, [sp, #24]
	cmp	r3, #32
	bgt	.L19
	ldr	r8, .L26+12
	ldr	r0, [r4]
	ldr	r3, [r8]
	mov	r9, r4
	add	r0, r0, r3
	bl	ioread32
	mov	r10, r0
	ldr	r0, [sp, #24]
	mov	r1, r5
	sub	r0, r0, #1
	bl	GENMASK
	ldr	r3, [r8]
	ldr	r1, [r4]
	add	r1, r1, r3
	bl	iowrite32
	ldr	r2, .L26+16
	ldr	r0, .L26+20
	ldr	ip, .L26+24
	ldr	r3, [r9], #12
	ldr	r2, [r2]
	ldr	r1, [r8]
	ldr	r0, [r0]
	ldr	ip, [ip]
	add	r1, r3, r1
	add	r2, r3, r2
	stm	sp, {r2, r5}
	str	r1, [sp, #12]
	str	r5, [sp, #8]
	add	r3, r3, r0
	mov	r2, #4
	mov	r0, r9
	mov	r1, r6
	str	ip, [sp, #16]
	bl	bgpio_init
	subs	r5, r0, #0
	mov	r0, r6
	bne	.L20
	bl	dev_name
	mvn	r2, #0
	ldr	r3, .L26+28
	ldr	r1, .L26+32
	ldr	ip, [r3]
	ldr	r3, .L26+36
	ldr	lr, [r1]
	ldr	r3, [r3]
	mov	r1, r5
	str	r3, [r4, #44]
	ldr	r3, [sp, #24]
	str	r0, [r4, #60]
	str	lr, [r4, #52]
	str	ip, [r4, #48]
	str	r2, [r4, #16]
	str	r3, [r4, #12]
	mov	r0, r6
	str	r6, [r4, #56]
	bl	devm_clk_get
	str	r0, [r4, #4]
	bl	IS_ERR
	cmp	r0, #0
	ldr	r0, [r4, #4]
	bne	.L21
	bl	clk_prepare_enable
	subs	r5, r0, #0
	bne	.L22
	mov	r1, r5
	mov	r0, r6
	bl	platform_get_irq
	subs	fp, r0, #0
	blt	.L10
	mov	r1, #1
	ldr	r3, .L26+40
	ldr	r2, .L26+44
	ldr	r0, [r3]
	str	r2, [r4, #40]
	str	r0, [r4, #36]
	mov	r2, #4
	mov	r0, r6
	ldr	r3, [r7]
	str	r1, [r4, #20]
	bl	devm_kcalloc
	cmp	r0, #0
	str	r0, [r4, #24]
	beq	.L23
	ldr	r2, .L26+48
	ldr	r3, .L26+52
	str	fp, [r0]
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, #32]
	str	r3, [r4, #28]
.L10:
	mov	r2, r4
	mov	r1, r9
	mov	r0, r6
	bl	devm_gpiochip_add_data
	subs	r2, r0, #0
	blt	.L24
	ldr	r7, .L26+56
	ldr	r0, [r4]
	ldr	r3, [r7]
	add	r0, r0, r3
	bl	ioread32
	ldr	r3, [sp, #24]
	str	r0, [r4, #8]
	mov	r1, #0
	sub	r0, r3, #1
	bl	GENMASK
	ldr	r3, .L26+60
	ldr	r1, [r4]
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	iowrite32
	ldr	r3, [r7]
	ldr	r1, [r4]
	mov	r0, #0
	add	r1, r1, r3
	bl	iowrite32
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	b	.L1
.L18:
	ldr	r0, [r4]
	bl	PTR_ERR
	mov	r5, r0
.L1:
	ldr	r3, .L26+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r5
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, .L26+64
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L20:
	mov	r2, r5
	ldr	r1, .L26+68
	bl	dev_err
.L7:
	ldr	r1, [r4]
	ldr	r3, [r8]
	mov	r0, r10
	add	r1, r1, r3
	bl	iowrite32
	b	.L1
.L19:
	mov	r0, r6
	ldr	r1, .L26+72
	bl	dev_err
	ldr	r3, .L26+76
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L21:
	bl	PTR_ERR
	mov	r5, r0
	ldr	r1, .L26+80
	mov	r0, r6
	mov	r2, r5
	bl	dev_err
	b	.L7
.L23:
	ldr	r3, .L26+64
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L12:
	ldr	r0, [r4, #4]
	bl	clk_disable_unprepare
	b	.L7
.L22:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L26+84
	bl	dev_err
	b	.L7
.L24:
	mov	r0, r6
	ldr	r1, .L26+88
	mov	r5, r2
	bl	dev_err
	b	.L12
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	GFP_KERNEL
	.word	.LC6
	.word	.LC0
	.word	CDNS_GPIO_DIRECTION_MODE
	.word	CDNS_GPIO_OUTPUT_VALUE
	.word	CDNS_GPIO_INPUT_VALUE
	.word	BGPIOF_READ_OUTPUT_REG_SET
	.word	cdns_gpio_request
	.word	THIS_MODULE
	.word	cdns_gpio_free
	.word	cdns_gpio_irq_handler
	.word	cdns_gpio_irqchip
	.word	IRQ_TYPE_NONE
	.word	handle_level_irq
	.word	CDNS_GPIO_BYPASS_MODE
	.word	CDNS_GPIO_OUTPUT_EN
	.word	ENOMEM
	.word	.LC2
	.word	.LC1
	.word	EINVAL
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	cdns_gpio_probe, .-cdns_gpio_probe
	.comm	handle_level_irq,4,4
	.comm	cdns_gpio_request,4,4
	.comm	cdns_gpio_irqchip,4,4
	.comm	cdns_gpio_irq_handler,4,4
	.comm	cdns_gpio_free,4,4
	.comm	THIS_MODULE,4,4
	.comm	IRQ_TYPE_NONE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	CDNS_GPIO_OUTPUT_VALUE,4,4
	.comm	CDNS_GPIO_OUTPUT_EN,4,4
	.comm	CDNS_GPIO_INPUT_VALUE,4,4
	.comm	CDNS_GPIO_DIRECTION_MODE,4,4
	.comm	CDNS_GPIO_BYPASS_MODE,4,4
	.comm	BGPIOF_READ_OUTPUT_REG_SET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
