	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setttyent                      ## -- Begin function setttyent
	.p2align	4, 0x90
_setttyent:                             ## @setttyent
	.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	_line@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.1:
	movq	_MALLOCCHUNK@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%r14), %eax
	movq	_lbsize@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_4:
	movq	_tf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_rewind
	movl	$1, %eax
	jmp	LBB0_7
LBB0_6:
	movq	__PATH_TTYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_7
LBB0_2:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_line,8,3                       ## @line
	.comm	_MALLOCCHUNK,4,2                ## @MALLOCCHUNK
	.comm	_lbsize,4,2                     ## @lbsize
	.comm	_tf,8,3                         ## @tf
	.comm	__PATH_TTYS,4,2                 ## @_PATH_TTYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"re"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setttyent                      ; -- Begin function setttyent
	.p2align	2
_setttyent:                             ; @setttyent
	.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, _line@GOTPAGE
Lloh1:
	ldr	x19, [x19, _line@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x20, _MALLOCCHUNK@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MALLOCCHUNK@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _lbsize@GOTPAGE
Lloh5:
	ldr	x9, [x9, _lbsize@GOTPAGEOFF]
Lloh6:
	str	w8, [x9]
LBB0_3:
Lloh7:
	adrp	x19, _tf@GOTPAGE
Lloh8:
	ldr	x19, [x19, _tf@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_rewind
	mov	w0, #1
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, __PATH_TTYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, __PATH_TTYS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	str	x0, [x19]
	cmp	x0, #0
	cset	w0, ne
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_line,8,3                       ; @line
	.comm	_MALLOCCHUNK,4,2                ; @MALLOCCHUNK
	.comm	_lbsize,4,2                     ; @lbsize
	.comm	_tf,8,3                         ; @tf
	.comm	__PATH_TTYS,4,2                 ; @_PATH_TTYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"re"

.subsections_via_symbols
