	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function runcmd
_runcmd:                                ## @runcmd
	.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
	movl	$4112, %eax                     ## imm = 0x1010
	callq	____chkstk_darwin
	subq	%rax, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-4144(%rbp), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	___bzero
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_gs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_r_socket_printf
LBB0_2:
	movq	_gs@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	xorl	%ebx, %ebx
	movl	$1, %esi
	movl	$1000000, %edx                  ## imm = 0xF4240
	xorl	%ecx, %ecx
	callq	_r_socket_block_time
	leaq	-4144(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_memset
	movl	(%r12), %edi
	movq	%r14, %rsi
	movl	$4095, %edx                     ## imm = 0xFFF
	callq	_r_socket_read
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strstr
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	leaq	-4144(%rbp), %r14
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_r_str_append
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_memset
	movl	(%r12), %edi
	movq	%r14, %rsi
	movl	$4095, %edx                     ## imm = 0xFFF
	callq	_r_socket_read
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movb	$0, (%rax)
	leaq	-4144(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_r_str_append
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$4112, %rsp                     ## imm = 0x1010
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gs,4,2                         ## @gs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Wine-dbg>"

	.no_dead_strip	_runcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function runcmd
_runcmd:                                ; @runcmd
	.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
	mov	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	add	x0, sp, #8
	mov	w1, #4096
	bl	_bzero
Lloh5:
	adrp	x21, _gs@GOTPAGE
Lloh6:
	ldr	x21, [x21, _gs@GOTPAGEOFF]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_r_socket_printf
LBB0_2:
	ldr	w0, [x21]
	mov	w1, #1
	mov	w2, #16960
	movk	w2, #15, lsl #16
	mov	w3, #0
	bl	_r_socket_block_time
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4096
	bl	_memset
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	w2, #4095
	bl	_r_socket_read
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strstr
	mov	x19, #0
	cbnz	x0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x20, l_.str.1@PAGE
Lloh12:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_r_str_append
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4096
	bl	_memset
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	w2, #4095
	bl	_r_socket_read
	add	x0, sp, #8
	mov	x1, x20
	bl	_strstr
	cbz	x0, LBB0_4
LBB0_5:
	strb	wzr, [x0]
	add	x1, sp, #8
	mov	x0, x19
	bl	_r_str_append
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	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
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_gs,4,2                         ; @gs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Wine-dbg>"

	.no_dead_strip	_runcmd
.subsections_via_symbols
