	.file	"extr_af_llc.c_llc_ui_wait_for_disc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	llc_ui_wait_for_disc, @function
llc_ui_wait_for_disc:
.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
	lea	rbp, wait[rip]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR wait[rip]
	mov	QWORD PTR 8[rsp], rsi
	lea	r12, 8[rsp]
	call	DEFINE_WAIT@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR current[rip]
	mov	r13d, DWORD PTR ERESTARTSYS[rip]
	call	signal_pending@PLT
	test	rax, rax
	jne	.L8
	cmp	QWORD PTR 8[rsp], 0
	je	.L10
.L4:
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR TASK_INTERRUPTIBLE[rip]
	mov	rsi, rbp
	call	prepare_to_wait@PLT
	xor	edx, edx
	mov	rsi, r12
	mov	rdi, rbx
	mov	rax, QWORD PTR TCP_CLOSE[rip]
	cmp	QWORD PTR [rbx], rax
	sete	dl
	call	sk_wait_event@PLT
	test	rax, rax
	je	.L11
	xor	r13d, r13d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r13d, DWORD PTR EAGAIN[rip]
.L8:
	neg	r13d
.L2:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, wait[rip]
	call	finish_wait@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	.cfi_endproc
.LFE0:
	.size	llc_ui_wait_for_disc, .-llc_ui_wait_for_disc
	.comm	wait,4,4
	.comm	current,4,4
	.comm	TCP_CLOSE,8,8
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	ERESTARTSYS,4,4
	.comm	EAGAIN,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_af_llc.c_llc_ui_wait_for_disc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	llc_ui_wait_for_disc, %function
llc_ui_wait_for_disc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, .L12
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r0, [r5]
	str	r1, [sp, #4]
	ldr	r7, .L12+4
	bl	DEFINE_WAIT
	ldr	r6, .L12+8
	ldr	r9, .L12+12
	ldr	r8, .L12+16
	b	.L4
.L11:
	ldr	r0, [r8]
	ldr	r10, [r9]
	bl	signal_pending
	cmp	r0, #0
	bne	.L8
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L10
.L4:
	mov	r1, r5
	ldr	r2, [r7]
	ldr	r0, [r4, #4]
	bl	prepare_to_wait
	ldr	r2, [r4]
	ldr	r3, [r6]
	mov	r0, r4
	sub	r2, r2, r3
	clz	r2, r2
	add	r1, sp, #4
	lsr	r2, r2, #5
	bl	sk_wait_event
	cmp	r0, #0
	beq	.L11
	mov	r10, #0
	b	.L2
.L10:
	ldr	r3, .L12+20
	ldr	r10, [r3]
.L8:
	rsb	r10, r10, #0
.L2:
	ldr	r0, [r4, #4]
	ldr	r1, .L12
	bl	finish_wait
	mov	r0, r10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	wait
	.word	TASK_INTERRUPTIBLE
	.word	TCP_CLOSE
	.word	ERESTARTSYS
	.word	current
	.word	EAGAIN
	.size	llc_ui_wait_for_disc, .-llc_ui_wait_for_disc
	.comm	wait,4,4
	.comm	current,4,4
	.comm	TCP_CLOSE,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	ERESTARTSYS,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
