	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __system
___system:                              ## @__system
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	testq	%rdi, %rdi
	setne	%al
	testq	%rsi, %rsi
	setne	%cl
	andb	%al, %cl
	testq	%rdx, %rdx
	setne	%al
	andb	%cl, %al
	movzbl	%al, %edi
	xorl	%esi, %esi
	callq	_r_return_val_if_fail
	xorl	%eax, %eax
	callq	_pj_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pj_o
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_pj_ks
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_pj_ks
	movq	%rbx, %rdi
	callq	_pj_end
	movq	%rbx, %rdi
	callq	_pj_string
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_R2P
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_r2pipe_write
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_pj_free
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_R2P
	movl	%eax, %edi
	callq	_r2pipe_read
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rax, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	$7, %rax
	movq	%rax, %rdi
	callq	_atoi
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_eprintf
LBB0_4:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_eprintf
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"op"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"r2pipe_write: error\n"

L_.str.4:                               ## @.str.4
	.asciz	"result"

L_.str.5:                               ## @.str.5
	.asciz	"RESULT %d\n"

	.no_dead_strip	___system
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __system
___system:                              ; @__system
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x19, x1
	cmp	x0, #0
	ccmp	x1, #0, #4, ne
	ccmp	x2, #0, #4, ne
	cset	w0, ne
	mov	x1, #0
	bl	_r_return_val_if_fail
	bl	_pj_new
	mov	x21, x0
	bl	_pj_o
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_pj_ks
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_pj_ks
	mov	x0, x21
	bl	_pj_end
	mov	x0, x21
	bl	_pj_string
	mov	x20, x0
	mov	x0, x19
	bl	_R2P
	mov	x1, x20
	bl	_r2pipe_write
	mov	x20, x0
	mov	x0, x21
	bl	_pj_free
	cmp	w20, #0
	b.le	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_R2P
	bl	_r2pipe_read
	mov	x19, x0
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x0, #7
	bl	_atoi
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_eprintf
LBB0_3:
	mov	x0, x19
	bl	_free
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
LBB0_5:
	mov	x0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"op"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"r2pipe_write: error\n"

l_.str.4:                               ; @.str.4
	.asciz	"result"

l_.str.5:                               ; @.str.5
	.asciz	"RESULT %d\n"

	.no_dead_strip	___system
.subsections_via_symbols
