	.file	"extr_ngx_connection.c_ngx_configure_listening_sockets.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"setsockopt(SO_RCVBUF, %d) %V failed, ignored"
	.align 8
.LC1:
	.string	"setsockopt(SO_SNDBUF, %d) %V failed, ignored"
	.align 8
.LC2:
	.string	"setsockopt(SO_KEEPALIVE, %d) %V failed, ignored"
	.align 8
.LC3:
	.string	"listen() to %V, backlog %d failed, ignored"
	.text
	.p2align 4
	.globl	ngx_configure_listening_sockets
	.type	ngx_configure_listening_sockets, @function
ngx_configure_listening_sockets:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rbx, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR 8[rdi], 0
	je	.L1
	mov	r12, rdi
	xor	ebp, ebp
	lea	r13, 4[rsp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	QWORD PTR 96[rbx], 0
	jne	.L20
.L13:
	add	rbp, 1
	add	rbx, 120
	cmp	QWORD PTR 8[r12], rbp
	jbe	.L1
.L15:
	mov	rax, QWORD PTR 104[rbx]
	cmp	DWORD PTR [rbx], -1
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 112[rbx], eax
	je	.L4
	mov	edi, DWORD PTR 52[rbx]
	mov	edx, DWORD PTR SO_RCVBUF[rip]
	mov	r8d, 4
	mov	rcx, rbx
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	call	setsockopt@PLT
	cmp	eax, -1
	je	.L21
.L4:
	cmp	DWORD PTR 4[rbx], -1
	je	.L7
	mov	edi, DWORD PTR 52[rbx]
	mov	edx, DWORD PTR SO_SNDBUF[rip]
	lea	rcx, 4[rbx]
	mov	r8d, 4
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	call	setsockopt@PLT
	cmp	eax, -1
	je	.L22
.L7:
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	je	.L10
	cmp	eax, 1
	mov	edx, DWORD PTR SO_KEEPALIVE[rip]
	mov	esi, DWORD PTR SOL_SOCKET[rip]
	mov	rcx, r13
	sete	al
	mov	r8d, 4
	movzx	eax, al
	mov	DWORD PTR 4[rsp], eax
	mov	edi, DWORD PTR 52[rbx]
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L10
	mov	r8d, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR [r12]
	xor	eax, eax
	lea	r9, 48[rbx]
	mov	edx, DWORD PTR ngx_socket_errno[rip]
	mov	edi, DWORD PTR NGX_LOG_ALERT[rip]
	lea	rcx, .LC2[rip]
	call	ngx_log_error@PLT
	cmp	QWORD PTR 96[rbx], 0
	je	.L13
	.p2align 4,,10
	.p2align 3
.L20:
	mov	esi, DWORD PTR 88[rbx]
	mov	edi, DWORD PTR 52[rbx]
	call	listen@PLT
	cmp	eax, -1
	jne	.L13
	mov	r9d, DWORD PTR 88[rbx]
	mov	edx, DWORD PTR ngx_socket_errno[rip]
	lea	r8d, 48[rbx]
	xor	eax, eax
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR NGX_LOG_ALERT[rip]
	add	rbp, 1
	add	rbx, 120
	lea	rcx, .LC3[rip]
	call	ngx_log_error@PLT
	cmp	QWORD PTR 8[r12], rbp
	ja	.L15
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 24
	.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
.L22:
	.cfi_restore_state
	mov	r8d, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR ngx_socket_errno[rip]
	lea	r9, 48[rbx]
	xor	eax, eax
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR NGX_LOG_ALERT[rip]
	lea	rcx, .LC1[rip]
	call	ngx_log_error@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L21:
	mov	r8d, DWORD PTR [rbx]
	mov	edx, DWORD PTR ngx_socket_errno[rip]
	lea	r9, 48[rbx]
	xor	eax, eax
	mov	esi, DWORD PTR [r12]
	mov	edi, DWORD PTR NGX_LOG_ALERT[rip]
	lea	rcx, .LC0[rip]
	call	ngx_log_error@PLT
	jmp	.L4
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ngx_configure_listening_sockets, .-ngx_configure_listening_sockets
	.comm	ngx_socket_errno,4,4
	.comm	TCP_NODELAY,4,4
	.comm	TCP_KEEPINTVL,4,4
	.comm	TCP_KEEPIDLE,4,4
	.comm	TCP_KEEPCNT,4,4
	.comm	TCP_FASTOPEN,4,4
	.comm	TCP_DEFER_ACCEPT,4,4
	.comm	SO_SNDBUF,4,4
	.comm	SO_SETFIB,4,4
	.comm	SO_RCVBUF,4,4
	.comm	SO_KEEPALIVE,4,4
	.comm	SO_ACCEPTFILTER,4,4
	.comm	SOL_SOCKET,4,4
	.comm	SOCK_DGRAM,8,8
	.comm	NGX_LOG_ALERT,4,4
	.comm	NGX_KEEPALIVE_FACTOR,4,4
	.comm	IP_RECVDSTADDR,4,4
	.comm	IP_PKTINFO,4,4
	.comm	IPV6_RECVPKTINFO,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	IPPROTO_IPV6,4,4
	.comm	IPPROTO_IP,4,4
	.comm	AF_INET6,8,8
	.comm	AF_INET,8,8
	.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_connection.c_ngx_configure_listening_sockets.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"setsockopt(SO_RCVBUF, %d) %V failed, ignored\000"
	.align	2
.LC1:
	.ascii	"setsockopt(SO_SNDBUF, %d) %V failed, ignored\000"
	.align	2
.LC2:
	.ascii	"setsockopt(SO_KEEPALIVE, %d) %V failed, ignored\000"
	.align	2
.LC3:
	.ascii	"listen() to %V, backlog %d failed, ignored\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ngx_configure_listening_sockets
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_configure_listening_sockets, %function
ngx_configure_listening_sockets:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	ldr	r2, .L27
	sub	sp, sp, #20
	cmp	r3, #0
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	ldr	r4, [r0, #8]
	beq	.L1
	mov	r6, r0
	mov	r5, #0
	ldr	r9, .L27+4
	ldr	r7, .L27+8
	ldr	fp, .L27+12
	ldr	r10, .L27+16
	ldr	r8, .L27+20
	add	r4, r4, #44
	b	.L15
.L10:
	ldr	r3, [r4, #28]
	cmp	r3, #0
	bne	.L23
.L13:
	ldr	r3, [r6, #4]
	add	r5, r5, #1
	cmp	r3, r5
	add	r4, r4, #84
	bls	.L1
.L15:
	ldr	r3, [r4, #32]
	ldr	r2, [r4, #-44]
	ldr	r3, [r3]
	cmn	r2, #1
	str	r3, [r4, #36]
	beq	.L4
	mov	r2, #4
	ldr	r0, [r4, #4]
	ldr	r1, [r7]
	str	r2, [sp]
	sub	r3, r4, #44
	ldr	r2, [r9]
	bl	setsockopt
	cmn	r0, #1
	beq	.L24
.L4:
	ldr	r3, [r4, #-40]
	cmn	r3, #1
	beq	.L7
	mov	r2, #4
	ldr	r0, [r4, #4]
	ldr	r1, [r7]
	str	r2, [sp]
	sub	r3, r4, #40
	ldr	r2, [r8]
	bl	setsockopt
	cmn	r0, #1
	beq	.L25
.L7:
	ldr	r3, [r4, #-36]
	cmp	r3, #0
	beq	.L10
	sub	r3, r3, #1
	clz	r3, r3
	mov	r2, #4
	lsr	r3, r3, #5
	str	r3, [sp, #8]
	ldr	r3, .L27+24
	ldr	r0, [r4, #4]
	str	r2, [sp]
	ldr	r2, [r3]
	ldr	r1, [r7]
	add	r3, sp, #8
	bl	setsockopt
	cmn	r0, #1
	bne	.L10
	ldr	r3, [sp, #8]
	ldr	r2, [fp]
	stm	sp, {r3, r4}
	ldr	r0, [r10]
	ldr	r3, .L27+28
	ldr	r1, [r6]
	bl	ngx_log_error
	ldr	r3, [r4, #28]
	cmp	r3, #0
	beq	.L13
.L23:
	ldr	r1, [r4, #24]
	ldr	r0, [r4, #4]
	bl	listen
	cmn	r0, #1
	bne	.L13
	ldr	r2, [r4, #24]
	str	r4, [sp]
	str	r2, [sp, #4]
	ldr	r3, .L27+32
	ldr	r2, [fp]
	ldr	r1, [r6]
	ldr	r0, [r10]
	bl	ngx_log_error
	b	.L13
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	str	r4, [sp, #4]
	ldr	r2, [r4, #-40]
	ldr	r3, .L27+36
	str	r2, [sp]
	ldr	r1, [r6]
	ldr	r2, [fp]
	ldr	r0, [r10]
	bl	ngx_log_error
	b	.L7
.L24:
	str	r4, [sp, #4]
	ldr	r2, [r4, #-44]
	ldr	r3, .L27+40
	str	r2, [sp]
	ldr	r1, [r6]
	ldr	r2, [fp]
	ldr	r0, [r10]
	bl	ngx_log_error
	b	.L4
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC4
	.word	SO_RCVBUF
	.word	SOL_SOCKET
	.word	ngx_socket_errno
	.word	NGX_LOG_ALERT
	.word	SO_SNDBUF
	.word	SO_KEEPALIVE
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.size	ngx_configure_listening_sockets, .-ngx_configure_listening_sockets
	.comm	ngx_socket_errno,4,4
	.comm	TCP_NODELAY,4,4
	.comm	TCP_KEEPINTVL,4,4
	.comm	TCP_KEEPIDLE,4,4
	.comm	TCP_KEEPCNT,4,4
	.comm	TCP_FASTOPEN,4,4
	.comm	TCP_DEFER_ACCEPT,4,4
	.comm	SO_SNDBUF,4,4
	.comm	SO_SETFIB,4,4
	.comm	SO_RCVBUF,4,4
	.comm	SO_KEEPALIVE,4,4
	.comm	SO_ACCEPTFILTER,4,4
	.comm	SOL_SOCKET,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	NGX_LOG_ALERT,4,4
	.comm	NGX_KEEPALIVE_FACTOR,4,4
	.comm	IP_RECVDSTADDR,4,4
	.comm	IP_PKTINFO,4,4
	.comm	IPV6_RECVPKTINFO,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	IPPROTO_IPV6,4,4
	.comm	IPPROTO_IP,4,4
	.comm	AF_INET6,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
