	.file	"extr_rccgpio.c_rcc_gpio_pin_toggle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rcc_gpio_pin_toggle, @function
rcc_gpio_pin_toggle:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	device_get_softc@PLT
	cmp	QWORD PTR [rax], rbx
	jle	.L4
	mov	rbp, rax
	mov	rax, QWORD PTR rcc_pins[rip]
	lea	r12, 0[0+rbx*8]
	mov	eax, DWORD PTR [rax+rbx*8]
	test	DWORD PTR GPIO_PIN_OUTPUT[rip], eax
	jne	.L12
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdi, rbp
	call	RCC_GPIO_LOCK@PLT
	mov	rax, QWORD PTR rcc_pins[rip]
	mov	edx, DWORD PTR 8[rbp]
	mov	eax, DWORD PTR 4[rax+r12]
	bt	edx, eax
	jnc	.L13
	btr	edx, eax
.L6:
	mov	DWORD PTR 8[rbp], edx
	mov	esi, DWORD PTR RCC_GPIO_GP_LVL[rip]
	mov	rdi, rbp
	call	RCC_WRITE@PLT
	mov	rdi, rbp
	call	RCC_GPIO_UNLOCK@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	bts	edx, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	rcc_gpio_pin_toggle, .-rcc_gpio_pin_toggle
	.comm	rcc_pins,8,8
	.comm	RCC_GPIO_GP_LVL,4,4
	.comm	GPIO_PIN_OUTPUT,4,4
	.comm	EINVAL,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_rccgpio.c_rcc_gpio_pin_toggle.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rcc_gpio_pin_toggle, %function
rcc_gpio_pin_toggle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	device_get_softc
	ldr	r3, [r0]
	cmp	r3, r4
	ble	.L4
	ldr	r6, .L13
	ldr	r3, .L13+4
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r2, [r2, r4, lsl #3]
	lsl	r4, r4, #3
	tst	r2, r3
	bne	.L12
.L4:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L12:
	mov	r5, r0
	bl	RCC_GPIO_LOCK
	ldr	r1, [r6]
	ldr	r2, [r5, #4]
	add	r4, r1, r4
	ldr	r3, [r4, #4]
	mov	r0, r5
	asr	r1, r2, r3
	tst	r1, #1
	mov	r1, #1
	orreq	r2, r2, r1, lsl r3
	bicne	r2, r2, r1, lsl r3
	ldr	r3, .L13+12
	str	r2, [r5, #4]
	ldr	r1, [r3]
	bl	RCC_WRITE
	mov	r0, r5
	bl	RCC_GPIO_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	rcc_pins
	.word	GPIO_PIN_OUTPUT
	.word	EINVAL
	.word	RCC_GPIO_GP_LVL
	.size	rcc_gpio_pin_toggle, .-rcc_gpio_pin_toggle
	.comm	rcc_pins,4,4
	.comm	RCC_GPIO_GP_LVL,4,4
	.comm	GPIO_PIN_OUTPUT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
