	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_shell                       ## -- Begin function ex_shell
	.p2align	4, 0x90
_ex_shell:                              ## @ex_shell
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_O_SHELL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_opts_empty
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_O_STR
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movl	%eax, %edx
	callq	_asprintf
	cmpq	$0, -40(%rbp)
	je	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%rax)
	movq	-40(%rbp), %r14
	movq	_SC_SCR_EXWROTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_ISSET
	xorl	%r8d, %r8d
	testl	%eax, %eax
	sete	%r8b
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_ex_exec_proc
	movl	%eax, %r14d
	movq	-40(%rbp), %rdi
	callq	_free
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	*(%rcx)
	movq	_SC_EX_WAIT_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_F_SET
	jmp	LBB0_4
LBB0_2:
	movq	_M_SYSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_msgq
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_SHELL,4,2                    ## @O_SHELL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s -i"

	.comm	_M_SYSERR,4,2                   ## @M_SYSERR
	.comm	_SC_SCR_EXWROTE,4,2             ## @SC_SCR_EXWROTE
	.comm	_SC_EX_WAIT_NO,4,2              ## @SC_EX_WAIT_NO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_shell                       ; -- Begin function ex_shell
	.p2align	2
_ex_shell:                              ; @ex_shell
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _O_SHELL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _O_SHELL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_opts_empty
	cbz	x0, LBB0_2
LBB0_1:
	mov	w20, #1
	b	LBB0_4
LBB0_2:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_O_STR
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	blr	x8
	ldr	x21, [sp, #8]
Lloh4:
	adrp	x8, _SC_SCR_EXWROTE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SC_SCR_EXWROTE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_ISSET
	cmp	w0, #0
	cset	w4, eq
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, #0
	bl	_ex_exec_proc
	mov	x20, x0
	ldr	x0, [sp, #8]
	bl	_free
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	ldr	x1, [x9]
	mov	x0, x19
	mov	w2, #1
	blr	x8
Lloh7:
	adrp	x8, _SC_EX_WAIT_NO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SC_EX_WAIT_NO@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
LBB0_4:
	mov	x0, x20
	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
LBB0_5:
Lloh10:
	adrp	x8, _M_SYSERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_SYSERR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_msgq
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_O_SHELL,4,2                    ; @O_SHELL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s -i"

	.comm	_M_SYSERR,4,2                   ; @M_SYSERR
	.comm	_SC_SCR_EXWROTE,4,2             ; @SC_SCR_EXWROTE
	.comm	_SC_EX_WAIT_NO,4,2              ; @SC_EX_WAIT_NO
.subsections_via_symbols
