	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_non_sync
_test_non_sync:                         ## @test_non_sync
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	_XLOG_BLCKSZ_K@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_LABEL_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_alarm_triggered@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_O_RDWR@GOTPCREL(%rip), %r14
	movq	_buf@GOTPCREL(%rip), %r15
	movq	_XLOG_BLCKSZ@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_close
	cmpl	$0, (%r12)
	jne	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %esi
	movq	(%r13), %rdx
	movl	%ebx, %edi
	callq	_write
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	_die
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nNon-sync'ed %dkB writes:\n"

	.comm	_XLOG_BLCKSZ_K,4,2              ## @XLOG_BLCKSZ_K
	.comm	_LABEL_FORMAT,8,3               ## @LABEL_FORMAT
L_.str.1:                               ## @.str.1
	.asciz	"write"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_START_TIMER,4,2                ## @START_TIMER
	.comm	_alarm_triggered,4,2            ## @alarm_triggered
	.comm	_filename,4,2                   ## @filename
	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.2:                               ## @.str.2
	.asciz	"could not open output file"

	.comm	_buf,4,2                        ## @buf
	.comm	_XLOG_BLCKSZ,8,3                ## @XLOG_BLCKSZ
L_.str.3:                               ## @.str.3
	.asciz	"write failed"

	.comm	_STOP_TIMER,4,2                 ## @STOP_TIMER
	.no_dead_strip	_test_non_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_non_sync
_test_non_sync:                         ; @test_non_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
Lloh2:
	adrp	x8, _XLOG_BLCKSZ_K@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XLOG_BLCKSZ_K@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	x8, [sp]
	bl	_printf
Lloh5:
	adrp	x8, _LABEL_FORMAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LABEL_FORMAT@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp]
	bl	_printf
Lloh10:
	adrp	x8, _stdout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_fflush
Lloh13:
	adrp	x22, _alarm_triggered@GOTPAGE
Lloh14:
	ldr	x22, [x22, _alarm_triggered@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
Lloh15:
	adrp	x23, _filename@GOTPAGE
Lloh16:
	ldr	x23, [x23, _filename@GOTPAGEOFF]
Lloh17:
	adrp	x24, _O_RDWR@GOTPAGE
Lloh18:
	ldr	x24, [x24, _O_RDWR@GOTPAGEOFF]
Lloh19:
	adrp	x19, l_.str.2@PAGE
Lloh20:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh21:
	adrp	x25, _buf@GOTPAGE
Lloh22:
	ldr	x25, [x25, _buf@GOTPAGEOFF]
Lloh23:
	adrp	x26, _XLOG_BLCKSZ@GOTPAGE
Lloh24:
	ldr	x26, [x26, _XLOG_BLCKSZ@GOTPAGEOFF]
Lloh25:
	adrp	x20, l_.str.3@PAGE
Lloh26:
	add	x20, x20, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_close
	ldr	w8, [x22]
	cbnz	w8, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x24]
	mov	w2, #0
	bl	_open
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_die
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	ldr	x2, [x26]
	mov	x0, x21
	bl	_write
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_die
	b	LBB0_3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nNon-sync'ed %dkB writes:\n"

	.comm	_XLOG_BLCKSZ_K,4,2              ; @XLOG_BLCKSZ_K
	.comm	_LABEL_FORMAT,8,3               ; @LABEL_FORMAT
l_.str.1:                               ; @.str.1
	.asciz	"write"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_START_TIMER,4,2                ; @START_TIMER
	.comm	_alarm_triggered,4,2            ; @alarm_triggered
	.comm	_filename,4,2                   ; @filename
	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.2:                               ; @.str.2
	.asciz	"could not open output file"

	.comm	_buf,4,2                        ; @buf
	.comm	_XLOG_BLCKSZ,8,3                ; @XLOG_BLCKSZ
l_.str.3:                               ; @.str.3
	.asciz	"write failed"

	.comm	_STOP_TIMER,4,2                 ; @STOP_TIMER
	.no_dead_strip	_test_non_sync
.subsections_via_symbols
