	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_request_merge_headers
_build_request_merge_headers:           ## @build_request_merge_headers
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:
	movq	%r8, %r13
	movl	%ecx, %r15d
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	leal	(%rbx,%r15), %eax
	addl	$2, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movslq	%eax, %rdx
	xorl	%esi, %esi
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	callq	_h2o_mem_alloc_pool
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movb	%cl, (%r12,%rax)
	movb	$32, 1(%r12,%rax)
	leaq	(%r12,%rax), %rdi
	addq	$2, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	movq	%r12, %r14
	jmp	LBB0_4
LBB0_2:
	movl	%r15d, %ebx
	movq	%r13, %r14
LBB0_4:
	movl	%ebx, %eax
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buf,8,3                        ## @buf
	.no_dead_strip	_build_request_merge_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_request_merge_headers
_build_request_merge_headers:           ; @build_request_merge_headers
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	cbz	w21, LBB0_4
; %bb.1:
	mov	x20, x4
	cbz	w19, LBB0_3
; %bb.2:
	mov	x23, x5
	add	w8, w19, w21
	add	w25, w8, #2
	mov	x8, x25
	sxtw	x2, w8
	mov	w1, #0
	bl	_h2o_mem_alloc_pool
	mov	x24, x0
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	add	x0, x24, w19, sxtw
	strb	w23, [x0], #2
	add	w8, w19, #1
	mov	w9, #32
	strb	w9, [x24, w8, sxtw]
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	and	x8, x19, #0xffffffff00000000
	orr	x19, x8, x25
	mov	x22, x24
	b	LBB0_4
LBB0_3:
	mov	x19, x21
	mov	x22, x20
LBB0_4:
	mov	x0, x19
	mov	x1, x22
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_buf,8,3                        ; @buf
	.no_dead_strip	_build_request_merge_headers
.subsections_via_symbols
