	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check                          ## -- Begin function check
	.p2align	4, 0x90
_check:                                 ## @check
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SmFtStdio@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SM_TIME_DEFAULT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_SM_IO_WRONLY_B@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_check.fn(%rip), %rdx
	xorl	%r8d, %r8d
	callq	_sm_io_open
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_SM_TEST
	movl	%r14d, -308(%rbp)               ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	movl	-308(%rbp), %r15d               ## 4-byte Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movsbl	(%r12,%r14), %edx
	movq	%rbx, %rdi
	callq	_sm_io_putc
	notl	%eax
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_SM_TEST
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_2
LBB0_3:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_sm_io_close
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_SM_TEST
	movq	_SmFtStdio@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	movq	_SM_IO_RDONLY_B@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_check.fn(%rip), %rdx
	xorl	%r8d, %r8d
	callq	_sm_io_open
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_SM_TEST
	movl	(%r13), %esi
	leaq	-304(%rbp), %rdx
	movl	$256, %ecx                      ## imm = 0x100
	movq	%r15, %rdi
	callq	_sm_io_fgets
	movl	%eax, %r14d
	movl	-308(%rbp), %ebx                ## 4-byte Reload
	xorl	%edi, %edi
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.5:
	cmpl	%ebx, %r14d
	sete	%dil
	callq	_SM_TEST
	cmpl	%ebx, %r14d
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-304(%rbp), %rdx
	movq	%r12, %rcx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_fprintf
	jmp	LBB0_7
LBB0_4:
	cmpl	$-1, %r14d
	sete	%dil
	callq	_SM_TEST
	movq	_errno@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_SM_TEST
LBB0_7:
	leaq	-304(%rbp), %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcmp
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_SM_TEST
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_sm_io_close
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_SM_TEST
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_check.fn:                              ## @check.fn
	.asciz	"tfget"

	.comm	_SmFtStdio,4,2                  ## @SmFtStdio
	.comm	_SM_TIME_DEFAULT,4,2            ## @SM_TIME_DEFAULT
	.comm	_SM_IO_WRONLY_B,4,2             ## @SM_IO_WRONLY_B
	.comm	_SM_IO_RDONLY_B,4,2             ## @SM_IO_RDONLY_B
	.comm	_errno,8,3                      ## @errno
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buf='%s', in='%s', r=%d, l=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check                          ; -- Begin function check
	.p2align	2
_check:                                 ; @check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x26, x25, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x22, _SmFtStdio@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SmFtStdio@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x23, _SM_TIME_DEFAULT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SM_TIME_DEFAULT@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh7:
	adrp	x8, _SM_IO_WRONLY_B@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SM_IO_WRONLY_B@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x2, _check.fn@PAGE
Lloh11:
	add	x2, x2, _check.fn@PAGEOFF
	mov	x4, #0
	bl	_sm_io_open
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_SM_TEST
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w24, w19
	mov	x25, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldrsb	w2, [x25], #1
	mov	x0, x21
	bl	_sm_io_putc
	mvn	w8, w0
	lsr	w0, w8, #31
	bl	_SM_TEST
	subs	x24, x24, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	w1, [x23]
	mov	x0, x21
	bl	_sm_io_close
	cmp	w0, #0
	cset	w0, eq
	bl	_SM_TEST
	ldr	w0, [x22]
	ldr	w1, [x23]
Lloh12:
	adrp	x8, _SM_IO_RDONLY_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SM_IO_RDONLY_B@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x2, _check.fn@PAGE
Lloh16:
	add	x2, x2, _check.fn@PAGEOFF
	mov	x4, #0
	bl	_sm_io_open
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_SM_TEST
	ldr	w1, [x23]
	add	x2, sp, #8
	mov	x0, x21
	mov	w3, #256
	bl	_sm_io_fgets
	mov	x22, x0
	cbz	w19, LBB0_6
; %bb.4:
	cmp	w22, w19
	cset	w0, eq
	bl	_SM_TEST
	cmp	w22, w19
	b.eq	LBB0_7
; %bb.5:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, x20
	mov	x4, x22
	mov	x5, x19
	bl	_fprintf
	b	LBB0_7
LBB0_6:
	cmn	w22, #1
	cset	w0, eq
	bl	_SM_TEST
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
	bl	_SM_TEST
LBB0_7:
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x19
	bl	_memcmp
	cmp	x0, #0
	cset	w0, eq
	bl	_SM_TEST
	ldr	w1, [x23]
	mov	x0, x21
	bl	_sm_io_close
	cmp	w0, #0
	cset	w0, eq
	bl	_SM_TEST
	ldur	x8, [x29, #-72]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_check.fn:                              ; @check.fn
	.asciz	"tfget"

	.comm	_SmFtStdio,4,2                  ; @SmFtStdio
	.comm	_SM_TIME_DEFAULT,4,2            ; @SM_TIME_DEFAULT
	.comm	_SM_IO_WRONLY_B,4,2             ; @SM_IO_WRONLY_B
	.comm	_SM_IO_RDONLY_B,4,2             ; @SM_IO_RDONLY_B
	.comm	_errno,8,3                      ; @errno
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buf='%s', in='%s', r=%d, l=%d\n"

.subsections_via_symbols
