	.file	"extr_ngx_http_lua_api.c_ngx_http_lua_add_package_preload.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"package"
.LC1:
	.string	"preload"
	.text
	.p2align 4
	.globl	ngx_http_lua_add_package_preload
	.type	ngx_http_lua_add_package_preload, @function
ngx_http_lua_add_package_preload:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	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
	mov	esi, DWORD PTR ngx_http_lua_module[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	ngx_http_conf_get_module_main_conf@PLT
	mov	r13, QWORD PTR 8[rax]
	mov	rbx, rax
	test	r13, r13
	je	.L2
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	lua_getglobal@PLT
	lea	rdx, .LC1[rip]
	mov	esi, -1
	mov	rdi, r13
	call	lua_getfield@PLT
	mov	esi, ebp
	mov	rdi, r13
	call	lua_pushcfunction@PLT
	mov	esi, -2
	mov	rdi, r13
	mov	rdx, r12
	call	lua_setfield@PLT
	mov	esi, 2
	mov	rdi, r13
	call	lua_pop@PLT
.L2:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L12
.L3:
	call	ngx_array_push@PLT
	test	rax, rax
	je	.L10
	mov	QWORD PTR 8[rax], r12
	mov	DWORD PTR [rax], ebp
	mov	eax, DWORD PTR NGX_OK[rip]
	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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR [r14]
	mov	edx, 16
	mov	esi, 4
	call	ngx_array_create@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	test	rax, rax
	jne	.L3
.L10:
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR NGX_ERROR[rip]
	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
	.cfi_endproc
.LFE0:
	.size	ngx_http_lua_add_package_preload, .-ngx_http_lua_add_package_preload
	.comm	ngx_http_lua_module,4,4
	.comm	NGX_OK,4,4
	.comm	NGX_ERROR,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_api.c_ngx_http_lua_add_package_preload.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"package\000"
	.align	2
.LC1:
	.ascii	"preload\000"
	.text
	.align	2
	.global	ngx_http_lua_add_package_preload
	.syntax unified
	.arm
	.fpu softvfp
	.type	ngx_http_lua_add_package_preload, %function
ngx_http_lua_add_package_preload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	ldr	r1, [r3]
	mov	r6, r2
	mov	r8, r0
	bl	ngx_http_conf_get_module_main_conf
	ldr	r5, [r0, #4]
	mov	r4, r0
	cmp	r5, #0
	beq	.L2
	ldr	r1, .L13+4
	mov	r0, r5
	bl	lua_getglobal
	ldr	r2, .L13+8
	mvn	r1, #0
	mov	r0, r5
	bl	lua_getfield
	mov	r1, r6
	mov	r0, r5
	bl	lua_pushcfunction
	mvn	r1, #1
	mov	r2, r7
	mov	r0, r5
	bl	lua_setfield
	mov	r0, r5
	mov	r1, #2
	bl	lua_pop
.L2:
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L12
.L3:
	bl	ngx_array_push
	subs	r3, r0, #0
	beq	.L10
	ldr	r2, .L13+12
	str	r7, [r3, #4]
	ldr	r0, [r2]
	str	r6, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	mov	r2, #8
	mov	r1, #4
	ldr	r0, [r8]
	bl	ngx_array_create
	cmp	r0, #0
	str	r0, [r4]
	bne	.L3
.L10:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	ngx_http_lua_module
	.word	.LC0
	.word	.LC1
	.word	NGX_OK
	.word	NGX_ERROR
	.size	ngx_http_lua_add_package_preload, .-ngx_http_lua_add_package_preload
	.comm	ngx_http_lua_module,4,4
	.comm	NGX_OK,4,4
	.comm	NGX_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
