	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mimemap_get_type_by_extension ## -- Begin function h2o_mimemap_get_type_by_extension
	.p2align	4, 0x90
_h2o_mimemap_get_type_by_extension:     ## @h2o_mimemap_get_type_by_extension
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$272, %rsp                      ## imm = 0x110
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testl	%ebx, %ebx
	jle	LBB0_4
## %bb.1:
	movl	%ebx, %eax
	andl	$-256, %eax
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	%ebx, %r12d
	movq	%rbx, %rsi
	shrq	$32, %rsi
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_h2o_strtolower
	movb	$0, -304(%rbp,%r12)
	movq	_extmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	movq	%r15, %rdx
	callq	_kh_get
	movq	%rax, %rbx
	movl	8(%r14), %edi
	callq	_kh_end
	cmpq	%rax, %rbx
	jne	LBB0_3
LBB0_4:
	movq	(%r14), %rax
	jmp	LBB0_5
LBB0_3:
	movl	8(%r14), %edi
	movq	%rbx, %rsi
	callq	_kh_val
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$272, %rsp                      ## imm = 0x110
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_extmap,4,2                     ## @extmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_mimemap_get_type_by_extension ; -- Begin function h2o_mimemap_get_type_by_extension
	.p2align	2
_h2o_mimemap_get_type_by_extension:     ; @h2o_mimemap_get_type_by_extension
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
	and	x8, x20, #0xffffff00
	cbnz	x8, LBB0_3
; %bb.2:
	lsr	x1, x20, #32
	add	x21, sp, #8
	add	x0, sp, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_memcpy
	add	x0, sp, #8
	mov	x1, x20
	bl	_h2o_strtolower
	strb	wzr, [x21, w20, uxtw]
Lloh3:
	adrp	x8, _extmap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _extmap@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	add	x2, sp, #8
	bl	_kh_get
	mov	x20, x0
	ldr	w0, [x19, #8]
	bl	_kh_end
	cmp	x20, x0
	b.ne	LBB0_4
LBB0_3:
	ldr	x0, [x19]
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_kh_val
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_extmap,4,2                     ; @extmap
.subsections_via_symbols
