	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setfsent                       ## -- Begin function setfsent
	.p2align	4, 0x90
_setfsent:                              ## @setfsent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	__fs_fp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_rewind
	jmp	LBB0_7
LBB0_2:
	movq	_fsp_set@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_issetugid
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
LBB0_5:
	movq	%r14, %rdi
	callq	_setfstab
LBB0_6:
	movq	_path_fstab@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	movq	_LineNo@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$1, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_error
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	__fs_fp,8,3                     ## @_fs_fp
	.comm	_LineNo,8,3                     ## @LineNo
	.comm	_fsp_set,8,3                    ## @fsp_set
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH_FSTAB"

	.comm	_path_fstab,4,2                 ## @path_fstab
L_.str.1:                               ## @.str.1
	.asciz	"re"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setfsent                       ; -- Begin function setfsent
	.p2align	2
_setfsent:                              ; @setfsent
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, __fs_fp@GOTPAGE
Lloh1:
	ldr	x19, [x19, __fs_fp@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_rewind
	b	LBB0_8
LBB0_2:
Lloh2:
	adrp	x8, _fsp_set@GOTPAGE
Lloh3:
	ldr	x8, [x8, _fsp_set@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
; %bb.3:
	bl	_issetugid
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
LBB0_6:
	bl	_setfstab
LBB0_7:
Lloh7:
	adrp	x8, _path_fstab@GOTPAGE
Lloh8:
	ldr	x8, [x8, _path_fstab@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	str	x0, [x19]
	cbz	x0, LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _LineNo@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LineNo@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_error
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	__fs_fp,8,3                     ; @_fs_fp
	.comm	_LineNo,8,3                     ; @LineNo
	.comm	_fsp_set,8,3                    ; @fsp_set
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH_FSTAB"

	.comm	_path_fstab,4,2                 ; @path_fstab
l_.str.1:                               ; @.str.1
	.asciz	"re"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
