	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fprintf__simple_string
_fprintf__simple_string:                ## @fprintf__simple_string
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$136, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_fprintf
	testq	%rax, %rax
	jle	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	callq	_pass
	movq	%rbx, %rdi
	callq	_rewind
	leaq	-144(%rbp), %rdi
	movl	$1, %esi
	movl	$127, %edx
	movq	%rbx, %rcx
	callq	_fread
	cmpq	$18, %rax
	jne	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	callq	_pass
	movb	$0, -126(%rbp)
	movq	%rbx, %rdi
	callq	_fclose
	leaq	L_.str(%rip), %rsi
	leaq	-144(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.6(%rip), %rdi
	callq	_fail
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.4(%rip), %rdi
	callq	_fail
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_12
## %bb.2:
	movl	$2, %edi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.5(%rip), %rdi
	callq	_fail
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_12
## %bb.6:
	movl	$1, %edi
LBB0_3:
	addq	$136, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_skip                           ## TAILCALL
LBB0_9:
	xorl	%eax, %eax
	callq	_pass
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$136, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This is a message\n"

L_.str.1:                               ## @.str.1
	.asciz	"test.txt"

L_.str.2:                               ## @.str.2
	.asciz	"w+"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"fprintf failed to write to file"

L_.str.5:                               ## @.str.5
	.asciz	"fread failed"

L_.str.6:                               ## @.str.6
	.asciz	"Written and read data differ"

	.no_dead_strip	_fprintf__simple_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fprintf__simple_string
_fprintf__simple_string:                ; @fprintf__simple_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fopen
	mov	x19, x0
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_fprintf
	cmp	x0, #0
	b.le	LBB0_4
; %bb.1:
	bl	_pass
	mov	x0, x19
	bl	_rewind
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #127
	mov	x3, x19
	bl	_fread
	cmp	x0, #18
	b.ne	LBB0_6
; %bb.2:
	bl	_pass
	strb	wzr, [sp, #26]
	mov	x0, x19
	bl	_fclose
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.3:
Lloh13:
	adrp	x0, l_.str.6@PAGE
Lloh14:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_fail
	b	LBB0_10
LBB0_4:
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_fail
	ldur	x8, [x29, #-24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.5:
	mov	w0, #2
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_fail
	ldur	x8, [x29, #-24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_skip
LBB0_9:
	bl	_pass
LBB0_10:
	ldur	x8, [x29, #-24]
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_12
; %bb.11:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This is a message\n"

l_.str.1:                               ; @.str.1
	.asciz	"test.txt"

l_.str.2:                               ; @.str.2
	.asciz	"w+"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"fprintf failed to write to file"

l_.str.5:                               ; @.str.5
	.asciz	"fread failed"

l_.str.6:                               ; @.str.6
	.asciz	"Written and read data differ"

	.no_dead_strip	_fprintf__simple_string
.subsections_via_symbols
