	.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
	movq	%rsi, %rbx
	movl	%edi, %r15d
	leaq	L_.str(%rip), %rdx
	callq	_getopt
	movq	_EOF@GOTPCREL(%rip), %r13
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
	cmpl	(%r13), %eax
	jne	LBB0_1
LBB0_9:
	movq	_optind@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decl	%r15d
	cmpl	%r15d, %eax
	jne	LBB0_11
## %bb.10:
	movq	(%rbx,%rax,8), %r15
	jmp	LBB0_12
LBB0_1:
	movq	_optarg@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r12
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_atoll
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	(%r13), %eax
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$115, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$110, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$108, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	callq	_atoll
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	callq	_usage
	jmp	LBB0_8
LBB0_11:
	movq	(%rbx), %rdi
	callq	_usage
                                        ## implicit-def: $r15
LBB0_12:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_malloc
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movq	_O_CREAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	%rax, %r14
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_write
	cmpq	%rbx, %rax
	jb	LBB0_15
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_fprintf
LBB0_17:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_17
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"l:s:n:"

	.comm	_EOF,4,2                        ## @EOF
	.comm	_optarg,4,2                     ## @optarg
	.comm	_optind,4,2                     ## @optind
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
L_.str.1:                               ## @.str.1
	.asciz	"open"

L_.str.2:                               ## @.str.2
	.asciz	"write"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"fcntl: F_FREESP not supported\n"

	.comm	_F_FREESP,4,2                   ## @F_FREESP
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_getopt
Lloh2:
	adrp	x23, _EOF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
	ldr	w8, [x23]
                                        ; implicit-def: $x19
	cmp	w0, w8
	b.ne	LBB0_3
LBB0_1:
Lloh4:
	adrp	x8, _optind@GOTPAGE
Lloh5:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh6:
	ldrsw	x8, [x8]
	sub	w9, w21, #1
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.2:
	ldr	x21, [x20, x8, lsl #3]
	b	LBB0_12
LBB0_3:
Lloh7:
	adrp	x24, _optarg@GOTPAGE
Lloh8:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
                                        ; implicit-def: $x19
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	bl	_atoll
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w0, #115
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #110
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #108
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x24]
	bl	_atoll
	mov	x19, x0
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20]
	bl	_usage
	b	LBB0_5
LBB0_11:
	ldr	x0, [x20]
	bl	_usage
                                        ; implicit-def: $x21
LBB0_12:
	mov	x0, x19
	bl	_malloc
	mov	x20, x0
Lloh11:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x21
	bl	_open
	tbnz	w0, #31, LBB0_16
; %bb.13:
	mov	x1, x20
	mov	x2, x19
	bl	_write
	cmp	x0, x19
	b.lo	LBB0_17
; %bb.14:
Lloh20:
	adrp	x8, _stderr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_15:
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_15
LBB0_17:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"l:s:n:"

	.comm	_EOF,4,2                        ; @EOF
	.comm	_optarg,4,2                     ; @optarg
	.comm	_optind,4,2                     ; @optind
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
l_.str.1:                               ; @.str.1
	.asciz	"open"

l_.str.2:                               ; @.str.2
	.asciz	"write"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"fcntl: F_FREESP not supported\n"

	.comm	_F_FREESP,4,2                   ; @F_FREESP
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
