	.file	"extr_lmathlib.c_math_max.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"value expected"
	.text
	.p2align 4
	.type	math_max, @function
math_max:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	lua_gettop@PLT
	xor	esi, esi
	mov	edx, 1
	mov	rdi, r13
	test	eax, eax
	mov	r12d, eax
	lea	rcx, .LC0[rip]
	setg	sil
	call	luaL_argcheck@PLT
	cmp	r12d, 1
	jle	.L5
	add	r12d, 1
	mov	ebx, 2
	mov	ebp, 1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ecx, DWORD PTR LUA_OPLT[rip]
	mov	edx, ebx
	mov	esi, ebp
	mov	rdi, r13
	call	lua_compare@PLT
	test	rax, rax
	cmovne	ebp, ebx
	add	ebx, 1
	cmp	ebx, r12d
	jne	.L4
.L2:
	mov	esi, ebp
	mov	rdi, r13
	call	lua_pushvalue@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ebp, 1
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	math_max, .-math_max
	.comm	LUA_OPLT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_lmathlib.c_math_max.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"value expected\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	math_max, %function
math_max:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	lua_gettop
	mov	r6, r0
	cmp	r6, #0
	movle	r1, #0
	movgt	r1, #1
	mov	r0, r7
	mov	r2, #1
	ldr	r3, .L11
	bl	luaL_argcheck
	cmp	r6, #1
	ble	.L5
	mov	r5, #1
	mov	r4, #2
	ldr	r8, .L11+4
	add	r6, r6, r5
.L4:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r7
	ldr	r3, [r8]
	bl	lua_compare
	cmp	r0, #0
	movne	r5, r4
	add	r4, r4, #1
	cmp	r4, r6
	bne	.L4
.L2:
	mov	r1, r5
	mov	r0, r7
	bl	lua_pushvalue
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r5, #1
	b	.L2
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	LUA_OPLT
	.size	math_max, .-math_max
	.comm	LUA_OPLT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
