	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_encode_int           ## -- Begin function h2o_hpack_encode_int
	.p2align	4, 0x90
_h2o_hpack_encode_int:                  ## @h2o_hpack_encode_int
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_encode_int_is_onebyte
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	orl	%ebx, (%r14)
	addq	$4, %r14
	jmp	LBB0_6
LBB0_2:
	movl	%ebx, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movl	$-1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	notl	%eax
	orl	%eax, (%r14)
	subl	%eax, %ebx
	leaq	4(%r14), %rax
	cmpl	$128, %ebx
	jl	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	movl	%ebx, %edx
	orl	$128, %edx
	movl	%edx, (%rax)
	shrl	$7, %ebx
	addq	$4, %rax
	cmpl	$16383, %ecx                    ## imm = 0x3FFF
	ja	LBB0_3
## %bb.4:
	leaq	-4(%rax), %r14
LBB0_5:
	addq	$8, %r14
	movl	%ebx, (%rax)
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_hpack_encode_int           ; -- Begin function h2o_hpack_encode_int
	.p2align	2
_h2o_hpack_encode_int:                  ; @h2o_hpack_encode_int
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_encode_int_is_onebyte
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	orr	w8, w8, w20
	str	w8, [x19], #4
	b	LBB0_6
LBB0_2:
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_assert
	mov	w8, #-1
	lsl	w8, w8, w21
	mvn	w9, w8
	sub	w9, w20, w9
	ldr	w10, [x19]
	orn	w10, w10, w8
	mov	x8, x19
	str	w10, [x8], #4
	cmp	w9, #128
	b.lt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	orr	w10, w9, #0x80
	str	w10, [x8], #4
	lsr	w10, w9, #14
	lsr	w9, w9, #7
	cbnz	w10, LBB0_3
; %bb.4:
	sub	x19, x8, #4
LBB0_5:
	add	x19, x19, #8
	str	w9, [x8]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
