	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codearith
_codearith:                             ## @codearith
	.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, %rbx
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	callq	_constfolding
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_OP_UNM@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	%r14, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_OP_LEN@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_luaK_exp2RK
	movl	%eax, %r13d
LBB0_4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_luaK_exp2RK
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r13d, %eax
	movq	%rbx, %rsi
	cmovgq	%r12, %rsi
	cmovleq	%r12, %rbx
	movq	%r15, %rdi
	callq	_freeexp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_freeexp
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	callq	_luaK_codeABC
	movl	%eax, 4(%r12)
	movq	_VRELOCABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OP_UNM,8,3                     ## @OP_UNM
	.comm	_OP_LEN,8,3                     ## @OP_LEN
	.comm	_VRELOCABLE,4,2                 ## @VRELOCABLE
	.no_dead_strip	_codearith
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codearith
_codearith:                             ; @codearith
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_constfolding
	cbnz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _OP_UNM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OP_UNM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _OP_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OP_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x20
	ccmp	x9, x20, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w23, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x22
	bl	_luaK_exp2RK
	mov	x23, x0
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_luaK_exp2RK
	mov	x24, x0
	cmp	w0, w23
	csel	x1, x19, x22, gt
	csel	x22, x22, x19, gt
	mov	x0, x21
	bl	_freeexp
	mov	x0, x21
	mov	x1, x22
	bl	_freeexp
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	x3, x24
	mov	x4, x23
	bl	_luaK_codeABC
Lloh6:
	adrp	x8, _VRELOCABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VRELOCABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [x19]
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OP_UNM,8,3                     ; @OP_UNM
	.comm	_OP_LEN,8,3                     ; @OP_LEN
	.comm	_VRELOCABLE,4,2                 ; @VRELOCABLE
	.no_dead_strip	_codearith
.subsections_via_symbols
