	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_memcached_set              ## -- Begin function h2o_memcached_set
	.p2align	4, 0x90
_h2o_memcached_set:                     ## @h2o_memcached_set
	.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
	movl	%r8d, %r14d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rdx
	movq	%rdi, %r15
	movq	%r13, %r12
	shrq	$32, %r12
	movq	_REQ_TYPE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_H2O_MEMCACHED_ENCODE_KEY@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r8d, %eax
	setne	%cl
	callq	_create_req
	movq	%rax, %rbx
	movq	_H2O_MEMCACHED_ENCODE_VALUE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	leal	2(%r13), %eax
	cltq
	imulq	$1431655766, %rax, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	leal	1(,%rax,4), %edi
	callq	_h2o_mem_alloc
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	$1, %ecx
	callq	_h2o_base64_encode
	movl	%eax, 8(%rbx)
	jmp	LBB0_3
LBB0_2:
	movl	%r13d, %edi
	callq	_h2o_mem_alloc
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_h2o_iovec_init
	movq	%rax, 4(%rbx)
	movl	%eax, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_memcpy
LBB0_3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dispatch                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_TYPE_SET,4,2               ## @REQ_TYPE_SET
	.comm	_H2O_MEMCACHED_ENCODE_KEY,4,2   ## @H2O_MEMCACHED_ENCODE_KEY
	.comm	_H2O_MEMCACHED_ENCODE_VALUE,4,2 ## @H2O_MEMCACHED_ENCODE_VALUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_memcached_set              ; -- Begin function h2o_memcached_set
	.p2align	2
_h2o_memcached_set:                     ; @h2o_memcached_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x24, x4
	mov	x19, x3
	mov	x21, x2
	mov	x2, x1
	mov	x20, x0
	lsr	x22, x21, #32
Lloh0:
	adrp	x8, _REQ_TYPE_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_TYPE_SET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _H2O_MEMCACHED_ENCODE_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _H2O_MEMCACHED_ENCODE_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w4
	cset	w3, ne
	bl	_create_req
	mov	x23, x0
Lloh6:
	adrp	x8, _H2O_MEMCACHED_ENCODE_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _H2O_MEMCACHED_ENCODE_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w24
	b.eq	LBB0_2
; %bb.1:
	add	w8, w21, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	lsr	x8, x8, #32
	add	w8, w8, w9
	mov	w0, #1
	bfi	w0, w8, #2, #30
	bl	_h2o_mem_alloc
	str	w0, [x23, #4]
	mov	x1, x22
	mov	x2, x21
	mov	w3, #1
	bl	_h2o_base64_encode
	str	w0, [x23, #8]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_h2o_mem_alloc
	mov	x1, x21
	bl	_h2o_iovec_init
	stur	x0, [x23, #4]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
LBB0_3:
	str	w19, [x23]
	mov	x0, x20
	mov	x1, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dispatch
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_TYPE_SET,4,2               ; @REQ_TYPE_SET
	.comm	_H2O_MEMCACHED_ENCODE_KEY,4,2   ; @H2O_MEMCACHED_ENCODE_KEY
	.comm	_H2O_MEMCACHED_ENCODE_VALUE,4,2 ; @H2O_MEMCACHED_ENCODE_VALUE
.subsections_via_symbols
