	.file	"extr_ngx_http_upstream_round_robin.c_ngx_http_upstream_free_round_robin_peer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"free rr peer %ui %ui"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"upstream server temporarily disabled"
	.section	.rodata.str1.1
.LC2:
	.string	"free rr peer failed: %p %i"
	.text
	.p2align 4
	.globl	ngx_http_upstream_free_round_robin_peer
	.type	ngx_http_upstream_free_round_robin_peer, @function
ngx_http_upstream_free_round_robin_peer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r9d, edx
	lea	rcx, .LC0[rip]
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 8[rdi]
	mov	r8, QWORD PTR [rdi]
	mov	edi, DWORD PTR NGX_LOG_DEBUG_HTTP[rip]
	call	ngx_log_debug2@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rbp, QWORD PTR 8[rbx]
	call	ngx_http_upstream_rr_peers_rlock@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, rbp
	call	ngx_http_upstream_rr_peer_lock@PLT
	mov	rdi, QWORD PTR [rbx]
	cmp	QWORD PTR [rdi], 0
	jne	.L16
	test	DWORD PTR NGX_PEER_FAILED[rip], r13d
	jne	.L17
	mov	rax, QWORD PTR 16[rbp]
	cmp	QWORD PTR 8[rbp], rax
	jl	.L18
.L8:
	sub	DWORD PTR 36[rbp], 1
	mov	rsi, rbp
	call	ngx_http_upstream_rr_peer_unlock@PLT
	mov	rdi, QWORD PTR [rbx]
	call	ngx_http_upstream_rr_peers_unlock@PLT
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L1
	sub	rax, 40
	mov	QWORD PTR [r12], rax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L18:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	xor	eax, eax
	call	ngx_time@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR 24[rbp]
	mov	QWORD PTR 8[rbp], rax
	add	ecx, 1
	mov	QWORD PTR 16[rbp], rax
	mov	DWORD PTR 0[rbp], ecx
	test	esi, esi
	jne	.L5
.L13:
	mov	r9d, DWORD PTR 28[rbp]
	mov	r10d, DWORD PTR 8[r12]
.L6:
	mov	edi, DWORD PTR NGX_LOG_DEBUG_HTTP[rip]
	mov	r8, rbp
	xor	edx, edx
	mov	esi, r10d
	lea	rcx, .LC2[rip]
	call	ngx_log_debug2@PLT
	mov	eax, DWORD PTR 28[rbp]
	test	eax, eax
	jns	.L14
	mov	DWORD PTR 28[rbp], 0
.L14:
	mov	rdi, QWORD PTR [rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L16:
	sub	DWORD PTR 36[rbp], 1
	mov	rsi, rbp
	call	ngx_http_upstream_rr_peer_unlock@PLT
	mov	rdi, QWORD PTR [rbx]
	call	ngx_http_upstream_rr_peers_unlock@PLT
	mov	QWORD PTR [r12], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 32[rbp]
	mov	r9d, DWORD PTR 28[rbp]
	mov	r10d, DWORD PTR 8[r12]
	cdq
	idiv	esi
	sub	r9d, eax
	mov	DWORD PTR 28[rbp], r9d
	cmp	ecx, esi
	jl	.L6
	mov	edi, DWORD PTR NGX_LOG_WARN[rip]
	lea	rcx, .LC1[rip]
	xor	edx, edx
	mov	esi, r10d
	call	ngx_log_error@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	ngx_http_upstream_free_round_robin_peer, .-ngx_http_upstream_free_round_robin_peer
	.comm	NGX_PEER_FAILED,4,4
	.comm	NGX_LOG_WARN,4,4
	.comm	NGX_LOG_DEBUG_HTTP,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_ngx_http_upstream_round_robin.c_ngx_http_upstream_free_round_robin_peer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"free rr peer %ui %ui\000"
	.global	__aeabi_idiv
	.align	2
.LC1:
	.ascii	"upstream server temporarily disabled\000"
	.align	2
.LC2:
	.ascii	"free rr peer failed: %p %i\000"
	.text
	.align	2
	.global	ngx_http_upstream_free_round_robin_peer
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_http_upstream_free_round_robin_peer, %function
ngx_http_upstream_free_round_robin_peer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	r3, [r0]
	sub	sp, sp, #8
	ldr	r8, .L17
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r1, [r0, #4]
	ldr	r3, .L17+4
	mov	r6, r0
	mov	r7, r2
	ldr	r0, [r8]
	mov	r2, #0
	bl	ngx_log_debug2
	ldm	r5, {r0, r4}
	bl	ngx_http_upstream_rr_peers_rlock
	mov	r1, r4
	ldr	r0, [r5]
	bl	ngx_http_upstream_rr_peer_lock
	ldr	r0, [r5]
	ldr	r9, [r0]
	cmp	r9, #0
	bne	.L15
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ands	r7, r7, r3
	bne	.L16
	ldmib	r4, {r2, r3}
	cmp	r2, r3
	strlt	r7, [r4]
.L8:
	ldr	r3, [r4, #24]
	mov	r1, r4
	sub	r3, r3, #1
	str	r3, [r4, #24]
	bl	ngx_http_upstream_rr_peer_unlock
	ldr	r0, [r5]
	bl	ngx_http_upstream_rr_peers_unlock
	ldr	r3, [r6]
	cmp	r3, #0
	subne	r3, r3, #28
	strne	r3, [r6]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	bl	ngx_time
	ldr	r7, [r4]
	ldr	r10, [r4, #12]
	add	r7, r7, #1
	cmp	r10, #0
	str	r0, [r4, #4]
	str	r0, [r4, #8]
	str	r7, [r4]
	bne	.L5
.L13:
	ldr	r0, [r4, #16]
	ldr	r1, [r6, #4]
.L6:
	ldr	r3, .L17+12
	str	r0, [sp, #4]
	mov	r2, #0
	ldr	r0, [r8]
	str	r4, [sp]
	bl	ngx_log_debug2
	ldr	r3, [r4, #16]
	cmp	r3, #0
	movlt	r3, #0
	ldrlt	r0, [r5]
	ldrge	r0, [r5]
	strlt	r3, [r4, #16]
	b	.L8
.L15:
	ldr	r3, [r4, #24]
	mov	r1, r4
	sub	r3, r3, #1
	str	r3, [r4, #24]
	bl	ngx_http_upstream_rr_peer_unlock
	ldr	r0, [r5]
	bl	ngx_http_upstream_rr_peers_unlock
	mov	r3, #0
	str	r3, [r6]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r1, r10
	ldr	r0, [r4, #20]
	bl	__aeabi_idiv
	ldr	r3, [r4, #16]
	cmp	r7, r10
	sub	r0, r3, r0
	ldr	r1, [r6, #4]
	str	r0, [r4, #16]
	blt	.L6
	ldr	r3, .L17+16
	mov	r2, r9
	ldr	r0, [r3]
	ldr	r3, .L17+20
	bl	ngx_log_error
	b	.L13
.L18:
	.align	2
.L17:
	.word	NGX_LOG_DEBUG_HTTP
	.word	.LC0
	.word	NGX_PEER_FAILED
	.word	.LC2
	.word	NGX_LOG_WARN
	.word	.LC1
	.size	ngx_http_upstream_free_round_robin_peer, .-ngx_http_upstream_free_round_robin_peer
	.comm	NGX_PEER_FAILED,4,4
	.comm	NGX_LOG_WARN,4,4
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
