	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteCmd
_WriteCmd:                              ## @WriteCmd
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	%rsp, -312(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	(,%r14,8), %r13
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -320(%rbp)                ## 8-byte Spill
	movq	_CMDRTN_USAGE@GOTPCREL(%rip), %rax
	cmpl	$3, %ebx
	jge	LBB0_4
LBB0_1:
	movq	-312(%rbp), %rbx                ## 8-byte Reload
LBB0_2:
	movl	(%rax), %eax
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%r12), %rax
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	movq	16(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:
	testq	%r14, %r14
	je	LBB0_19
## %bb.6:
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12,%rbx,8), %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-324(%rbp), %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-324(%rbp), %eax
	cmpl	$-128, %eax
	jl	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$256, %eax                      ## imm = 0x100
	jge	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	cltq
	movq	-320(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	leaq	1(%rbx), %r15
	addq	$3, %rbx
	cmpq	%r14, %rbx
	jae	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rbx
	cmpq	%r15, %r13
	ja	LBB0_7
LBB0_12:
	testl	%r15d, %r15d
	movq	-312(%rbp), %rbx                ## 8-byte Reload
	movq	_CMDRTN_USAGE@GOTPCREL(%rip), %rax
	jne	LBB0_17
	jmp	LBB0_2
LBB0_13:
	cmpl	$4, %ebx
	movq	-312(%rbp), %rbx                ## 8-byte Reload
	movq	_CMDRTN_USAGE@GOTPCREL(%rip), %rax
	jne	LBB0_2
## %bb.14:
	movq	24(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movq	%rax, %r13
	shll	$3, %r14d
	movq	-320(%rbp), %rdi                ## 8-byte Reload
	movl	$1, %esi
	movl	%r14d, %edx
	movq	%rax, %rcx
	callq	_fread
	testl	%eax, %eax
	je	LBB0_24
## %bb.16:
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_fclose
LBB0_17:
	movq	-336(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strlen
	leaq	3(%rax), %r14
	movq	%r14, -304(%rbp)
	movq	_AF_NETGRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -292(%rbp)
	movq	%r12, %rsi
	movl	$254, %edx
	callq	_strlcpy
	movq	_dsock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-304(%rbp), %r8
	movq	-320(%rbp), %rsi                ## 8-byte Reload
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_sendto
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.18:
	movq	_CMDRTN_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_19:
	movq	-312(%rbp), %rbx                ## 8-byte Reload
	movq	_CMDRTN_USAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_20:
	movq	16(%r12,%rbx,8), %rsi
	leaq	L_.str.5(%rip), %rdi
	callq	_warnx
	movq	_CMDRTN_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_1
LBB0_21:
	leaq	L_.str.6(%rip), %rdi
	movq	%r12, %rsi
	jmp	LBB0_23
LBB0_22:
	movq	24(%r12), %rsi
	leaq	L_.str.2(%rip), %rdi
LBB0_23:
	callq	_warn
	jmp	LBB0_28
LBB0_24:
	movq	%r13, %rdi
	callq	_ferror
	movq	24(%r12), %rsi
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	jmp	LBB0_27
LBB0_26:
	leaq	L_.str.3(%rip), %rdi
	callq	_warnx
LBB0_27:
	movq	%r13, %rdi
	callq	_fclose
LBB0_28:
	movq	_CMDRTN_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_SIZE,4,2                   ## @BUF_SIZE
	.comm	_CMDRTN_USAGE,4,2               ## @CMDRTN_USAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-f"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"can't read file \"%s\""

	.comm	_CMDRTN_ERROR,4,2               ## @CMDRTN_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"file \"%s\" is empty"

L_.str.4:                               ## @.str.4
	.asciz	"%i"

L_.str.5:                               ## @.str.5
	.asciz	"invalid byte \"%s\""

	.comm	_AF_NETGRAPH,4,2                ## @AF_NETGRAPH
	.comm	_dsock,4,2                      ## @dsock
L_.str.6:                               ## @.str.6
	.asciz	"writing to hook \"%s\""

	.comm	_CMDRTN_OK,4,2                  ## @CMDRTN_OK
	.no_dead_strip	_WriteCmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteCmd
_WriteCmd:                              ; @WriteCmd
	.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
	sub	sp, sp, #288
	mov	x19, sp
	mov	x22, x1
	mov	x20, x0
	mov	x26, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	lsl	x23, x25, #3
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0xffffffff0
	sub	x21, x8, x9
	mov	sp, x21
	cmp	w0, #3
	b.ge	LBB0_2
LBB0_1:
Lloh8:
	adrp	x8, _CMDRTN_USAGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMDRTN_USAGE@GOTPAGEOFF]
	b	LBB0_26
LBB0_2:
	ldp	x24, x0, [x22, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.3:
	cbz	w25, LBB0_1
; %bb.4:
	str	x24, [x19]                      ; 8-byte Folded Spill
	mov	x24, #0
	mov	w27, w20
	add	x28, x22, #16
Lloh12:
	adrp	x25, l_.str.4@PAGE
Lloh13:
	add	x25, x25, l_.str.4@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x28, x24, lsl #3]
	add	x2, x19, #12
	mov	x1, x25
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #12]
	cmn	w8, #128
	b.lt	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #256
	b.ge	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w8
	str	x8, [x21, x24, lsl #3]
	add	x20, x24, #1
	add	x8, x24, #3
	cmp	x8, x27
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x20
	cmp	x23, x20
	b.hi	LBB0_5
LBB0_10:
	ldr	x24, [x19]                      ; 8-byte Folded Reload
	cbnz	w20, LBB0_15
	b	LBB0_1
LBB0_11:
	cmp	w20, #4
	b.ne	LBB0_1
; %bb.12:
	ldr	x0, [x22, #24]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_19
; %bb.13:
	mov	x23, x0
	lsl	w2, w25, #3
	mov	x0, x21
	mov	w1, #1
	mov	x3, x23
	bl	_fread
	cbz	w0, LBB0_21
; %bb.14:
	mov	x20, x0
	mov	x0, x23
	bl	_fclose
LBB0_15:
	mov	x0, x24
	bl	_strlen
	add	x22, x0, #3
	str	x22, [x19, #16]
Lloh16:
	adrp	x8, _AF_NETGRAPH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_NETGRAPH@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	x1, x24
	mov	w2, #254
	bl	_strlcpy
Lloh19:
	adrp	x8, _dsock@GOTPAGE
Lloh20:
	ldr	x8, [x8, _dsock@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x4, x19, #16
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	x5, x22
	bl	_sendto
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.16:
Lloh22:
	adrp	x8, _CMDRTN_OK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CMDRTN_OK@GOTPAGEOFF]
	b	LBB0_26
LBB0_17:
	add	x8, x22, x24, lsl #3
	ldr	x1, [x8, #16]
Lloh24:
	adrp	x0, l_.str.5@PAGE
Lloh25:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_warnx
	b	LBB0_25
LBB0_18:
Lloh26:
	adrp	x0, l_.str.6@PAGE
Lloh27:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x24
	b	LBB0_20
LBB0_19:
	ldr	x1, [x22, #24]
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_20:
	bl	_warn
	b	LBB0_25
LBB0_21:
	mov	x0, x23
	bl	_ferror
	ldr	x1, [x22, #24]
	cbz	x0, LBB0_23
; %bb.22:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_24
LBB0_23:
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
LBB0_24:
	mov	x0, x23
	bl	_fclose
LBB0_25:
Lloh34:
	adrp	x8, _CMDRTN_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CMDRTN_ERROR@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	mov	sp, x26
	ldur	x8, [x29, #-96]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.27:
	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_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_SIZE,4,2                   ; @BUF_SIZE
	.comm	_CMDRTN_USAGE,4,2               ; @CMDRTN_USAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-f"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"can't read file \"%s\""

	.comm	_CMDRTN_ERROR,4,2               ; @CMDRTN_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"file \"%s\" is empty"

l_.str.4:                               ; @.str.4
	.asciz	"%i"

l_.str.5:                               ; @.str.5
	.asciz	"invalid byte \"%s\""

	.comm	_AF_NETGRAPH,4,2                ; @AF_NETGRAPH
	.comm	_dsock,4,2                      ; @dsock
l_.str.6:                               ; @.str.6
	.asciz	"writing to hook \"%s\""

	.comm	_CMDRTN_OK,4,2                  ; @CMDRTN_OK
	.no_dead_strip	_WriteCmd
.subsections_via_symbols
