	.file	"extr_gpio-sch.c_sch_gpio_resume_direction_in.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sch_gpio_resume_direction_in, @function
sch_gpio_resume_direction_in:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	lea	rdi, gpio_lock[rip]
	mov	ebx, esi
	call	spin_lock@PLT
	mov	rdi, QWORD PTR RGIO[rip]
	add	rdi, QWORD PTR gpio_ba[rip]
	call	inb@PLT
	bt	eax, ebx
	jnc	.L5
	lea	rdi, gpio_lock[rip]
	call	spin_unlock@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	bts	eax, ebx
	mov	rsi, QWORD PTR RGIO[rip]
	add	rsi, QWORD PTR gpio_ba[rip]
	mov	edi, eax
	call	outb@PLT
	lea	rdi, gpio_lock[rip]
	call	spin_unlock@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sch_gpio_resume_direction_in, .-sch_gpio_resume_direction_in
	.comm	gpio_lock,4,4
	.comm	gpio_ba,8,8
	.comm	RGIO,8,8
	.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-sch.c_sch_gpio_resume_direction_in.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sch_gpio_resume_direction_in, %function
sch_gpio_resume_direction_in:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L6
	ldr	r5, .L6+4
	ldr	r0, .L6+8
	mov	r4, r1
	bl	spin_lock
	ldr	r3, [r5]
	ldr	r0, [r6]
	add	r0, r0, r3
	bl	inb
	asr	r3, r0, r4
	tst	r3, #1
	beq	.L5
.L2:
	ldr	r0, .L6+8
	bl	spin_unlock
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	mov	r2, #1
	ldr	r1, [r6]
	ldr	r3, [r5]
	orr	r0, r0, r2, lsl r4
	add	r1, r1, r3
	bl	outb
	b	.L2
.L7:
	.align	2
.L6:
	.word	gpio_ba
	.word	RGIO
	.word	gpio_lock
	.size	sch_gpio_resume_direction_in, .-sch_gpio_resume_direction_in
	.comm	gpio_lock,4,4
	.comm	gpio_ba,4,4
	.comm	RGIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
