	.file	"extr_lwan-mod-rewrite.c_rewrite_parse_conf_pattern.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"redirect_to"
.LC1:
	.string	"rewrite_as"
.LC2:
	.string	"expand_with_lua"
.LC3:
	.string	"Unexpected key: %s"
.LC4:
	.string	"Unexpected section: %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"`redirect to` and `rewrite as` are mutually exclusive"
	.align 8
.LC6:
	.string	"either `redirect to` or `rewrite as` are required"
	.align 8
.LC7:
	.string	"Lwan has been built without Lua. `expand_with_lua` is not available"
	.section	.rodata.str1.1
.LC8:
	.string	"Could not copy pattern"
	.text
	.p2align 4
	.type	rewrite_parse_conf_pattern, @function
rewrite_parse_conf_pattern:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	pattern_array_append0@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR 8[rbp]
	mov	rbx, rax
	call	strdup@PLT
	mov	QWORD PTR [rbx], rax
	mov	rbp, rax
	test	rax, rax
	je	.L20
	mov	DWORD PTR 12[rsp], 0
	xor	r13d, r13d
	xor	ebp, ebp
	lea	r15, .LC4[rip]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	call	config_read_line@PLT
	mov	r14, rax
	test	rax, rax
	je	.L31
	mov	eax, DWORD PTR [r14]
	cmp	eax, 129
	je	.L5
	cmp	eax, 130
	je	.L6
	cmp	eax, 128
	jne	.L8
	test	rbp, rbp
	je	.L14
	test	r13, r13
	jne	.L33
	test	rbp, rbp
	je	.L14
	mov	eax, DWORD PTR PATTERN_HANDLE_REDIRECT[rip]
	or	DWORD PTR 16[rbx], eax
	mov	QWORD PTR 8[rbx], rbp
.L15:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L34
	mov	eax, DWORD PTR PATTERN_EXPAND_LWAN[rip]
	or	DWORD PTR 16[rbx], eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	mov	rdi, r12
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	config_error@PLT
	mov	rdi, QWORD PTR [rbx]
.L3:
	call	free@PLT
	mov	rdi, rbp
	call	free@PLT
	mov	rdi, r13
	call	free@PLT
.L2:
	mov	rdi, r12
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	config_error@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r14]
	lea	rsi, .LC0[rip]
	call	streq@PLT
	test	eax, eax
	je	.L9
	mov	rdi, rbp
	call	free@PLT
	mov	edi, DWORD PTR 8[r14]
	call	strdup@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, QWORD PTR [rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, DWORD PTR 4[r14]
	mov	rsi, r15
	mov	rdi, r12
	xor	eax, eax
	call	config_error@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 4[r14]
	lea	rsi, .LC1[rip]
	call	streq@PLT
	test	eax, eax
	jne	.L35
	mov	edi, DWORD PTR 4[r14]
	lea	rsi, .LC2[rip]
	call	streq@PLT
	test	eax, eax
	je	.L12
	mov	edi, DWORD PTR 8[r14]
	xor	esi, esi
	call	parse_bool@PLT
	mov	DWORD PTR 12[rsp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, r13
	call	free@PLT
	mov	edi, DWORD PTR 8[r14]
	call	strdup@PLT
	mov	r13, rax
	test	rax, rax
	jne	.L8
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L20:
	xor	edi, edi
	xor	r13d, r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	test	r13, r13
	je	.L16
	mov	eax, DWORD PTR PATTERN_HANDLE_REWRITE[rip]
	mov	QWORD PTR 8[rbx], r13
	or	DWORD PTR 16[rbx], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L34:
	lea	rsi, .LC7[rip]
	mov	rdi, r12
	xor	eax, eax
	call	config_error@PLT
	jmp	.L31
.L16:
	mov	rdi, r12
	lea	rsi, .LC6[rip]
	xor	eax, eax
	mov	rbp, r13
	call	config_error@PLT
	mov	rdi, QWORD PTR [rbx]
	jmp	.L3
.L12:
	mov	edx, DWORD PTR 4[r14]
	mov	rdi, r12
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	config_error@PLT
	mov	rdi, QWORD PTR [rbx]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	rewrite_parse_conf_pattern, .-rewrite_parse_conf_pattern
	.comm	PATTERN_HANDLE_REWRITE,4,4
	.comm	PATTERN_HANDLE_REDIRECT,4,4
	.comm	PATTERN_EXPAND_LWAN,4,4
	.comm	PATTERN_EXPAND_LUA,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_lwan-mod-rewrite.c_rewrite_parse_conf_pattern.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"redirect_to\000"
	.align	2
.LC1:
	.ascii	"rewrite_as\000"
	.align	2
.LC2:
	.ascii	"expand_with_lua\000"
	.align	2
.LC3:
	.ascii	"Unexpected key: %s\000"
	.align	2
.LC4:
	.ascii	"Unexpected section: %s\000"
	.align	2
.LC5:
	.ascii	"`redirect to` and `rewrite as` are mutually exclusi"
	.ascii	"ve\000"
	.align	2
.LC6:
	.ascii	"either `redirect to` or `rewrite as` are required\000"
	.align	2
.LC7:
	.ascii	"Lwan has been built without Lua. `expand_with_lua` "
	.ascii	"is not available\000"
	.align	2
.LC8:
	.ascii	"Could not copy pattern\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rewrite_parse_conf_pattern, %function
rewrite_parse_conf_pattern:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r5, r1
	mov	r4, r2
	bl	pattern_array_append0
	subs	r6, r0, #0
	beq	.L2
	ldr	r0, [r4, #8]
	bl	strdup
	cmp	r0, #0
	mov	r4, r0
	str	r0, [r6]
	beq	.L20
	mov	r7, #0
	mov	r8, r7
	mov	r4, r7
	ldr	r10, .L31
	ldr	r9, .L31+4
.L8:
	mov	r0, r5
	bl	config_read_line
	subs	fp, r0, #0
	beq	.L26
	ldr	r3, [fp]
	cmp	r3, #129
	beq	.L5
	cmp	r3, #130
	beq	.L6
	cmp	r3, #128
	bne	.L8
	cmp	r4, #0
	cmpne	r8, #0
	bne	.L28
	cmp	r4, #0
	beq	.L14
	ldr	r2, .L31+8
	ldr	r3, [r6, #8]
	ldr	r2, [r2]
	str	r4, [r6, #4]
	orr	r3, r3, r2
	str	r3, [r6, #8]
.L15:
	cmp	r7, #0
	bne	.L29
	mov	r0, #1
	ldr	r2, .L31+12
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r6, #8]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	mov	r0, r5
	ldr	r1, .L31+16
	bl	config_error
	mov	r4, r8
.L26:
	ldr	r0, [r6]
.L3:
	bl	free
	mov	r0, r4
	bl	free
	mov	r0, r8
	bl	free
.L2:
	mov	r0, r5
	ldr	r1, .L31+20
	bl	config_error
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r1, r9
	ldr	r0, [fp, #4]
	bl	streq
	cmp	r0, #0
	beq	.L9
	mov	r0, r4
	bl	free
	ldr	r0, [fp, #8]
	bl	strdup
	subs	r4, r0, #0
	bne	.L8
	b	.L26
.L5:
	mov	r1, r10
	mov	r0, r5
	ldr	r2, [fp, #4]
	bl	config_error
	b	.L8
.L9:
	ldr	r1, .L31+24
	ldr	r0, [fp, #4]
	bl	streq
	subs	r3, r0, #0
	bne	.L30
	ldr	r1, .L31+28
	ldr	r0, [fp, #4]
	str	r3, [sp, #4]
	bl	streq
	cmp	r0, #0
	beq	.L12
	ldr	r3, [sp, #4]
	ldr	r0, [fp, #8]
	mov	r1, r3
	bl	parse_bool
	mov	r7, r0
	b	.L8
.L30:
	mov	r0, r8
	bl	free
	ldr	r0, [fp, #8]
	bl	strdup
	subs	r8, r0, #0
	bne	.L8
	b	.L26
.L20:
	mov	r8, r0
	b	.L3
.L14:
	cmp	r8, #0
	beq	.L16
	ldr	r2, .L31+32
	ldr	r3, [r6, #8]
	ldr	r2, [r2]
	str	r8, [r6, #4]
	orr	r3, r3, r2
	str	r3, [r6, #8]
	b	.L15
.L28:
	mov	r0, r5
	ldr	r1, .L31+36
	bl	config_error
	ldr	r0, [r6]
	b	.L3
.L29:
	mov	r0, r5
	ldr	r1, .L31+40
	bl	config_error
	b	.L26
.L12:
	mov	r0, r5
	ldr	r2, [fp, #4]
	ldr	r1, .L31+44
	bl	config_error
	ldr	r0, [r6]
	b	.L3
.L32:
	.align	2
.L31:
	.word	.LC4
	.word	.LC0
	.word	PATTERN_HANDLE_REDIRECT
	.word	PATTERN_EXPAND_LWAN
	.word	.LC6
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	PATTERN_HANDLE_REWRITE
	.word	.LC5
	.word	.LC7
	.word	.LC3
	.size	rewrite_parse_conf_pattern, .-rewrite_parse_conf_pattern
	.comm	PATTERN_HANDLE_REWRITE,4,4
	.comm	PATTERN_HANDLE_REDIRECT,4,4
	.comm	PATTERN_EXPAND_LWAN,4,4
	.comm	PATTERN_EXPAND_LUA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
