	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_header_env_key
_handle_header_env_key:                 ## @handle_header_env_key
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	4(%r8), %rbx
	movq	8(%rsi), %rax
	movl	(%rsi), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_convert_env_to_header_name
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movl	%eax, %r13d
	movq	%rdx, %r15
	movq	%rdx, %rdi
	movl	%eax, %esi
	callq	_h2o_lookup_token
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r12
	movq	_H2O_TOKEN_CONTENT_LENGTH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_h2o_strdup
	movq	%rdx, %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r9d
	callq	_h2o_add_header
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_h2o_strdup
                                        ## kill: def $eax killed $eax def $rax
	movq	%rdx, %r10
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	callq	_h2o_add_header_by_str
	addq	$16, %rsp
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2O_TOKEN_CONTENT_LENGTH,8,3   ## @H2O_TOKEN_CONTENT_LENGTH
	.no_dead_strip	_handle_header_env_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_header_env_key
_handle_header_env_key:                 ; @handle_header_env_key
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	add	x20, x4, #4
	ldr	x8, [x1, #8]
	ldr	w2, [x1]
	mov	x0, x20
	mov	x1, x8
	bl	_convert_env_to_header_name
	cbz	x1, LBB0_5
; %bb.1:
	mov	x23, x0
	mov	x24, x1
	mov	x0, x1
	mov	x1, x23
	bl	_h2o_lookup_token
	cbz	x0, LBB0_4
; %bb.2:
	mov	x25, x0
Lloh0:
	adrp	x8, _H2O_TOKEN_CONTENT_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H2O_TOKEN_CONTENT_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_h2o_strdup
	mov	x5, x0
	mov	x4, x1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	mov	x3, #0
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_h2o_add_header
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_h2o_strdup
	mov	x7, x0
	mov	x6, x1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	mov	w4, #0
	mov	x5, #0
                                        ; kill: def $w7 killed $w7 killed $x7
	bl	_h2o_add_header_by_str
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_H2O_TOKEN_CONTENT_LENGTH,8,3   ; @H2O_TOKEN_CONTENT_LENGTH
	.no_dead_strip	_handle_header_env_key
.subsections_via_symbols
