	.file	"extr_configurator.c_on_config_custom_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"argument must be a MAPPING"
.LC1:
	.string	"extension"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"mandatory key `extension` is missing"
	.align 8
.LC3:
	.string	"`extensions` must be a scalar or sequence of scalar"
	.align 8
.LC4:
	.string	"no handler declared for given extension"
	.align 8
.LC5:
	.string	"cannot assign more than one handler for given extension"
	.text
	.p2align 4
	.type	on_config_custom_handler, @function
on_config_custom_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14, rdx
	push	r13
	push	r12
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR YOML_TYPE_MAPPING[rip]
	cmp	QWORD PTR [rdx], rax
	jne	.L27
	lea	rsi, .LC1[rip]
	mov	rdi, rdx
	call	yoml_get@PLT
	mov	r15, rax
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR [rax]
	cmp	rax, 128
	je	.L5
	cmp	rax, 129
	jne	.L6
	mov	edi, 16
	call	alloca@PLT
	mov	rsi, r15
	mov	rdi, r12
	mov	r13, rax
	call	normalize_ext@PLT
	mov	QWORD PTR 0[r13], rax
	test	rax, rax
	je	.L25
	mov	QWORD PTR 8[r13], 0
.L8:
	mov	r15, QWORD PTR -72[rbp]
	mov	rdi, r15
	call	clone_mimemap_if_clean@PLT
	mov	rax, QWORD PTR [r15]
	mov	edx, DWORD PTR 16[r15]
	mov	rsi, r13
	mov	edi, DWORD PTR [rax]
	call	h2o_mimemap_define_dynamic@PLT
	mov	rdi, r15
	mov	esi, 1
	mov	rbx, rax
	call	create_context@PLT
	mov	edx, DWORD PTR H2O_CONFIGURATOR_FLAG_EXTENSION[rip]
	lea	rcx, ignore_commands.1985[rip]
	mov	rsi, r14
	mov	QWORD PTR 8[rax], rbx
	mov	rdi, rax
	mov	r15, rax
	mov	QWORD PTR [rax], 0
	call	h2o_configurator_apply_commands@PLT
	mov	rdi, r15
	mov	r13d, eax
	call	destroy_context@PLT
	test	r13d, r13d
	jne	.L1
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L12
	cmp	eax, 1
	je	.L1
	lea	rdx, .LC5[rip]
	mov	rsi, r14
	mov	rdi, r12
	call	h2o_configurator_errprintf@PLT
.L25:
	mov	r13d, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdx, .LC3[rip]
	mov	rsi, r15
	mov	rdi, r12
	mov	r13d, -1
	call	h2o_configurator_errprintf@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	lea	rsp, -40[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r15]
	lea	edi, 8[0+rax*8]
	call	alloca@PLT
	cmp	QWORD PTR 8[r15], 0
	mov	r13, rax
	je	.L9
	xor	ebx, ebx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L31:
	add	rbx, 1
	cmp	QWORD PTR 8[r15], rbx
	je	.L30
.L11:
	mov	rax, QWORD PTR 16[r15]
	mov	rdi, r12
	mov	rsi, QWORD PTR [rax+rbx*8]
	call	normalize_ext@PLT
	mov	QWORD PTR 0[r13+rbx*8], rax
	test	rax, rax
	jne	.L31
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rax, 0[r13+rbx*8]
.L9:
	mov	QWORD PTR [rax], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdx, .LC4[rip]
	mov	rsi, r14
	mov	rdi, r12
	mov	r13d, -1
	call	h2o_configurator_errprintf@PLT
	jmp	.L1
.L27:
	lea	rdx, .LC0[rip]
	mov	rsi, r14
	mov	r13d, -1
	call	h2o_configurator_errprintf@PLT
	jmp	.L1
.L28:
	lea	rdx, .LC2[rip]
	mov	rsi, r14
	mov	rdi, r12
	mov	r13d, -1
	call	h2o_configurator_errprintf@PLT
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	on_config_custom_handler, .-on_config_custom_handler
	.section	.data.rel.local,"aw"
	.align 16
	.type	ignore_commands.1985, @object
	.size	ignore_commands.1985, 16
ignore_commands.1985:
	.quad	.LC1
	.quad	0
	.comm	YOML_TYPE_MAPPING,8,8
	.comm	H2O_CONFIGURATOR_FLAG_EXTENSION,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_configurator.c_on_config_custom_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"argument must be a MAPPING\000"
	.align	2
.LC1:
	.ascii	"extension\000"
	.align	2
.LC2:
	.ascii	"mandatory key `extension` is missing\000"
	.align	2
.LC3:
	.ascii	"`extensions` must be a scalar or sequence of scalar"
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"no handler declared for given extension\000"
	.align	2
.LC5:
	.ascii	"cannot assign more than one handler for given exten"
	.ascii	"sion\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_config_custom_handler, %function
on_config_custom_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r3, .L32
	mov	r6, r2
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r2, r3
	ldr	r3, .L32+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bne	.L27
	mov	r7, r1
	mov	r5, r0
	ldr	r1, .L32+8
	mov	r0, r6
	bl	yoml_get
	subs	r9, r0, #0
	beq	.L28
	ldr	r3, [r9]
	cmp	r3, #128
	beq	.L5
	cmp	r3, #129
	bne	.L6
	sub	sp, sp, #8
	mov	r1, r9
	mov	r0, r5
	bl	normalize_ext
	cmp	r0, #0
	mov	r8, sp
	movne	r3, #0
	str	r0, [r8]
	strne	r3, [r8, #4]
	beq	.L25
.L8:
	mov	r0, r7
	bl	clone_mimemap_if_clean
	ldr	r3, [r7]
	ldr	r2, [r7, #8]
	mov	r1, r8
	ldr	r0, [r3]
	bl	h2o_mimemap_define_dynamic
	mov	r1, #1
	mov	r8, r0
	mov	r0, r7
	bl	create_context
	mov	r2, #0
	ldr	r3, .L32+12
	mov	r1, r6
	stm	r0, {r2, r8}
	ldr	r2, [r3]
	ldr	r3, .L32+16
	mov	r7, r0
	bl	h2o_configurator_apply_commands
	mov	r4, r0
	mov	r0, r7
	bl	destroy_context
	cmp	r4, #0
	bne	.L1
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L12
	cmp	r3, #1
	beq	.L1
	mov	r1, r6
	mov	r0, r5
	ldr	r2, .L32+20
	bl	h2o_configurator_errprintf
.L25:
	mvn	r4, #0
	b	.L1
.L6:
	mov	r1, r9
	mov	r0, r5
	ldr	r2, .L32+24
	bl	h2o_configurator_errprintf
	mvn	r4, #0
.L1:
	ldr	r3, .L32+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	ldr	r2, [r9, #4]
	lsl	r3, r2, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	sub	sp, sp, r3
	cmp	r2, #0
	mov	r8, sp
	beq	.L15
	mov	r4, #0
	sub	r10, r8, #4
	b	.L11
.L31:
	ldr	r3, [r9, #4]
	add	r4, r4, #1
	cmp	r3, r4
	beq	.L30
.L11:
	ldr	r3, [r9, #8]
	mov	r0, r5
	ldr	r1, [r3, r4, lsl #2]
	bl	normalize_ext
	cmp	r0, #0
	str	r0, [r10, #4]!
	bne	.L31
	b	.L25
.L30:
	add	r4, r8, r4, lsl #2
.L9:
	mov	r3, #0
	str	r3, [r4]
	b	.L8
.L12:
	mov	r1, r6
	mov	r0, r5
	ldr	r2, .L32+28
	bl	h2o_configurator_errprintf
	mvn	r4, #0
	b	.L1
.L27:
	mov	r1, r6
	ldr	r2, .L32+32
	bl	h2o_configurator_errprintf
	mvn	r4, #0
	b	.L1
.L15:
	mov	r4, r8
	b	.L9
.L28:
	mov	r1, r6
	mov	r0, r5
	ldr	r2, .L32+36
	bl	h2o_configurator_errprintf
	mvn	r4, #0
	b	.L1
.L29:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	YOML_TYPE_MAPPING
	.word	.LC6
	.word	.LC1
	.word	H2O_CONFIGURATOR_FLAG_EXTENSION
	.word	.LANCHOR0
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.word	.LC0
	.word	.LC2
	.size	on_config_custom_handler, .-on_config_custom_handler
	.comm	YOML_TYPE_MAPPING,4,4
	.comm	H2O_CONFIGURATOR_FLAG_EXTENSION,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	ignore_commands.4269, %object
	.size	ignore_commands.4269, 8
ignore_commands.4269:
	.word	.LC1
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
