	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pushallcaptures
_pushallcaptures:                       ## @pushallcaptures
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %r14
	leaq	8(%r14), %rax
	movq	%rax, (%rdi)
	movl	%r14d, %edi
	callq	_isfullcap
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pushsubject
	movl	$1, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	(%r15), %rdi
	callq	_isclosecap
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_6:
	movl	8(%r15), %edi
	movq	(%r14), %rsi
	movq	(%r15), %rax
	movq	(%rax), %rdx
	subq	%rsi, %rdx
	callq	_lua_pushlstring
	incl	%ebx
LBB0_7:
	addq	$8, (%r15)
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_pushcapture
	addl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_isclosecap
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:
	testl	%ebx, %ebx
	jne	LBB0_7
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pushallcaptures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pushallcaptures
_pushallcaptures:                       ; @pushallcaptures
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0]
	add	x8, x20, #8
	str	x8, [x0]
	mov	x0, x20
	bl	_isfullcap
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_pushsubject
	mov	w21, #1
	b	LBB0_5
LBB0_2:
	ldr	x0, [x19]
	bl	_isclosecap
	mov	w21, #0
	cbz	w0, LBB0_6
LBB0_3:
	ldr	w0, [x19, #8]
	ldr	x1, [x20]
	ldr	x8, [x19]
	ldr	x8, [x8]
	sub	x2, x8, x1
	bl	_lua_pushlstring
	add	w21, w21, #1
LBB0_4:
	ldr	x8, [x19]
	add	x8, x8, #8
	str	x8, [x19]
LBB0_5:
	mov	x0, x21
	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
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_pushcapture
	add	w21, w21, w0
	ldr	x0, [x19]
	bl	_isclosecap
	cbz	w0, LBB0_6
; %bb.7:
	cbnz	w22, LBB0_3
; %bb.8:
	cbnz	w21, LBB0_4
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pushallcaptures
.subsections_via_symbols
