	.file	"extr_hci_nokia.c_nokia_dequeue.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nokia_dequeue, @function
nokia_dequeue:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	lea	rdi, 20[rbx]
	mov	r13, QWORD PTR 8[rbx]
	call	skb_dequeue@PLT
	mov	r12, rax
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	je	.L1
	xor	ebp, ebp
	test	r12, r12
	setne	bpl
	cmp	DWORD PTR [rbx], ebp
	je	.L1
	test	r12, r12
	je	.L3
	mov	rdi, r13
	call	pm_runtime_get_sync@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	esi, 1
	call	gpiod_set_value_cansleep@PLT
	mov	DWORD PTR [rbx], ebp
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	xor	esi, esi
	call	serdev_device_wait_until_sent@PLT
	mov	edi, DWORD PTR 4[rbx]
	xor	esi, esi
	call	gpiod_set_value_cansleep@PLT
	mov	rdi, r13
	call	pm_runtime_put@PLT
	mov	DWORD PTR [rbx], ebp
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nokia_dequeue, .-nokia_dequeue
	.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_hci_nokia.c_nokia_dequeue.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nokia_dequeue, %function
nokia_dequeue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r0]
	add	r0, r4, #16
	ldr	r7, [r4, #8]
	bl	skb_dequeue
	ldr	r3, [r4, #12]
	mov	r5, r0
	cmp	r3, #0
	beq	.L1
	subs	r6, r0, #0
	movne	r6, #1
	ldr	r3, [r4]
	cmp	r3, r6
	beq	.L1
	cmp	r0, #0
	beq	.L3
	mov	r0, r7
	bl	pm_runtime_get_sync
	mov	r1, #1
	ldr	r0, [r4, #4]
	bl	gpiod_set_value_cansleep
.L4:
	str	r6, [r4]
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r1, r0
	ldr	r0, [r4, #8]
	bl	serdev_device_wait_until_sent
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	gpiod_set_value_cansleep
	mov	r0, r7
	bl	pm_runtime_put
	b	.L4
	.size	nokia_dequeue, .-nokia_dequeue
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
