	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___libc_system                  ## -- Begin function __libc_system
	.p2align	4, 0x90
___libc_system:                         ## @__libc_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	-76(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	movq	_SIGCHLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIGINT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIGQUIT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rsi
	callq	___libc_sigprocmask
	callq	_vfork
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.3:
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	movl	%eax, %r14d
	leaq	-72(%rbp), %rbx
	xorl	%r15d, %r15d
	movl	$8, %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_memset
	movq	_SIG_IGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	%rbx, %rdi
	callq	_sigemptyset
	movl	(%r13), %edi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rsi
	callq	___libc_sigaction
	movl	(%r12), %edi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rsi
	callq	___libc_sigaction
	leaq	-48(%rbp), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %ecx
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	__wait4
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
LBB0_7:
	movl	%ebx, %r15d
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	movl	%eax, %r14d
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdx
	callq	___libc_sigaction
	movq	_SIGQUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdx
	callq	___libc_sigaction
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdx
	callq	___libc_sigprocmask
	cmpl	$-1, %ebx
	je	LBB0_9
## %bb.8:
	movl	-48(%rbp), %r15d
LBB0_9:
	movl	%r15d, %eax
	jmp	LBB0_10
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_10
LBB0_11:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	movl	%eax, %edx
	leaq	-44(%rbp), %rsi
	callq	___libc_sigprocmask
	movl	$-1, %eax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	movl	%eax, %ebx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdx
	callq	___sys_sigprocmask
	movq	__PATH_BSHELL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_execl
	movl	$127, %edi
	callq	__exit
	.cfi_endproc
                                        ## -- End function
	.comm	_SIGCHLD,4,2                    ## @SIGCHLD
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIGQUIT,4,2                    ## @SIGQUIT
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	__PATH_BSHELL,4,2               ## @_PATH_BSHELL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sh"

L_.str.1:                               ## @.str.1
	.asciz	"-c"

	.comm	_SIG_IGN,4,2                    ## @SIG_IGN
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___libc_system                  ; -- Begin function __libc_system
	.p2align	2
___libc_system:                         ; @__libc_system
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x20, sp, #12
	mov	x0, x20
	bl	_sigemptyset
Lloh0:
	adrp	x8, _SIGCHLD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIGCHLD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sigaddset
Lloh3:
	adrp	x23, _SIGINT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SIGINT@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_sigaddset
Lloh5:
	adrp	x22, _SIGQUIT@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SIGQUIT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_sigaddset
Lloh7:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	x1, x20
	bl	___libc_sigprocmask
	bl	_vfork
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	cbz	w0, LBB0_9
; %bb.3:
	mov	x20, x0
	mov	w1, #0
	add	x19, sp, #32
	mov	w2, #8
	mov	x0, x19
	bl	_memset
Lloh10:
	adrp	x8, _SIG_IGN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIG_IGN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	mov	x0, x19
	bl	_sigemptyset
	ldr	w0, [x23]
	add	x2, sp, #24
	mov	x1, x19
	bl	___libc_sigaction
	ldr	w0, [x22]
	add	x2, sp, #16
	mov	x1, x19
	bl	___libc_sigaction
	add	x21, sp, #44
Lloh13:
	adrp	x24, _errno@GOTPAGE
Lloh14:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh15:
	adrp	x25, _EINTR@GOTPAGE
Lloh16:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w2, #0
	mov	x3, #0
	mov	x0, x20
	mov	x1, x21
	bl	__wait4
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmn	w0, #1
	ccmp	x8, x9, #0, eq
	b.eq	LBB0_4
; %bb.5:
	mov	x19, x0
	ldr	w0, [x23]
	mov	x20, #0
	add	x1, sp, #24
	mov	x2, #0
	bl	___libc_sigaction
	ldr	w0, [x22]
	add	x1, sp, #16
	mov	x2, x20
	bl	___libc_sigaction
Lloh17:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, x20
	bl	___libc_sigprocmask
	ldr	w8, [sp, #44]
	cmn	w19, #1
	csinv	w0, w8, wzr, ne
	b	LBB0_8
LBB0_6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x2, #0
	add	x1, sp, #8
	bl	___libc_sigprocmask
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
Lloh23:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x20, #0
	add	x1, sp, #8
	mov	x2, #0
	bl	___sys_sigprocmask
Lloh26:
	adrp	x8, __PATH_BSHELL@GOTPAGE
Lloh27:
	ldr	x8, [x8, __PATH_BSHELL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x19
	mov	x4, x20
	bl	_execl
	mov	w0, #127
	bl	__exit
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SIGCHLD,4,2                    ; @SIGCHLD
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIGQUIT,4,2                    ; @SIGQUIT
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	__PATH_BSHELL,4,2               ; @_PATH_BSHELL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sh"

l_.str.1:                               ; @.str.1
	.asciz	"-c"

	.comm	_SIG_IGN,4,2                    ; @SIG_IGN
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
.subsections_via_symbols
