	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function slogbench
LCPI0_0:
	.quad	0x3f50000000000000              ## double 9.765625E-4
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_slogbench:                             ## @slogbench
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_MAXTX@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_1
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_TS
	addl	%ebx, %ebx
	movq	_MAXTX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	leaq	L_.str.1(%rip), %rdi
	movb	$1, %al
	callq	_printf
	xorl	%eax, %eax
	callq	_T0
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	addl	$250, %r15d
	xorl	%eax, %eax
	callq	_delta_t
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_14
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	$250, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=3
	xorl	%r14d, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=3
	decl	%r15d
	je	LBB0_13
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r14d, %r13d
	xorl	%eax, %eax
	callq	_random
	movl	%eax, %ecx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	%ebx
	movl	%eax, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	imull	%ebx, %edx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_parwrite
	movl	$1, %r14d
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=3
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=3
	movl	%r12d, %edi
	callq	_fsync
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=3
	movq	_DIOCGFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_ioctl
	testl	%eax, %eax
	jns	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=3
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOTSUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=3
	movq	_EX_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_err
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXTX,4,2                      ## @MAXTX
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"\t%4.4g kbytes: "

	.comm	_DIOCGFLUSH,4,2                 ## @DIOCGFLUSH
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOTSUP,8,3                    ## @ENOTSUP
	.comm	_EX_IOERR,4,2                   ## @EX_IOERR
L_.str.2:                               ## @.str.2
	.asciz	"Flush error"

L_str:                                  ## @str
	.asciz	"Synchronous random writes:"

	.no_dead_strip	_slogbench
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slogbench
_slogbench:                             ; @slogbench
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x0, l_str@PAGE
Lloh1:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x8, _MAXTX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAXTX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ge	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_2:
	mov	w26, #0
Lloh5:
	adrp	x27, _DIOCGFLUSH@GOTPAGE
Lloh6:
	ldr	x27, [x27, _DIOCGFLUSH@GOTPAGEOFF]
Lloh7:
	adrp	x28, _errno@GOTPAGE
Lloh8:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
Lloh9:
	adrp	x23, _ENOTSUP@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ENOTSUP@GOTPAGEOFF]
	fmov	d8, #1.00000000
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_TS
	lsl	w19, w19, #1
Lloh11:
	adrp	x8, _MAXTX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAXTX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w19, w8
	b.gt	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
	scvtf	d0, w19
	mov	x8, #4562146422526312448
	fmov	d1, x8
	fmul	d0, d0, d1
	str	d0, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	bl	_T0
	mov	w25, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	w25, w25, #250
	bl	_delta_t
	fcmp	d0, d8
	b.pl	LBB0_3
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
	mov	w24, #250
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=3
	mov	w26, #1
	subs	w24, w24, #1
	b.eq	LBB0_5
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	bl	_random
	sdiv	w8, w20, w19
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	mul	w2, w8, w19
	mov	x0, x22
	mov	x1, x19
	bl	_parwrite
	cbnz	w26, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=3
	cbz	w21, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=3
	mov	x0, x22
	bl	_fsync
	tbz	w0, #31, LBB0_14
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w1, [x27]
	mov	x0, x22
	bl	_ioctl
	tbz	w0, #31, LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	x8, [x28]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=3
Lloh16:
	adrp	x8, _EX_IOERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EX_IOERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=3
	mov	w26, #0
	subs	w24, w24, #1
	b.ne	LBB0_8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXTX,4,2                      ; @MAXTX
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"\t%4.4g kbytes: "

	.comm	_DIOCGFLUSH,4,2                 ; @DIOCGFLUSH
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOTSUP,8,3                    ; @ENOTSUP
	.comm	_EX_IOERR,4,2                   ; @EX_IOERR
l_.str.2:                               ; @.str.2
	.asciz	"Flush error"

l_str:                                  ; @str
	.asciz	"Synchronous random writes:"

	.no_dead_strip	_slogbench
.subsections_via_symbols
