	.file	"extr_rk_gpio.c_rk_gpio_pin_access_32.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rk_gpio_pin_access_32, @function
rk_gpio_pin_access_32:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	device_get_softc@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	RK_GPIO_LOCK@PLT
	mov	esi, DWORD PTR RK_GPIO_SWPORTA_DR[rip]
	mov	rdi, rbp
	call	RK_GPIO_READ@PLT
	test	r12, r12
	je	.L2
	mov	DWORD PTR [r12], eax
.L2:
	mov	esi, ebx
	or	esi, r13d
	jne	.L12
.L3:
	mov	rdi, rbp
	call	RK_GPIO_UNLOCK@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	not	ebx
	mov	esi, DWORD PTR RK_GPIO_SWPORTA_DR[rip]
	mov	rdi, rbp
	mov	edx, ebx
	and	edx, eax
	xor	edx, r13d
	call	RK_GPIO_WRITE@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	rk_gpio_pin_access_32, .-rk_gpio_pin_access_32
	.comm	RK_GPIO_SWPORTA_DR,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_rk_gpio.c_rk_gpio_pin_access_32.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rk_gpio_pin_access_32, %function
rk_gpio_pin_access_32:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [sp, #24]
	mov	r6, r2
	mov	r5, r3
	bl	device_get_softc
	mov	r4, r0
	ldr	r8, .L13
	bl	RK_GPIO_LOCK
	mov	r0, r4
	ldr	r1, [r8]
	bl	RK_GPIO_READ
	cmp	r7, #0
	strne	r0, [r7]
	orrs	r3, r6, r5
	bne	.L12
.L3:
	mov	r0, r4
	bl	RK_GPIO_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	bic	r0, r0, r6
	eor	r2, r0, r5
	ldr	r1, [r8]
	mov	r0, r4
	bl	RK_GPIO_WRITE
	b	.L3
.L14:
	.align	2
.L13:
	.word	RK_GPIO_SWPORTA_DR
	.size	rk_gpio_pin_access_32, .-rk_gpio_pin_access_32
	.comm	RK_GPIO_SWPORTA_DR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
