	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evbuffer_strspn
_evbuffer_strspn:                       ## @evbuffer_strspn
	.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
	movq	16(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	8(%rdi), %rcx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movq	%rdx, %r9
	movq	8(%rdx), %r10
	cmpq	%r10, %rcx
	jae	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r9), %r14
	addq	24(%r9), %r14
	leal	(%rax,%r10), %r11d
	subl	%ecx, %r11d
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	(%rbx), %edx
	testb	%dl, %dl
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	incq	%rbx
	cmpb	%dl, (%r14,%rcx)
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	incl	%eax
	incq	%rcx
	cmpq	%r10, %rcx
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r11d, %eax
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r9), %rdx
	movl	$0, %ecx
	testq	%rdx, %rdx
	jne	LBB0_3
	jmp	LBB0_12
LBB0_7:
	movq	%rcx, %r8
LBB0_12:
	movq	%r9, 16(%rdi)
	movq	%r8, 8(%rdi)
	addl	%eax, (%rdi)
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_evbuffer_strspn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evbuffer_strspn
_evbuffer_strspn:                       ; @evbuffer_strspn
	.cfi_startproc
; %bb.0:
	ldr	x11, [x0, #16]
	cbz	x11, LBB0_12
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x10, [x8, #8]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
	mov	x9, x11
	ldr	x11, [x11, #8]
	cmp	x10, x11
	b.hs	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x12, [x9, #24]
	ldrsw	x13, [x9]
	add	x12, x12, x13
	add	w13, w0, w11
	sub	w13, w13, w10
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
	mov	x14, x1
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w15, [x14]
	cbz	w15, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=3
	ldrb	w16, [x12, x10]
	add	x14, x14, #1
	cmp	w16, w15
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w0, w0, #1
	add	x10, x10, #1
	cmp	x10, x11
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x13
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, #0
	mov	x12, #0
	ldr	x11, [x9, #16]
	cbnz	x11, LBB0_2
	b	LBB0_11
LBB0_10:
	mov	x12, x10
LBB0_11:
	stp	x12, x9, [x8, #8]
	ldr	w9, [x8]
	add	w9, w9, w0
	str	w9, [x8]
	ret
LBB0_12:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_evbuffer_strspn
.subsections_via_symbols
