	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_str_at_position            ## -- Begin function h2o_str_at_position
	.p2align	4, 0x90
_h2o_str_at_position:                   ## @h2o_str_at_position
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$-1, %eax
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.1:
	movl	%r8d, %ebx
	testl	%r8d, %r8d
	jle	LBB0_21
## %bb.2:
	movq	%rdi, %r14
	addq	%rsi, %rdx
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	decl	%ecx
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rdi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, %rdi
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	1(%rdi), %rsi
	cmpb	$10, (%rdi)
	movq	%rsi, %rdi
	jne	LBB0_11
	jmp	LBB0_3
LBB0_4:
	cmpl	$41, %ebx
	jl	LBB0_8
## %bb.5:
	incl	%ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, %rax
	xorl	%esi, %esi
	cmpq	%rdx, %rax
	setne	%sil
	addq	%rax, %rsi
	decl	%ebx
	cmpl	$41, %ebx
	ja	LBB0_6
## %bb.7:
	movl	$40, %ebx
LBB0_8:
	cmpq	%rdx, %rsi
	je	LBB0_9
## %bb.13:
	incq	%rsi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rsi), %eax
	cmpb	$10, %al
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movb	%al, (%r14)
	incq	%r14
	leal	1(%rcx), %eax
	cmpl	$75, %ecx
	ja	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	1(%rsi), %rdi
	movl	%eax, %ecx
	cmpq	%rdx, %rsi
	movq	%rdi, %rsi
	jne	LBB0_14
	jmp	LBB0_18
LBB0_9:
	movl	$1, %eax
	jmp	LBB0_18
LBB0_15:
	movl	%ecx, %eax
LBB0_18:
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
	movb	$10, (%r14)
	leaq	1(%r14), %rdi
	cmpl	$2, %ebx
	jl	LBB0_20
## %bb.19:
	leal	-1(%rbx), %edx
	movl	$32, %esi
	callq	_memset
	addl	$-2, %ebx
	leaq	(%rbx,%r14), %rdi
	addq	$2, %rdi
	addq	%rbx, %r14
	incq	%r14
LBB0_20:
	movb	$94, (%rdi)
	movw	$10, 2(%r14)
	xorl	%eax, %eax
LBB0_21:
	popq	%rbx
	popq	%r14
	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_str_at_position            ; -- Begin function h2o_str_at_position
	.p2align	2
_h2o_str_at_position:                   ; @h2o_str_at_position
	.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	x19, x0
	mov	w0, #-1
	cmp	w3, #1
	b.lt	LBB0_22
; %bb.1:
	cmp	w4, #1
	b.lt	LBB0_22
; %bb.2:
	add	x8, x1, x2
	subs	w9, w3, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x1, x8
	b.eq	LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w10, [x1], #1
	cmp	w10, #10
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w9, w9, #1
	b.ne	LBB0_3
LBB0_6:
	cmp	w4, #41
	b.lt	LBB0_10
; %bb.7:
	add	w9, w4, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x1, x8
	cinc	x1, x1, ne
	sub	w9, w9, #1
	cmp	w9, #41
	b.hi	LBB0_8
; %bb.9:
	mov	w4, #40
LBB0_10:
	cmp	x1, x8
	b.eq	LBB0_17
; %bb.11:
	mov	x9, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x1, x9]
	cmp	w11, #10
	b.eq	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x9, #1
	strb	w11, [x19, x9]
	cmp	w10, #75
	b.hi	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x1, x9
	add	x11, x9, #1
	mov	x9, x10
	cmp	x11, x8
	b.ne	LBB0_12
LBB0_15:
	add	w8, w10, #1
	add	x19, x19, x10
	b	LBB0_19
LBB0_16:
	mov	w0, #-1
	b	LBB0_22
LBB0_17:
	mov	w8, #1
	b	LBB0_19
LBB0_18:
	add	w8, w9, #1
	add	x19, x19, x9
LBB0_19:
	cmp	w8, w4
	csel	w9, w8, w4, lt
	mov	w20, #10
	mov	x8, x19
	strb	w20, [x8], #1
	subs	w21, w9, #2
	b.lt	LBB0_21
; %bb.20:
	sub	w2, w9, #1
	mov	x0, x8
	mov	w1, #32
	bl	_memset
	add	x8, x21, x19
	add	x19, x8, #1
	add	x8, x8, #2
LBB0_21:
	mov	w0, #0
	mov	w9, #94
	strb	w9, [x8]
	strh	w20, [x19, #2]
LBB0_22:
	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
