	.file	"extr_scheduler.c_h2o_http2_scheduler_rebind.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	h2o_http2_scheduler_rebind
	.type	h2o_http2_scheduler_rebind, @function
h2o_http2_scheduler_rebind:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	lea	r13, 8[rbp]
	call	h2o_http2_scheduler_is_open@PLT
	mov	edi, eax
	call	assert@PLT
	xor	edi, edi
	cmp	r13, r12
	setne	dil
	call	assert@PLT
	xor	edi, edi
	test	ebx, ebx
	setg	dil
	call	assert@PLT
	xor	edi, edi
	cmp	ebx, 257
	setle	dil
	call	assert@PLT
	cmp	QWORD PTR 8[rbp], r12
	je	.L15
.L2:
	mov	DWORD PTR 0[rbp], ebx
	lea	rdi, 16[rbp]
	call	h2o_linklist_is_empty@PLT
	test	eax, eax
	jne	.L6
	mov	rax, r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	r13, rax
	je	.L16
.L5:
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	do_rebind@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	cmp	DWORD PTR 0[rbp], ebx
	jne	.L2
	test	r14d, r14d
	jne	.L2
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rbp]
	xor	edx, edx
	mov	rdi, r12
	call	do_rebind@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	h2o_http2_scheduler_rebind, .-h2o_http2_scheduler_rebind
	.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_scheduler.c_h2o_http2_scheduler_rebind.c"
	.text
	.align	2
	.global	h2o_http2_scheduler_rebind
	.syntax unified
	.arm
	.fpu softvfp
	.type	h2o_http2_scheduler_rebind, %function
h2o_http2_scheduler_rebind:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r2
	mov	r4, r0
	mov	r8, r3
	add	r7, r0, #4
	bl	h2o_http2_scheduler_is_open
	bl	assert
	subs	r0, r7, r5
	movne	r0, #1
	bl	assert
	cmp	r6, #0
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	ldr	r0, .L13
	cmp	r6, r0
	movgt	r0, #0
	movle	r0, #1
	bl	assert
	ldr	r3, [r4, #4]
	cmp	r3, r5
	beq	.L11
.L2:
	mov	r0, r4
	str	r6, [r0], #8
	bl	h2o_linklist_is_empty
	cmp	r0, #0
	bne	.L5
	mov	r2, r5
	b	.L4
.L6:
	cmp	r7, r2
	beq	.L12
.L4:
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L6
.L5:
	mov	r2, r8
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	do_rebind
.L11:
	ldr	r3, [r4]
	cmp	r3, r6
	cmpeq	r8, #0
	bne	.L2
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r4, #4]
	bl	do_rebind
	b	.L5
.L14:
	.align	2
.L13:
	.word	257
	.size	h2o_http2_scheduler_rebind, .-h2o_http2_scheduler_rebind
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
