	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaO_arith                     ## -- Begin function luaO_arith
	.p2align	4, 0x90
_luaO_arith:                            ## @luaO_arith
	.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	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r15
	leal	-128(%rbx), %eax
	cmpl	$7, %eax
	ja	LBB0_10
## %bb.1:
	movl	$243, %ecx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	btl	%eax, %ecx
	jae	LBB0_7
## %bb.2:
	callq	_tointeger
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_tointeger
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
LBB0_5:
	callq	_intarith
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_setivalue
	jmp	LBB0_14
LBB0_10:
	movq	%r13, %rdi
	callq	_ttisinteger
	testl	%eax, %eax
	je	LBB0_6
## %bb.11:
	movq	%r12, %rdi
	callq	_ttisinteger
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	movq	%r13, %rdi
	callq	_ivalue
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ivalue
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	jmp	LBB0_5
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
LBB0_7:
	callq	_tonumber
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_tonumber
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_numarith
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_setfltvalue
	jmp	LBB0_14
LBB0_13:
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_lua_assert
	movq	_TMS@GOTPCREL(%rip), %rax
	movq	_LUA_OPADD@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	movl	(%rax), %edi
	movq	_TM_ADD@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, %esi
	callq	_cast
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	callq	_luaT_trybinTM
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TMS,4,2                        ## @TMS
	.comm	_LUA_OPADD,4,2                  ## @LUA_OPADD
	.comm	_TM_ADD,4,2                     ## @TM_ADD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_luaO_arith                     ; -- Begin function luaO_arith
	.p2align	2
_luaO_arith:                            ; @luaO_arith
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	sub	w8, w1, #128
	cmp	w8, #7
	b.hi	LBB0_6
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #243
	add	x1, sp, #12
	mov	x0, x23
	tst	w8, w9
	b.eq	LBB0_10
; %bb.2:
	bl	_tointeger
	cbz	w0, LBB0_13
; %bb.3:
	add	x1, sp, #8
	mov	x0, x22
	bl	_tointeger
	cbz	w0, LBB0_13
; %bb.4:
	ldp	w3, w2, [sp, #8]
	mov	x0, x20
	mov	x1, x21
LBB0_5:
	bl	_intarith
	mov	x1, x0
	mov	x0, x19
	bl	_setivalue
	b	LBB0_14
LBB0_6:
	mov	x0, x23
	bl	_ttisinteger
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x22
	bl	_ttisinteger
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x23
	bl	_ivalue
	mov	x23, x0
	mov	x0, x22
	bl	_ivalue
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	b	LBB0_5
LBB0_9:
	add	x1, sp, #12
	mov	x0, x23
LBB0_10:
	bl	_tonumber
	cbz	w0, LBB0_13
; %bb.11:
	add	x1, sp, #8
	mov	x0, x22
	bl	_tonumber
	cbz	w0, LBB0_13
; %bb.12:
	ldp	w3, w2, [sp, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_numarith
	mov	x1, x0
	mov	x0, x19
	bl	_setfltvalue
	b	LBB0_14
LBB0_13:
	cmp	x20, #0
	cset	w0, ne
	bl	_lua_assert
Lloh0:
	adrp	x8, _TMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _LUA_OPADD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUA_OPADD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TM_ADD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TM_ADD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sub	w8, w21, w8
	add	w1, w8, w9
	bl	_cast
	mov	x4, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	bl	_luaT_trybinTM
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TMS,4,2                        ; @TMS
	.comm	_LUA_OPADD,4,2                  ; @LUA_OPADD
	.comm	_TM_ADD,4,2                     ; @TM_ADD
.subsections_via_symbols
