	.file	"extr_queue.c_queueFetchJob.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	queueFetchJob
	.type	queueFetchJob, @function
queueFetchJob:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	call	skiplistLength@PLT
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR [rbx]
	call	skiplistPopHead@PLT
	mov	r12, rax
	mov	eax, DWORD PTR JOB_STATE_ACTIVE[rip]
	mov	DWORD PTR 4[r12], eax
	mov	eax, DWORD PTR JOB_FLAG_DELIVERED[rip]
	or	DWORD PTR [r12], eax
	mov	eax, DWORD PTR server[rip]
	add	DWORD PTR 4[rbx], 1
	mov	DWORD PTR 8[rbx], eax
	test	rbp, rbp
	je	.L1
	mov	edi, DWORD PTR [rbx]
	call	skiplistLength@PLT
	mov	QWORD PTR 0[rbp], rax
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	queueFetchJob, .-queueFetchJob
	.comm	server,4,4
	.comm	JOB_STATE_ACTIVE,4,4
	.comm	JOB_FLAG_DELIVERED,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_queue.c_queueFetchJob.c"
	.text
	.align	2
	.global	queueFetchJob
	.syntax unified
	.arm
	.fpu softvfp
	.type	queueFetchJob, %function
queueFetchJob:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r6, r1
	bl	skiplistLength
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r5]
	bl	skiplistPopHead
	mov	r4, r0
	ldr	r1, .L9
	ldr	r2, .L9+4
	ldr	r3, .L9+8
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, [r2]
	ldr	r2, [r4]
	cmp	r6, #0
	orr	r2, r2, r3
	ldr	r3, [r5, #4]
	str	r0, [r4, #4]
	add	r3, r3, #1
	str	r2, [r4]
	str	r1, [r5, #8]
	str	r3, [r5, #4]
	beq	.L1
	ldr	r0, [r5]
	bl	skiplistLength
	str	r0, [r6]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	JOB_STATE_ACTIVE
	.word	server
	.word	JOB_FLAG_DELIVERED
	.size	queueFetchJob, .-queueFetchJob
	.comm	server,4,4
	.comm	JOB_STATE_ACTIVE,4,4
	.comm	JOB_FLAG_DELIVERED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
