	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function f_setvbuf
_f_setvbuf:                             ## @f_setvbuf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_tofile
	movq	%rax, %r14
	leaq	_f_setvbuf.modenames(%rip), %rcx
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_luaL_checkoption
	movl	%eax, %r15d
	movq	_LUAL_BUFFERSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_luaL_optinteger
	movslq	%r15d, %rcx
	leaq	_f_setvbuf.mode(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rcx
	callq	_setvbuf
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_luaL_fileresult                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @f_setvbuf.mode
_f_setvbuf.mode:
	.long	128                             ## 0x80
	.long	130                             ## 0x82
	.long	129                             ## 0x81

	.section	__DATA,__const
	.p2align	4                               ## @f_setvbuf.modenames
_f_setvbuf.modenames:
	.quad	L_.str
	.quad	L_.str.1
	.quad	L_.str.2
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no"

L_.str.1:                               ## @.str.1
	.asciz	"full"

L_.str.2:                               ## @.str.2
	.asciz	"line"

	.comm	_LUAL_BUFFERSIZE,4,2            ## @LUAL_BUFFERSIZE
	.no_dead_strip	_f_setvbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function f_setvbuf
_f_setvbuf:                             ; @f_setvbuf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_tofile
	mov	x20, x0
Lloh0:
	adrp	x3, _f_setvbuf.modenames@PAGE
Lloh1:
	add	x3, x3, _f_setvbuf.modenames@PAGEOFF
	mov	x0, x19
	mov	w1, #2
	mov	x2, #0
	bl	_luaL_checkoption
	mov	x21, x0
Lloh2:
	adrp	x8, _LUAL_BUFFERSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LUAL_BUFFERSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #3
	bl	_luaL_optinteger
	mov	x3, x0
Lloh5:
	adrp	x8, _f_setvbuf.mode@PAGE
Lloh6:
	add	x8, x8, _f_setvbuf.mode@PAGEOFF
	ldr	w2, [x8, w21, sxtw #2]
	mov	x0, x20
	mov	x1, #0
	bl	_setvbuf
	cmp	w0, #0
	cset	w1, eq
	mov	x0, x19
	mov	x2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_luaL_fileresult
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @f_setvbuf.mode
_f_setvbuf.mode:
	.long	128                             ; 0x80
	.long	130                             ; 0x82
	.long	129                             ; 0x81

	.section	__DATA,__const
	.p2align	3                               ; @f_setvbuf.modenames
_f_setvbuf.modenames:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	0

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no"

l_.str.1:                               ; @.str.1
	.asciz	"full"

l_.str.2:                               ; @.str.2
	.asciz	"line"

	.comm	_LUAL_BUFFERSIZE,4,2            ; @LUAL_BUFFERSIZE
	.no_dead_strip	_f_setvbuf
.subsections_via_symbols
