	.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	%r14
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fopen
	movq	%rax, %r14
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	callq	_fprintf
	testq	%rax, %rax
	jg	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_2:
	movq	%r14, %rdi
	callq	_rewind
	leaq	-160(%rbp), %rdi
	movl	$1, %esi
	movl	$127, %edx
	movq	%r14, %rcx
	callq	_fread
	movq	%rax, %rbx
	cmpq	$18, %rax
	je	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_err
LBB0_4:
	movb	$0, -160(%rbp,%rbx)
	movq	%r14, %rdi
	callq	_fclose
	leaq	L_.str(%rip), %rsi
	leaq	-160(%rbp), %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_errx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$144, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	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"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
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, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
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
Lloh11:
	adrp	x21, _EXIT_FAILURE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _EXIT_FAILURE@GOTPAGEOFF]
	cmp	x0, #0
	b.gt	LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_2:
	mov	x0, x19
	bl	_rewind
	add	x22, sp, #8
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #127
	mov	x3, x19
	bl	_fread
	mov	x20, x0
	cmp	x0, #18
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
LBB0_4:
	strb	wzr, [x22, x20]
	mov	x0, x19
	bl	_fclose
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_errx
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
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
