	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_value
_add_value:                             ## @add_value
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	cmpl	$128, %r8d
	je	LBB0_4
## %bb.1:
	cmpl	$129, %r8d
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_lua_pushvalue
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_push_captures
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_lua_call
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	callq	_push_onecapture
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_lua_gettable
LBB0_5:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_lua_toboolean
	movq	%r13, %rdi
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	$-1, %esi
	callq	_lua_isstring
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_luaL_typename
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_luaL_error
	jmp	LBB0_9
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_s                          ## TAILCALL
LBB0_6:
	movl	$1, %esi
	callq	_lua_pop
	subl	%r12d, %r15d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_lua_pushlstring
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaL_addvalue                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid replacement value (a %s)"

	.no_dead_strip	_add_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_value
_add_value:                             ; @add_value
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x23, x0
	ldr	x20, [x0]
	cmp	w4, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w4, #129
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x20
	mov	w1, #3
	bl	_lua_pushvalue
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_push_captures
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_lua_call
	b	LBB0_4
LBB0_3:
	mov	x0, x23
	mov	w1, #0
	mov	x2, x21
	mov	x3, x22
	bl	_push_onecapture
	mov	x0, x20
	mov	w1, #3
	bl	_lua_gettable
LBB0_4:
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_toboolean
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	w1, #-1
	bl	_lua_isstring
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x20
	mov	w1, #-1
	bl	_luaL_typename
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_luaL_error
	b	LBB0_9
LBB0_7:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_add_s
LBB0_8:
	mov	x0, x20
	mov	w1, #1
	bl	_lua_pop
	sub	w2, w22, w21
	mov	x0, x20
	mov	x1, x21
	bl	_lua_pushlstring
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_luaL_addvalue
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid replacement value (a %s)"

	.no_dead_strip	_add_value
.subsections_via_symbols
