	.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	$32824, %eax                    ## imm = 0x8038
	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	%rsp, -32856(%rbp)              ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_MODIFICATIONS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rax
	movq	%rax, -32832(%rbp)              ## 8-byte Spill
	movq	%rax, -32848(%rbp)              ## 8-byte Spill
	leaq	L_.str(%rip), %r15
	movq	_optarg@GOTPCREL(%rip), %r13
	movl	$0, -32824(%rbp)                ## 4-byte Folded Spill
	movl	$0, -32820(%rbp)                ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$119, %eax
	je	LBB0_1
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$109, %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	$1, %al
	movl	%eax, -32824(%rbp)              ## 4-byte Spill
	jmp	LBB0_2
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-32820(%rbp), %eax              ## 4-byte Reload
	cmpl	(%r12), %eax
	jl	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_errx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movl	-32820(%rbp), %ecx              ## 4-byte Reload
	movslq	%ecx, %rax
	incl	%ecx
	movl	%ecx, -32820(%rbp)              ## 4-byte Spill
	leaq	(%rax,%rax,2), %rax
	movq	-32832(%rbp), %rcx              ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rsi
	callq	_parse_modification
	jmp	LBB0_2
LBB0_5:
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32816(%rbp), %rsi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_read
	movq	%rax, %rbx
	movl	-32820(%rbp), %eax              ## 4-byte Reload
	movq	%rax, -32840(%rbp)              ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.13:
	addq	$16, -32832(%rbp)               ## 8-byte Folded Spill
	xorl	%r12d, %r12d
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %r15
	leaq	-32816(%rbp), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	%rbx, %r12
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$32768, %edx                    ## imm = 0x8000
	callq	_read
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	cmpl	$0, -32820(%rbp)                ## 4-byte Folded Reload
	jle	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%rbx,%r12), %rax
	movq	-32840(%rbp), %rcx              ## 8-byte Reload
	movq	-32832(%rbp), %rdx              ## 8-byte Reload
	jmp	LBB0_16
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	-32816(%rbp,%rsi,4), %edi
	andl	(%rdx), %edi
	orl	-4(%rdx), %edi
	movl	%edi, -32816(%rbp,%rsi,4)
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=2
	addq	$24, %rdx
	decq	%rcx
	je	LBB0_23
LBB0_16:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-16(%rdx), %rdi
	movq	%rdi, %rsi
	subq	%r12, %rsi
	jb	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rax, %rdi
	jae	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	-8(%rdx), %edi
	cmpl	$129, %edi
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=2
	cmpl	$128, %edi
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	(%rdx), %edi
	xorl	%edi, -32816(%rbp,%rsi,4)
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edi
	movq	%rbx, %rdx
	subq	%r13, %rdx
	movq	%r14, %rsi
	callq	_write
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	addq	%rax, %r13
	cmpq	%r13, %rbx
	ja	LBB0_24
	jmp	LBB0_26
LBB0_6:
	xorl	%r12d, %r12d
LBB0_7:
	cmpl	$0, -32820(%rbp)                ## 4-byte Folded Reload
	setg	%al
	movl	-32824(%rbp), %ecx              ## 4-byte Reload
	andb	%al, %cl
	cmpb	$1, %cl
	jne	LBB0_8
## %bb.27:
	xorl	%ebx, %ebx
	movq	_stderr@GOTPCREL(%rip), %r15
	leaq	L_.str.4(%rip), %r14
	xorl	%eax, %eax
	movq	-32848(%rbp), %rcx              ## 8-byte Reload
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=1
	incq	%rbx
	addq	$24, %rcx
	cmpq	-32840(%rbp), %rbx              ## 8-byte Folded Reload
	jae	LBB0_31
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, (%rcx)
	jb	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r15), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movq	%rcx, %r13
	callq	_fprintf
	movq	%r13, %rcx
	movl	$1, %eax
	jmp	LBB0_30
LBB0_8:
	xorl	%eax, %eax
LBB0_31:
	movq	-32856(%rbp), %rsp              ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_33
## %bb.32:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MODIFICATIONS,4,2          ## @MAX_MODIFICATIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wm:"

L_.str.1:                               ## @.str.1
	.asciz	"Too many modifications"

	.comm	_optarg,4,2                     ## @optarg
	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_errno,8,3                      ## @errno
	.comm	_EAGAIN,8,3                     ## @EAGAIN
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"modpipe: warning - mod %u not reached\n"

.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
	mov	w9, #32800
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #8, lsl #12             ; =32768
	sub	sp, sp, #32
	mov	x19, sp
	mov	x20, x1
	mov	x21, x0
	mov	x8, sp
	str	x8, [x19]                       ; 8-byte Folded Spill
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh5:
	adrp	x24, _MAX_MODIFICATIONS@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MAX_MODIFICATIONS@GOTPAGEOFF]
	ldr	w8, [x24]
	add	x8, x8, x8, lsl #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x3ffffffff0
	sub	x25, x9, x8
	mov	sp, x25
	str	wzr, [x19, #12]                 ; 4-byte Folded Spill
	mov	w27, #0
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
Lloh11:
	adrp	x26, _optarg@GOTPAGE
Lloh12:
	ldr	x26, [x26, _optarg@GOTPAGEOFF]
	mov	w28, #24
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	cmp	w0, #119
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w0, #109
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_usage
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #1
	str	w8, [x19, #12]                  ; 4-byte Folded Spill
	b	LBB0_1
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x24]
	cmp	w27, w8
	b.lt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x26]
	add	w23, w27, #1
	smaddl	x1, w27, w28, x25
	bl	_parse_modification
	mov	x27, x23
	b	LBB0_1
LBB0_9:
Lloh15:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x23, x19, #16
	add	x1, x19, #16
	mov	w2, #32768
	bl	_read
	cbz	x0, LBB0_23
; %bb.10:
	mov	x20, x0
	mov	x22, #0
	add	x28, x25, #16
Lloh18:
	adrp	x24, _STDOUT_FILENO@GOTPAGE
Lloh19:
	ldr	x24, [x24, _STDOUT_FILENO@GOTPAGEOFF]
	mov	w26, w27
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_21 Depth 2
	cmp	w27, #1
	b.lt	LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x8, x20, x22
	mov	x9, x26
	mov	x10, x28
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=2
	lsl	x11, x11, #2
	ldr	w12, [x23, x11]
	ldr	w13, [x10]
	and	w12, w12, w13
	ldur	w13, [x10, #-4]
	orr	w12, w13, w12
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=2
	str	w12, [x23, x11]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	add	x10, x10, #24
	subs	x9, x9, #1
	b.eq	LBB0_20
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x12, [x10, #-16]
	subs	x11, x12, x22
	ccmp	x12, x8, #2, hs
	b.hs	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	ldur	w12, [x10, #-8]
	cmp	w12, #129
	b.eq	LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	cmp	w12, #128
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=2
	ldr	w12, [x10]
	lsl	x11, x11, #2
	ldr	w13, [x23, x11]
	eor	w12, w13, w12
	b	LBB0_14
LBB0_20:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, #0
LBB0_21:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	sub	x2, x20, x21
	add	x1, x19, #16
	bl	_write
	add	x21, x0, x21
	cmp	x0, #0
	ccmp	x20, x21, #0, ne
	b.hi	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x20, x22
Lloh20:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	add	x1, x19, #16
	mov	w2, #32768
	bl	_read
	mov	x20, x0
	cbnz	x0, LBB0_11
	b	LBB0_24
LBB0_23:
	mov	x22, #0
LBB0_24:
	cmp	w27, #0
	cset	w8, gt
	ldr	w9, [x19, #12]                  ; 4-byte Folded Reload
	and	w8, w9, w8
	cmp	w8, #1
	b.ne	LBB0_29
; %bb.25:
	mov	x20, #0
	mov	x0, #0
	mov	w23, w27
Lloh23:
	adrp	x24, _stderr@GOTPAGE
Lloh24:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
Lloh25:
	adrp	x21, l_.str.4@PAGE
Lloh26:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x20, x20, #1
	add	x25, x25, #24
	cmp	x20, x23
	b.hs	LBB0_30
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	cmp	x8, x22
	b.lo	LBB0_26
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x20
	bl	_fprintf
	mov	w0, #1
	b	LBB0_26
LBB0_29:
	mov	x0, #0
LBB0_30:
	ldr	x8, [x19]                       ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-96]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.31:
                                        ; kill: def $w0 killed $w0 killed $x0
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MODIFICATIONS,4,2          ; @MAX_MODIFICATIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wm:"

l_.str.1:                               ; @.str.1
	.asciz	"Too many modifications"

	.comm	_optarg,4,2                     ; @optarg
	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_errno,8,3                      ; @errno
	.comm	_EAGAIN,8,3                     ; @EAGAIN
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"modpipe: warning - mod %u not reached\n"

.subsections_via_symbols
