	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_main_r2pipe
_r_main_r2pipe:                         ## @r_main_r2pipe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_r_sys_getenv
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	callq	_r_sys_getenv
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	%r14, %rdi
	callq	_atoi
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_atoi
	movl	%eax, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r15,8), %rdx
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_r2cmd
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_4
## %bb.5:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_eprintf
	leaq	L_.str.3(%rip), %rdi
	callq	_eprintf
	movl	$1, %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_free
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"R2PIPE_IN"

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

L_.str.2:                               ## @.str.2
	.asciz	"Error: R2PIPE_(IN|OUT) environment not set\n"

L_.str.3:                               ## @.str.3
	.asciz	"Usage: r2 -c '!*r2p x' # run commands via r2pipe\n"

	.no_dead_strip	_r_main_r2pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_main_r2pipe
_r_main_r2pipe:                         ; @r_main_r2pipe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_sys_getenv
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_r_sys_getenv
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintf
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
	mov	w21, #1
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_atoi
	mov	x22, x0
	mov	x0, x20
	bl	_atoi
	cmp	w23, #2
	b.lt	LBB0_5
; %bb.3:
	mov	x24, x0
	mov	w8, w23
	add	x21, x21, #8
	sub	x23, x8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x21], #8
	mov	x0, x22
	mov	x1, x24
	bl	_r2cmd
	subs	x23, x23, #1
	b.ne	LBB0_4
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
	mov	x0, x21
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"R2PIPE_IN"

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

l_.str.2:                               ; @.str.2
	.asciz	"Error: R2PIPE_(IN|OUT) environment not set\n"

l_.str.3:                               ; @.str.3
	.asciz	"Usage: r2 -c '!*r2p x' # run commands via r2pipe\n"

	.no_dead_strip	_r_main_r2pipe
.subsections_via_symbols
