	.file	"extr_ngx_http_lua_socket_tcp.c_ngx_http_lua_socket_tcp_receiveany.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"expecting 2 arguments (including the object), but got %d"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"no request found"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"attempt to receive data on a closed socket: u:%p, c:%p, ft:%d eof:%d"
	.section	.rodata.str1.1
.LC3:
	.string	"closed"
.LC4:
	.string	"bad request"
.LC5:
	.string	"bad max argument"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"lua tcp socket calling receiveany() method to read at most %uz bytes"
	.text
	.p2align 4
	.type	ngx_http_lua_socket_tcp_receiveany, @function
ngx_http_lua_socket_tcp_receiveany:
.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
	mov	rbp, rdi
	call	lua_gettop@PLT
	cmp	eax, 2
	je	.L2
	mov	edx, eax
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	luaL_error@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	ngx_http_lua_get_req@PLT
	lea	rsi, .LC1[rip]
	mov	r13, rax
	test	rax, rax
	je	.L19
	mov	edx, DWORD PTR LUA_TTABLE[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	luaL_checktype@PLT
	mov	edx, DWORD PTR SOCKET_CTX_INDEX[rip]
	mov	esi, 1
	mov	rdi, rbp
	call	lua_rawgeti@PLT
	mov	esi, -1
	mov	rdi, rbp
	call	lua_touserdata@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	cmp	QWORD PTR 48[rax], 0
	je	.L5
	cmp	QWORD PTR 56[rax], 0
	jne	.L5
	cmp	QWORD PTR 24[rax], r13
	je	.L8
	lea	rsi, .LC4[rip]
.L19:
	mov	rdi, rbp
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	luaL_error@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdx, rbp
	mov	rsi, rax
	mov	rdi, r13
	call	ngx_http_lua_socket_check_busy_connecting@PLT
	mov	rsi, r12
	mov	rdi, r13
	mov	rdx, rbp
	call	ngx_http_lua_socket_check_busy_reading@PLT
	mov	esi, 2
	mov	rdi, rbp
	call	lua_isnumber@PLT
	test	eax, eax
	je	.L20
	mov	esi, 2
	mov	rdi, rbp
	call	lua_tointeger@PLT
	mov	r8, rax
	test	rax, rax
	jle	.L20
	mov	eax, DWORD PTR ngx_http_lua_socket_read_any[rip]
	mov	QWORD PTR 8[r12], r8
	xor	edx, edx
	lea	rcx, .LC6[rip]
	mov	QWORD PTR [r12], r8
	mov	edi, DWORD PTR NGX_LOG_DEBUG_HTTP[rip]
	mov	DWORD PTR 16[r12], eax
	mov	rax, QWORD PTR 0[r13]
	mov	esi, DWORD PTR [rax]
	call	ngx_log_debug1@PLT
	mov	rdx, rbp
	mov	rsi, r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	ngx_http_lua_socket_tcp_receive_helper@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR ngx_http_lua_module[rip]
	mov	rdi, r13
	call	ngx_http_get_module_loc_conf@PLT
	cmp	QWORD PTR [rax], 0
	jne	.L22
.L12:
	mov	rdi, rbp
	call	lua_pushnil@PLT
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	call	lua_pushliteral@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 2
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rdx, .LC5[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, 2
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	luaL_argerror@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	eax, DWORD PTR 32[r12]
	mov	edx, DWORD PTR 40[r12]
	mov	r9, QWORD PTR 48[r12]
.L13:
	mov	rsi, QWORD PTR 0[r13]
	push	rax
	.cfi_def_cfa_offset 40
	mov	r8, r12
	lea	rcx, .LC2[rip]
	push	rdx
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR NGX_LOG_ERR[rip]
	xor	edx, edx
	mov	esi, DWORD PTR [rsi]
	call	ngx_log_error@PLT
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR ngx_http_lua_module[rip]
	mov	rdi, r13
	call	ngx_http_get_module_loc_conf@PLT
	xor	r9d, r9d
	xor	edx, edx
	mov	r8, rax
	xor	eax, eax
	cmp	QWORD PTR [r8], 0
	jne	.L13
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	ngx_http_lua_socket_tcp_receiveany, .-ngx_http_lua_socket_tcp_receiveany
	.comm	ngx_http_lua_socket_read_any,4,4
	.comm	ngx_http_lua_module,4,4
	.comm	SOCKET_CTX_INDEX,4,4
	.comm	NGX_LOG_ERR,4,4
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	LUA_TTABLE,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_lua_socket_tcp.c_ngx_http_lua_socket_tcp_receiveany.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"expecting 2 arguments (including the object), but g"
	.ascii	"ot %d\000"
	.align	2
.LC1:
	.ascii	"no request found\000"
	.align	2
.LC2:
	.ascii	"attempt to receive data on a closed socket: u:%p, c"
	.ascii	":%p, ft:%d eof:%d\000"
	.align	2
.LC3:
	.ascii	"closed\000"
	.align	2
.LC4:
	.ascii	"bad request\000"
	.align	2
.LC5:
	.ascii	"bad max argument\000"
	.align	2
.LC6:
	.ascii	"lua tcp socket calling receiveany() method to read "
	.ascii	"at most %uz bytes\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_http_lua_socket_tcp_receiveany, %function
ngx_http_lua_socket_tcp_receiveany:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #20
	mov	r4, r0
	bl	lua_gettop
	cmp	r0, #2
	mov	r5, r0
	beq	.L2
	mov	r2, r0
	mov	r0, r4
	ldr	r1, .L28
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	luaL_error
.L2:
	mov	r0, r4
	bl	ngx_http_lua_get_req
	subs	r7, r0, #0
	beq	.L25
	ldr	r3, .L28+4
	mov	r1, #1
	ldr	r2, [r3]
	mov	r0, r4
	bl	luaL_checktype
	ldr	r3, .L28+8
	mov	r1, #1
	ldr	r2, [r3]
	mov	r0, r4
	bl	lua_rawgeti
	mvn	r1, #0
	mov	r0, r4
	bl	lua_touserdata
	subs	r6, r0, #0
	beq	.L4
	ldr	r3, [r6, #24]
	cmp	r3, #0
	beq	.L5
	ldr	r9, [r6, #28]
	cmp	r9, #0
	bne	.L5
	ldr	r8, [r6, #12]
	cmp	r8, r7
	beq	.L8
	mov	r0, r4
	ldr	r1, .L28+12
.L22:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	luaL_error
.L8:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r8
	bl	ngx_http_lua_socket_check_busy_connecting
	mov	r2, r4
	mov	r1, r6
	mov	r0, r8
	bl	ngx_http_lua_socket_check_busy_reading
	mov	r1, r5
	mov	r0, r4
	bl	lua_isnumber
	cmp	r0, #0
	mov	r1, r5
	mov	r0, r4
	beq	.L23
	bl	lua_tointeger
	cmp	r0, #0
	ble	.L26
	ldr	r2, .L28+16
	ldr	r3, [r8]
	ldr	ip, [r2]
	ldr	r1, [r3]
	ldr	r3, .L28+20
	str	r0, [r6, #4]
	str	r0, [r6]
	str	ip, [r6, #8]
	str	r0, [sp]
	mov	r2, r9
	ldr	r0, [r3]
	ldr	r3, .L28+24
	bl	ngx_log_debug1
	mov	r2, r4
	mov	r1, r6
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	ngx_http_lua_socket_tcp_receive_helper
.L25:
	mov	r0, r4
	ldr	r1, .L28+28
	b	.L22
.L5:
	ldr	r3, .L28+32
	mov	r0, r7
	ldr	r1, [r3]
	bl	ngx_http_get_module_loc_conf
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L27
.L13:
	mov	r0, r4
	bl	lua_pushnil
	mov	r0, r4
	ldr	r1, .L28+36
	bl	lua_pushliteral
	mov	r0, #2
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L26:
	mov	r1, r5
	mov	r0, r4
.L23:
	ldr	r2, .L28+40
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	luaL_argerror
.L27:
	ldr	r2, [r7]
	ldr	r3, .L28+44
	ldr	r1, [r2]
	ldr	r0, [r3]
	ldr	ip, [r6, #24]
	ldr	r2, [r6, #20]
	ldr	r3, [r6, #16]
.L11:
	str	r3, [sp, #12]
	str	r2, [sp, #8]
	stm	sp, {r6, ip}
	mov	r2, #0
	ldr	r3, .L28+48
	bl	ngx_log_error
	b	.L13
.L4:
	ldr	r3, .L28+32
	mov	r0, r7
	ldr	r1, [r3]
	bl	ngx_http_get_module_loc_conf
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L13
	ldr	r2, [r7]
	ldr	r3, .L28+44
	ldr	r1, [r2]
	ldr	r0, [r3]
	mov	ip, r6
	mov	r2, r6
	mov	r3, r6
	b	.L11
.L29:
	.align	2
.L28:
	.word	.LC0
	.word	LUA_TTABLE
	.word	SOCKET_CTX_INDEX
	.word	.LC4
	.word	ngx_http_lua_socket_read_any
	.word	NGX_LOG_DEBUG_HTTP
	.word	.LC6
	.word	.LC1
	.word	ngx_http_lua_module
	.word	.LC3
	.word	.LC5
	.word	NGX_LOG_ERR
	.word	.LC2
	.size	ngx_http_lua_socket_tcp_receiveany, .-ngx_http_lua_socket_tcp_receiveany
	.comm	ngx_http_lua_socket_read_any,4,4
	.comm	ngx_http_lua_module,4,4
	.comm	SOCKET_CTX_INDEX,4,4
	.comm	NGX_LOG_ERR,4,4
	.comm	NGX_LOG_DEBUG_HTTP,4,4
	.comm	LUA_TTABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
