	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
	movq	_EX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_2:
	movq	%rsi, %r13
	movq	_EX_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%edi, %r15d
	movl	$1, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_close
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r12,8), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_fsync
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13,%r12,8), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movq	_EX_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13,%r12,8), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movq	_EX_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_EX_NOINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_10
LBB0_11:
	movl	%r14d, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_OK,4,2                      ## @EX_OK
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open %s"

	.comm	_EX_NOINPUT,4,2                 ## @EX_NOINPUT
L_.str.1:                               ## @.str.1
	.asciz	"fsync %s"

	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
	bl	_usage
Lloh0:
	adrp	x8, _EX_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EX_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_exit
LBB0_2:
Lloh3:
	adrp	x23, _EX_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EX_OK@GOTPAGEOFF]
	ldr	w19, [x23]
	mov	w8, w0
	add	x24, x1, #8
	sub	x25, x8, #1
Lloh5:
	adrp	x26, _O_RDONLY@GOTPAGE
Lloh6:
	ldr	x26, [x26, _O_RDONLY@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
Lloh9:
	adrp	x27, _EX_NOINPUT@GOTPAGE
Lloh10:
	ldr	x27, [x27, _EX_NOINPUT@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh13:
	adrp	x28, _EX_OSERR@GOTPAGE
Lloh14:
	ldr	x28, [x28, _EX_OSERR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_close
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #8
	subs	x25, x25, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	ldr	w1, [x26]
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	bl	_fsync
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x24]
	mov	x0, x21
	bl	_warn
	ldr	w8, [x23]
	ldr	w9, [x28]
	cmp	w19, w8
	csel	w19, w9, w19, eq
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [x24]
	mov	x0, x20
	bl	_warn
	ldr	w8, [x23]
	ldr	w9, [x27]
	cmp	w19, w8
	csel	w19, w9, w19, eq
	b	LBB0_4
LBB0_9:
	mov	x0, x19
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_OK,4,2                      ; @EX_OK
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open %s"

	.comm	_EX_NOINPUT,4,2                 ; @EX_NOINPUT
l_.str.1:                               ; @.str.1
	.asciz	"fsync %s"

	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
.subsections_via_symbols
