	.file	"extr_ar5315_gpio.c_ar5315_gpio_pin_configure.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar5315_gpio_pin_configure, @function
ar5315_gpio_pin_configure:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r8d, DWORD PTR GPIO_PIN_INPUT[rip]
	mov	edi, DWORD PTR GPIO_PIN_OUTPUT[rip]
	mov	eax, r8d
	or	eax, edi
	test	eax, edx
	je	.L1
	mov	ecx, DWORD PTR [rsi]
	mov	r12d, 1
	not	eax
	and	eax, DWORD PTR 4[rsi]
	sal	r12d, cl
	test	edi, edx
	je	.L3
	or	eax, edi
	mov	DWORD PTR 4[rsi], eax
	xor	eax, eax
	call	ar531x_gpio_cr@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	GPIO_SET_BITS@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	or	eax, r8d
	mov	DWORD PTR 4[rsi], eax
	xor	eax, eax
	call	ar531x_gpio_cr@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edx, r12d
	mov	rdi, rbp
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	GPIO_CLEAR_BITS@PLT
	.cfi_endproc
.LFE0:
	.size	ar5315_gpio_pin_configure, .-ar5315_gpio_pin_configure
	.comm	GPIO_PIN_OUTPUT,4,4
	.comm	GPIO_PIN_INPUT,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_ar5315_gpio.c_ar5315_gpio_pin_configure.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar5315_gpio_pin_configure, %function
ar5315_gpio_pin_configure:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L6
	ldr	r3, .L6+4
	ldr	ip, [ip]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	mov	r4, r0
	orr	r0, ip, r3
	tst	r0, r2
	popeq	{r4, r5, r6, pc}
	mov	r6, #1
	ldr	r5, [r1]
	ldr	lr, [r1, #4]
	tst	r3, r2
	lsl	r5, r6, r5
	bic	r0, lr, r0
	beq	.L3
	orr	r3, r3, r0
	str	r3, [r1, #4]
	bl	ar531x_gpio_cr
	mov	r2, r5
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	GPIO_SET_BITS
.L3:
	orr	ip, ip, r0
	str	ip, [r1, #4]
	bl	ar531x_gpio_cr
	mov	r2, r5
	mov	r1, r0
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	GPIO_CLEAR_BITS
.L7:
	.align	2
.L6:
	.word	GPIO_PIN_INPUT
	.word	GPIO_PIN_OUTPUT
	.size	ar5315_gpio_pin_configure, .-ar5315_gpio_pin_configure
	.comm	GPIO_PIN_OUTPUT,4,4
	.comm	GPIO_PIN_INPUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
