	.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
	movl	$8216, %eax                     ## imm = 0x2018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movw	$2681, -8242(%rbp)              ## imm = 0xA79
	xorl	%eax, %eax
	callq	_caph_limit_stdio
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_caph_enter
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	cmpl	$2, %ebx
	jl	LBB0_4
LBB0_5:
	movq	8(%r14), %r14
	movq	%r14, %rdi
	callq	_strlen
	movslq	%eax, %r15
	movb	$10, (%r15,%r14)
	incq	%r15
	cmpl	$8192, %r15d                    ## imm = 0x2000
	ja	LBB0_11
## %bb.6:
	cmpl	$8192, %r15d                    ## imm = 0x2000
	jne	LBB0_7
## %bb.16:
	leaq	-8240(%rbp), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	cmpl	$2, %ebx
	jge	LBB0_5
LBB0_4:
	leaq	-8242(%rbp), %r14
	movl	$2, %r15d
	movl	$8190, %r12d                    ## imm = 0x1FFE
	jmp	LBB0_8
LBB0_7:
	movl	$8192, %r12d                    ## imm = 0x2000
	subq	%r15, %r12
LBB0_8:
	xorl	%ebx, %ebx
	leaq	-8240(%rbp), %r13
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbp), %rdi
	addq	$-8240, %rdi                    ## imm = 0xDFD0
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	addq	%r15, %rbx
	cmpq	%r12, %rbx
	jb	LBB0_9
## %bb.10:
	movq	%rbx, %r15
	movq	%r13, %r14
LBB0_11:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_write
	testq	%rax, %rax
	jle	LBB0_14
## %bb.12:
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	subq	%rax, %rbx
	cmoveq	%r15, %rbx
	movl	(%r12), %edi
	movq	%r15, %rsi
	subq	%rbx, %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_write
	testq	%rax, %rax
	jg	LBB0_13
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	xorl	%eax, %eax
	addq	$8216, %rsp                     ## imm = 0x2018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"capsicum"

	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.1:                               ## @.str.1
	.asciz	"stdout"

.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, #-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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w8, #2681
	strh	w8, [sp, #6]
	bl	_caph_limit_stdio
	tbnz	x0, #63, LBB0_6
; %bb.1:
	bl	_caph_enter
	tbnz	x0, #63, LBB0_6
; %bb.2:
	cmp	w20, #2
	b.lt	LBB0_7
LBB0_3:
	ldr	x19, [x19, #8]
	mov	x0, x19
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x21, x8, #1
	add	x8, x21, x19
	mov	w9, #10
	sturb	w9, [x8, #-1]
	cmp	w21, #2, lsl #12                ; =8192
	b.hi	LBB0_8
; %bb.4:
	cmp	w21, #2, lsl #12                ; =8192
	b.ne	LBB0_9
; %bb.5:
	mov	x20, #0
	b	LBB0_12
LBB0_6:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	cmp	w20, #2
	b.ge	LBB0_3
LBB0_7:
	add	x19, sp, #6
	mov	w21, #2
	mov	w22, #8190
	b	LBB0_10
LBB0_8:
	mov	x20, x21
	b	LBB0_13
LBB0_9:
	mov	w8, #8192
	sub	x22, x8, x21
LBB0_10:
	mov	x20, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x8, sp, #8
	add	x0, x8, x20
	mov	x1, x19
	mov	x2, x21
	bl	_memcpy
	add	x20, x20, x21
	cmp	x20, x22
	b.lo	LBB0_11
LBB0_12:
	add	x19, sp, #8
LBB0_13:
Lloh7:
	adrp	x22, _STDOUT_FILENO@GOTPAGE
Lloh8:
	ldr	x22, [x22, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	bl	_write
	cmp	x0, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x21, x20
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	subs	x8, x21, x0
	csel	x21, x20, x8, eq
	ldr	w0, [x22]
	sub	x8, x20, x21
	add	x1, x19, x8
	mov	x2, x21
	bl	_write
	cmp	x0, #0
	b.gt	LBB0_15
LBB0_16:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #16
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"capsicum"

	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.1:                               ; @.str.1
	.asciz	"stdout"

.subsections_via_symbols
