	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function motd
_motd:                                  ## @motd
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_motdinterrupt@GOTPCREL(%rip), %r12
	movq	$0, (%r12)
	movq	_sigint@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigfillset
	movq	_SIGINT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_sigaction
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	movq	_EOF@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_putchar
	movq	%r14, %rdi
	callq	_fgetc
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	jne	LBB0_4
LBB0_6:
	movl	(%r15), %edi
	xorl	%r12d, %r12d
	leaq	-88(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
	movl	$-1, %r15d
	cmpl	(%r13), %ebx
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_ferror
	negq	%rax
	sbbl	%r12d, %r12d
	movl	%r12d, %r15d
LBB0_8:
	movq	%r14, %rdi
	callq	_fclose
	jmp	LBB0_9
LBB0_1:
	movl	$-1, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$56, %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	"r"

	.comm	_motdinterrupt,8,3              ## @motdinterrupt
	.comm	_sigint,4,2                     ## @sigint
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_motd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function motd
_motd:                                  ; @motd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x21, _motdinterrupt@GOTPAGE
Lloh3:
	ldr	x21, [x21, _motdinterrupt@GOTPAGEOFF]
	str	xzr, [x21]
Lloh4:
	adrp	x8, _sigint@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sigint@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	xzr, [sp, #32]
	add	x0, sp, #24
	bl	_sigfillset
Lloh7:
	adrp	x22, _SIGINT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SIGINT@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #24
	mov	x2, sp
	bl	_sigaction
	mov	x0, x19
	bl	_fgetc
	mov	x20, x0
Lloh9:
	adrp	x23, _EOF@GOTPAGE
Lloh10:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	x9, [x21]
	cmp	w0, w8
	ccmp	x9, #0, #0, ne
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_putchar
	mov	x0, x19
	bl	_fgetc
	mov	x20, x0
	b	LBB0_2
LBB0_4:
	ldr	w0, [x22]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	ldr	w8, [x23]
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_ferror
	cmp	x0, #0
	csetm	w20, ne
	b	LBB0_8
LBB0_6:
	mov	w20, #-1
	b	LBB0_9
LBB0_7:
	mov	w20, #-1
LBB0_8:
	mov	x0, x19
	bl	_fclose
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

	.comm	_motdinterrupt,8,3              ; @motdinterrupt
	.comm	_sigint,4,2                     ; @sigint
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_motd
.subsections_via_symbols
