	.file	"extr_gpiolib-acpi.c_acpi_dev_gpio_irq_get.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"GpioInt() %d"
	.text
	.p2align 4
	.globl	acpi_dev_gpio_irq_get
	.type	acpi_dev_gpio_irq_get, @function
acpi_dev_gpio_irq_get:
.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, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	test	esi, esi
	js	.L2
	mov	r14, rdi
	mov	r13d, esi
	xor	ebx, ebx
	xor	r12d, r12d
	mov	r15, rsp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	QWORD PTR 16[rsp], 0
	je	.L5
	lea	eax, 1[r12]
	cmp	r13d, r12d
	je	.L19
	mov	r12d, eax
.L5:
	add	ebx, 1
	cmp	r12d, r13d
	jg	.L2
.L8:
	xor	esi, esi
	mov	rdi, r14
	mov	rcx, r15
	mov	edx, ebx
	call	acpi_get_gpiod_by_index@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L3
	mov	rdi, rbp
	call	PTR_ERR@PLT
	add	eax, DWORD PTR EPROBE_DEFER[rip]
	je	.L3
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 88
	.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
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	mov	r14, QWORD PTR GPIO_LOOKUP_FLAGS_DEFAULT[rip]
	call	IS_ERR@PLT
	mov	rdi, rbp
	test	rax, rax
	jne	.L21
	call	gpiod_to_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	lea	r15, 32[rsp]
	mov	ecx, r13d
	mov	esi, 32
	lea	rdx, .LC0[rip]
	mov	rdi, r15
	call	snprintf@PLT
	mov	ecx, DWORD PTR 8[rsp]
	mov	rdx, r14
	mov	rsi, r15
	mov	rdi, rbp
	call	gpiod_configure_flags@PLT
	test	eax, eax
	jns	.L22
	mov	r12d, eax
	jmp	.L1
.L21:
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
.L22:
	mov	esi, DWORD PTR [rsp]
	mov	edi, DWORD PTR 4[rsp]
	call	acpi_dev_get_irq_type@PLT
	cmp	DWORD PTR IRQ_TYPE_NONE[rip], eax
	mov	ebp, eax
	je	.L1
	mov	edi, r12d
	call	irq_get_trigger_type@PLT
	cmp	eax, ebp
	je	.L1
	mov	esi, ebp
	mov	edi, r12d
	call	irq_set_irq_type@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	acpi_dev_gpio_irq_get, .-acpi_dev_gpio_irq_get
	.comm	IRQ_TYPE_NONE,4,4
	.comm	GPIO_LOOKUP_FLAGS_DEFAULT,8,8
	.comm	EPROBE_DEFER,4,4
	.comm	ENOENT,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_gpiolib-acpi.c_acpi_dev_gpio_irq_get.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GpioInt() %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	acpi_dev_gpio_irq_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_dev_gpio_irq_get, %function
acpi_dev_gpio_irq_get:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L25
	sub	sp, sp, #60
	subs	r7, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	blt	.L2
	mov	r6, #0
	mov	r8, r0
	mov	r4, r6
	ldr	r9, .L25+4
	b	.L8
.L3:
	ldr	r3, [sp, #16]
	cmp	r3, #0
	beq	.L5
	cmp	r7, r4
	add	r4, r4, #1
	beq	.L22
.L5:
	cmp	r4, r7
	add	r6, r6, #1
	bgt	.L2
.L8:
	mov	r2, r6
	mov	r1, #0
	add	r3, sp, #4
	mov	r0, r8
	bl	acpi_get_gpiod_by_index
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	beq	.L3
	mov	r0, r5
	bl	PTR_ERR
	ldr	r3, [r9]
	cmn	r0, r3
	beq	.L3
	mov	r0, r5
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L2:
	ldr	r3, .L25+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L22:
	ldr	r3, .L25+12
	mov	r0, r5
	ldr	r6, [r3]
	bl	IS_ERR
	cmp	r0, #0
	mov	r0, r5
	bne	.L24
	bl	gpiod_to_irq
	subs	r4, r0, #0
	blt	.L1
	mov	r3, r7
	mov	r1, #32
	ldr	r2, .L25+16
	add	r0, sp, #20
	bl	snprintf
	mov	r2, r6
	mov	r0, r5
	ldr	r3, [sp, #12]
	add	r1, sp, #20
	bl	gpiod_configure_flags
	cmp	r0, #0
	movlt	r4, r0
	blt	.L1
	ldr	r1, [sp, #4]
	ldr	r0, [sp, #8]
	bl	acpi_dev_get_irq_type
	ldr	r3, .L25+20
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L1
	mov	r0, r4
	bl	irq_get_trigger_type
	cmp	r0, r5
	beq	.L1
	mov	r1, r5
	mov	r0, r4
	bl	irq_set_irq_type
	b	.L1
.L24:
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L23:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	EPROBE_DEFER
	.word	ENOENT
	.word	GPIO_LOOKUP_FLAGS_DEFAULT
	.word	.LC0
	.word	IRQ_TYPE_NONE
	.size	acpi_dev_gpio_irq_get, .-acpi_dev_gpio_irq_get
	.comm	IRQ_TYPE_NONE,4,4
	.comm	GPIO_LOOKUP_FLAGS_DEFAULT,4,4
	.comm	EPROBE_DEFER,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
