	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function g_write
_g_write:                               ## @g_write
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_lua_gettop
	movl	%eax, %r12d
	movl	$1, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %r13d
	incl	%ebx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r12d
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lua_type
	cmpl	$3, %eax
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_lua_tonumber
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	testq	%rax, %rax
	setg	%al
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	leaq	-48(%rbp), %rdx
	callq	_luaL_checklstring
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdx
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_fwrite
	cmpq	-48(%rbp), %rax
	sete	%al
	jmp	LBB0_3
LBB0_10:
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_pushresult
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.14g"

	.no_dead_strip	_g_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function g_write
_g_write:                               ; @g_write
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_lua_gettop
	mov	w23, #1
	subs	w24, w0, #1
	b.eq	LBB0_8
; %bb.1:
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	subs	w24, w24, #1
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_lua_type
	cmp	w0, #3
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w23, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_lua_tonumber
	mov	x0, x21
	mov	x1, x22
	bl	_fprintf
	cmp	x0, #0
	cset	w23, gt
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_luaL_checklstring
	cbz	w23, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x2, [sp, #8]
	mov	w1, #1
	mov	x3, x21
	bl	_fwrite
	ldr	x8, [sp, #8]
	cmp	x0, x8
	cset	w23, eq
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	mov	x2, #0
	bl	_pushresult
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.14g"

	.no_dead_strip	_g_write
.subsections_via_symbols
