	.file	"extr_super.c_sb_wait_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sb_wait_write
	.type	sb_wait_write, @function
sb_wait_write:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	call	sb_has_new_freeze@PLT
	xor	edi, edi
	test	eax, eax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movsx	rsi, ebx
	mov	rdi, QWORD PTR 16[rbp]
	mov	ecx, DWORD PTR _THIS_IP_[rip]
	xor	edx, edx
	lea	r12, -4[0+rsi*4]
	xor	esi, esi
	lea	rbx, wait[rip]
	add	rdi, r12
	call	rwsem_acquire@PLT
	mov	rdi, QWORD PTR 16[rbp]
	mov	edx, DWORD PTR _THIS_IP_[rip]
	mov	esi, 1
	add	rdi, r12
	call	rwsem_release@PLT
.L4:
	mov	edi, DWORD PTR wait[rip]
	call	DEFINE_WAIT@PLT
	mov	edx, DWORD PTR TASK_UNINTERRUPTIBLE[rip]
	mov	rdi, rbp
	mov	rsi, rbx
	call	prepare_to_wait@PLT
	mov	rdi, QWORD PTR 8[rbp]
	add	rdi, r12
	call	percpu_counter_sum@PLT
	test	rax, rax
	jne	.L8
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	lea	rsi, wait[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	finish_wait@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	eax, eax
	call	schedule@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	finish_wait@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	sb_wait_write, .-sb_wait_write
	.comm	wait,4,4
	.comm	_THIS_IP_,4,4
	.comm	TASK_UNINTERRUPTIBLE,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_super.c_sb_wait_write.c"
	.text
	.align	2
	.global	sb_wait_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	sb_wait_write, %function
sb_wait_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	bl	sb_has_new_freeze
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	subs	r2, r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r6, .L8
	ldr	r0, [r4, #8]
	sub	r5, r5, #-1073741823
	mov	r1, r2
	ldr	r3, [r6]
	add	r0, r0, r5, lsl #2
	bl	rwsem_acquire
	ldr	r0, [r4, #8]
	ldr	r7, .L8+4
	lsl	r5, r5, #2
	ldr	r2, [r6]
	mov	r1, #1
	add	r0, r0, r5
	bl	rwsem_release
	mov	r6, r7
	ldr	r8, .L8+8
.L4:
	ldr	r0, [r7]
	bl	DEFINE_WAIT
	mov	r1, r6
	ldr	r2, [r8]
	mov	r0, r4
	bl	prepare_to_wait
	ldr	r0, [r4, #4]
	add	r0, r0, r5
	bl	percpu_counter_sum
	cmp	r0, #0
	bne	.L7
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L8+4
	b	finish_wait
.L7:
	bl	schedule
	mov	r1, r6
	mov	r0, r4
	bl	finish_wait
	b	.L4
.L9:
	.align	2
.L8:
	.word	_THIS_IP_
	.word	wait
	.word	TASK_UNINTERRUPTIBLE
	.size	sb_wait_write, .-sb_wait_write
	.comm	wait,4,4
	.comm	_THIS_IP_,4,4
	.comm	TASK_UNINTERRUPTIBLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
