	.file	"extr_ar5211_misc.c_ar5211GpioSet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ar5211GpioSet
	.type	ar5211GpioSet, @function
ar5211GpioSet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	xor	edi, edi
	cmp	DWORD PTR AR_NUM_GPIO[rip], esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	setg	dil
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	and	ebx, 1
	call	HALASSERT@PLT
	mov	esi, DWORD PTR AR_GPIODO[rip]
	mov	rdi, r12
	call	OS_REG_READ@PLT
	mov	ecx, ebp
	mov	esi, DWORD PTR AR_GPIODO[rip]
	mov	rdi, r12
	btr	eax, ebp
	sal	ebx, cl
	mov	edx, eax
	or	edx, ebx
	call	OS_REG_WRITE@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR AH_TRUE[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ar5211GpioSet, .-ar5211GpioSet
	.comm	AR_NUM_GPIO,4,4
	.comm	AR_GPIODO,4,4
	.comm	AH_TRUE,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_ar5211_misc.c_ar5211GpioSet.c"
	.text
	.align	2
	.global	ar5211GpioSet
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar5211GpioSet, %function
ar5211GpioSet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r3, .L4
	ldr	r7, .L4+4
	ldr	r0, [r3]
	mov	r4, r1
	cmp	r0, r1
	movle	r0, #0
	movgt	r0, #1
	mov	r5, r2
	bl	HALASSERT
	ldr	r1, [r7]
	mov	r0, r6
	bl	OS_REG_READ
	mov	r2, #1
	and	r5, r5, r2
	bic	r2, r0, r2, lsl r4
	ldr	r1, [r7]
	mov	r0, r6
	orr	r2, r2, r5, lsl r4
	bl	OS_REG_WRITE
	ldr	r3, .L4+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	AR_NUM_GPIO
	.word	AR_GPIODO
	.word	AH_TRUE
	.size	ar5211GpioSet, .-ar5211GpioSet
	.comm	AR_NUM_GPIO,4,4
	.comm	AR_GPIODO,4,4
	.comm	AH_TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
