	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cwexec
_cwexec:                                ## @cwexec
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	(%rdi), %rcx
	movq	$-1, %rax
	cmpq	%rdx, %rcx
	ja	LBB0_44
## %bb.1:
	movq	%rsi, %r11
	movq	40(%rdi), %rsi
	movq	8(%rdi), %r9
	movq	16(%rdi), %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r11,%rdx), %r15
	testl	%ecx, %ecx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_45
## %bb.2:
	movq	%rcx, %rsi
	shlq	$2, %rsi
	movq	%r15, %r10
	subq	%rsi, %r10
	xorl	%r8d, %r8d
	cmpq	%rdx, %rsi
	cmovbeq	%r10, %r8
                                        ## implicit-def: $rdx
                                        ## kill: killed $rdx
	movq	%r11, %r10
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-1(%r10,%rcx), %edx
	addq	%rcx, %r10
	movb	(%r9,%rdx), %cl
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%cl, %ecx
	testb	%cl, %cl
	je	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
	movq	%r15, %rdx
	subq	%r10, %rdx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_44
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r8, %r8
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r8, %r10
	ja	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rcx,%r10), %rsi
	decq	%rsi
	movzbl	-1(%rcx,%r10), %edx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r9,%rdx), %ecx
	testb	%cl, %cl
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r8, %rsi
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movzbl	%cl, %ecx
	leaq	(%rsi,%rcx), %rdx
	movzbl	(%rsi,%rcx), %ecx
	movzbl	(%r9,%rcx), %ecx
	leaq	(%rdx,%rcx), %rbx
	movzbl	(%rcx,%rdx), %ecx
	movzbl	(%r9,%rcx), %ecx
	leaq	(%rbx,%rcx), %rsi
	movzbl	(%rcx,%rbx), %edx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	movq	%rsi, %r10
	jmp	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	-1(%r10), %r13
	movzbl	%dl, %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%rcx,8), %r12
	cmpl	$0, (%r12)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmovneq	%r12, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	$0, %r14d
LBB0_14:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
	cmovneq	%r13, %r14
	cmpq	%r11, %r13
	jbe	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	decq	%r13
	movq	%r13, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	movzbl	(%r13), %edx
	addq	%rcx, %rdx
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	16(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	movb	(%rdx), %dl
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpb	(%rcx), %dl
	je	LBB0_46
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=3
	setb	%bl
	movzbl	%bl, %esi
	movq	16(%rcx,%rsi,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_19
	jmp	LBB0_21
LBB0_46:                                ##   in Loop: Header=BB0_14 Depth=2
	movq	8(%rcx), %r12
	cmpl	$0, (%r12)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmovneq	%r12, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r12), %ecx
	testq	%r14, %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_3
	jmp	LBB0_22
LBB0_45:
	movq	32(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r11, %r14
	movq	%r11, %r10
LBB0_22:
	movslq	24(%rdi), %rsi
	movq	%r15, %rcx
	subq	%r14, %rcx
	leaq	(%r14,%rsi), %rbx
	cmpq	%rsi, %rcx
	cmovleq	%r15, %rbx
	movq	%rbx, %rcx
	subq	%r10, %rcx
	testq	%rcx, %rcx
	jle	LBB0_40
## %bb.23:
	movq	%rbx, %rdi
LBB0_25:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
                                        ##       Child Loop BB0_31 Depth 3
                                        ##         Child Loop BB0_35 Depth 4
	movq	%r14, %r13
	movl	$1, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_26 Depth=2
	movq	%rdi, %rdx
	subq	%r10, %rdx
	cmpq	%rcx, %rdx
	jl	LBB0_39
LBB0_26:                                ##   Parent Loop BB0_25 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_31 Depth 3
                                        ##         Child Loop BB0_35 Depth 4
	movzbl	-1(%r10,%rcx), %edx
	addq	%rcx, %r10
	movzbl	(%r9,%rdx), %ecx
	testq	%rcx, %rcx
	jne	LBB0_27
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	(%rax,%rdx,8), %r15
	movl	$1, %ecx
	testq	%r15, %r15
	je	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	%r12, %r8
	leaq	-1(%r10), %r12
	cmpl	$0, (%r15)
	sete	%cl
	cmpq	%r13, %r12
	seta	%dl
	orb	%cl, %dl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmoveq	%r15, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	movl	$0, %eax
	cmovneq	%rax, %r14
	cmpq	%r11, %r12
	jbe	LBB0_37
LBB0_31:                                ##   Parent Loop BB0_25 Depth=1
                                        ##     Parent Loop BB0_26 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_35 Depth 4
	decq	%r12
	movq	%r12, %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_31 Depth=3
	movzbl	(%r12), %edx
	addq	%rax, %rdx
LBB0_33:                                ##   in Loop: Header=BB0_31 Depth=3
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_31 Depth=3
	movb	(%rdx), %dl
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_25 Depth=1
                                        ##     Parent Loop BB0_26 Depth=2
                                        ##       Parent Loop BB0_31 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	cmpb	(%rcx), %dl
	je	LBB0_47
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=4
	setb	%al
	movzbl	%al, %eax
	movq	16(%rcx,%rax,8), %rcx
	testq	%rcx, %rcx
	jne	LBB0_35
	jmp	LBB0_37
LBB0_47:                                ##   in Loop: Header=BB0_31 Depth=3
	movq	8(%rcx), %r15
	cmpl	$0, (%r15)
	sete	%al
	cmpq	%r13, %r12
	seta	%cl
	orb	%al, %cl
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmoveq	%r15, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmoveq	%r12, %r14
	cmpq	%r11, %r12
	ja	LBB0_31
LBB0_37:                                ##   in Loop: Header=BB0_26 Depth=2
	testq	%r14, %r14
	jne	LBB0_24
## %bb.38:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	4(%r15), %eax
	testl	%eax, %eax
	movl	$1, %ecx
	cmovel	%ecx, %eax
	movq	%rdi, %rdx
	subq	%r10, %rdx
	movslq	%eax, %rcx
	cmpq	%rcx, %rdx
	movq	%r8, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jge	LBB0_26
	jmp	LBB0_39
LBB0_24:                                ##   in Loop: Header=BB0_25 Depth=1
	movq	%rbx, %rcx
	subq	%r14, %rcx
	leaq	(%r14,%rsi), %rdi
	cmpq	%rsi, %rcx
	cmovleq	%rbx, %rdi
	movq	%rdi, %rcx
	subq	%r10, %rcx
	movq	%rdi, %rbx
	testq	%rcx, %rcx
	movq	%r8, %r12
	jg	LBB0_25
	jmp	LBB0_40
LBB0_39:
	movq	%r13, %r14
LBB0_40:
	testq	%r12, %r12
	je	LBB0_41
## %bb.42:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, (%r12)
	subq	%r11, %r14
	movq	8(%r12), %rax
	movl	%r14d, (%rax)
	movl	8(%rdx), %eax
	movq	16(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_43
LBB0_41:
	subq	%r11, %r14
LBB0_43:
	movq	%r14, %rax
LBB0_44:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cwexec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cwexec
_cwexec:                                ; @cwexec
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cmp	x8, x2
	b.ls	LBB0_2
LBB0_1:
	mov	x0, #-1
	ret
LBB0_2:
	ldr	x9, [x0, #40]
	add	x14, x1, x2
	ldp	x10, x11, [x0, #8]
	cbz	w8, LBB0_21
; %bb.3:
	mov	x4, x8
	lsl	x8, x8, #2
	sub	x12, x14, x8
	cmp	x8, x2
	csel	x15, xzr, x12, hi
	mov	w16, #16
	mov	w17, #24
                                        ; implicit-def: $x8
	mov	x12, x1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x12, x12, x13
	ldurb	w13, [x12, #-1]
	ldrb	w4, [x10, x13]
                                        ; kill: def $w13 killed $w13 killed $x13 def $x13
	cbz	w4, LBB0_12
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
                                        ;       Child Loop BB0_17 Depth 3
	sxtw	x13, w4
	sub	x2, x14, x12
	cmp	x2, x13
	b.lt	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x15, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x12, x15
	b.hi	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x12, x13, x12
	ldrb	w13, [x12, #-1]!
	ldrb	w4, [x10, x13]
	cmp	w4, #0
	ccmp	x12, x15, #2, ne
	b.hs	LBB0_11
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x12, x12, w4, uxtb
	ldrb	w13, [x12]
	ldrb	w13, [x10, x13]
	add	x12, x12, x13
	ldrb	w13, [x12]
	ldrb	w13, [x10, x13]
	add	x12, x12, x13
	ldrb	w13, [x12]
	ldrb	w4, [x10, x13]
	cmp	w4, #0
	ccmp	x12, x15, #2, ne
	b.lo	LBB0_9
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w13 killed $w13 killed $x13 def $x13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x12, x12, #1
                                        ; kill: def $w4 killed $w4 killed $x4 def $x4
	cbnz	w4, LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x9, w13, uxtw #3]
	sub	x4, x12, #1
	ldr	w13, [x2]
	cmp	w13, #0
	csel	x8, x8, x2, eq
	csel	x13, xzr, x4, eq
	cmp	x4, x1
	b.ls	LBB0_20
LBB0_13:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_17 Depth 3
	sub	x4, x4, #1
	mov	x6, x4
	cbz	x11, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldrb	w5, [x4]
	add	x6, x11, x5
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x5, [x2, #16]
	cbz	x5, LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=2
	ldrb	w6, [x6]
LBB0_17:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_13 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrb	w7, [x5]
	cmp	w6, w7
	b.eq	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=3
	csel	x7, x17, x16, lo
	ldr	x5, [x5, x7]
	cbnz	x5, LBB0_17
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=2
	ldr	x2, [x5, #8]
	ldr	w5, [x2]
	cmp	w5, #0
	csel	x8, x8, x2, eq
	csel	x13, x13, x4, eq
	cmp	x4, x1
	b.hi	LBB0_13
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w4, [x2, #4]
	cbz	x13, LBB0_5
	b	LBB0_22
LBB0_21:
	ldr	x8, [x0, #32]
	mov	x13, x1
	mov	x12, x1
LBB0_22:
	ldrsw	x15, [x0, #24]
	add	x16, x13, x15
	sub	x17, x14, x13
	cmp	x17, x15
	csel	x14, x16, x14, gt
	sub	x16, x14, x12
	cmp	x16, #1
	b.lt	LBB0_41
; %bb.23:
	mov	w16, #16
	mov	w17, #24
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;       Child Loop BB0_30 Depth 3
                                        ;         Child Loop BB0_34 Depth 4
	mov	x0, x13
	mov	w13, #1
	b	LBB0_27
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	w13, #1
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	sub	x2, x14, x12
	cmp	x2, x13
	b.lt	LBB0_40
LBB0_27:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_30 Depth 3
                                        ;         Child Loop BB0_34 Depth 4
	add	x12, x12, x13
	ldurb	w2, [x12, #-1]
	ldrb	w13, [x10, x2]
	cbnz	x13, LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	x2, [x9, x2, lsl #3]
	cbz	x2, LBB0_25
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=2
	sub	x4, x12, #1
	ldr	w13, [x2]
	cmp	w13, #0
	ccmp	x4, x0, #2, ne
	cset	w13, hi
	cmp	w13, #0
	csel	x8, x8, x2, ne
	csel	x13, xzr, x4, ne
	cmp	x4, x1
	b.ls	LBB0_37
LBB0_30:                                ;   Parent Loop BB0_24 Depth=1
                                        ;     Parent Loop BB0_27 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_34 Depth 4
	sub	x4, x4, #1
	mov	x6, x4
	cbz	x11, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=3
	ldrb	w5, [x4]
	add	x6, x11, x5
LBB0_32:                                ;   in Loop: Header=BB0_30 Depth=3
	ldr	x5, [x2, #16]
	cbz	x5, LBB0_37
; %bb.33:                               ;   in Loop: Header=BB0_30 Depth=3
	ldrb	w6, [x6]
LBB0_34:                                ;   Parent Loop BB0_24 Depth=1
                                        ;     Parent Loop BB0_27 Depth=2
                                        ;       Parent Loop BB0_30 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldrb	w7, [x5]
	cmp	w6, w7
	b.eq	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=4
	csel	x7, x17, x16, lo
	ldr	x5, [x5, x7]
	cbnz	x5, LBB0_34
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_30 Depth=3
	ldr	x2, [x5, #8]
	ldr	w5, [x2]
	cmp	w5, #0
	ccmp	x4, x0, #2, ne
	cset	w5, hi
	cmp	w5, #0
	csel	x8, x8, x2, ne
	csel	x13, x13, x4, ne
	cmp	x4, x1
	b.hi	LBB0_30
LBB0_37:                                ;   in Loop: Header=BB0_27 Depth=2
	cbnz	x13, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	w13, [x2, #4]
	cmp	w13, #0
	csinc	w13, w13, wzr, ne
	sxtw	x13, w13
	b	LBB0_26
LBB0_39:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x0, x13, x15
	sub	x2, x14, x13
	cmp	x2, x15
	csel	x14, x0, x14, gt
	sub	x0, x14, x12
	cmp	x0, #1
	b.ge	LBB0_24
	b	LBB0_41
LBB0_40:
	mov	x13, x0
LBB0_41:
	cbz	x3, LBB0_43
; %bb.42:
	ldr	w9, [x8]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	str	w9, [x3]
	sub	x0, x13, x1
	ldp	x9, x10, [x3, #8]
	str	w0, [x9]
	ldr	w8, [x8, #8]
	str	w8, [x10]
	ret
LBB0_43:
	sub	x0, x13, x1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cwexec
.subsections_via_symbols
