	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$5, %edi
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rdi
	movq	_cmdpipe@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rsi
	callq	_sscanf
	movq	16(%rbx), %rdi
	movq	(%r15), %rdx
	addq	$4, %rdx
	movq	%r14, %rsi
	callq	_sscanf
	movq	24(%rbx), %rdi
	movq	_slvpipe@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%r14, %rsi
	callq	_sscanf
	movq	32(%rbx), %rdi
	movq	(%r15), %rdx
	addq	$4, %rdx
	movq	%r14, %rsi
	callq	_sscanf
	xorl	%eax, %eax
	callq	_initscr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movq	%rbx, %rdi
	callq	_process_commands
	jmp	LBB0_5
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_getprogname
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Usage: %s <cmdin> <cmdout> <slvin> slvout>\n"

L_.str.1:                               ## @.str.1
	.asciz	"%d"

	.comm	_cmdpipe,8,3                    ## @cmdpipe
	.comm	_slvpipe,8,3                    ## @slvpipe
L_.str.2:                               ## @.str.2
	.asciz	"initscr failed"

.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w0, #5
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x21, _cmdpipe@GOTPAGE
Lloh1:
	ldr	x21, [x21, _cmdpipe@GOTPAGEOFF]
	ldr	x2, [x21]
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_sscanf
	ldr	x0, [x19, #16]
	ldr	x8, [x21]
	add	x2, x8, #4
	mov	x1, x20
	bl	_sscanf
	ldr	x0, [x19, #24]
Lloh4:
	adrp	x21, _slvpipe@GOTPAGE
Lloh5:
	ldr	x21, [x21, _slvpipe@GOTPAGEOFF]
	ldr	x2, [x21]
	mov	x1, x20
	bl	_sscanf
	ldr	x0, [x19, #32]
	ldr	x8, [x21]
	add	x2, x8, #4
	mov	x1, x20
	bl	_sscanf
	bl	_initscr
	mov	x19, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	mov	x0, x19
	bl	_process_commands
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	bl	_getprogname
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Usage: %s <cmdin> <cmdout> <slvin> slvout>\n"

l_.str.1:                               ; @.str.1
	.asciz	"%d"

	.comm	_cmdpipe,8,3                    ; @cmdpipe
	.comm	_slvpipe,8,3                    ; @slvpipe
l_.str.2:                               ; @.str.2
	.asciz	"initscr failed"

.subsections_via_symbols
