	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __open
___open:                                ## @__open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%edx, %edx
	callq	___plugin_open
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_gs@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jne	LBB0_5
## %bb.2:
	xorl	%edi, %edi
	callq	_r_socket_new
	movq	%rax, (%r13)
	leaq	10(%r12), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_r_str_newf
	movq	%rax, %rbx
	movq	(%r13), %rdi
	movq	%rax, %rsi
	movl	$1000, %edx                     ## imm = 0x3E8
	callq	_r_socket_spawn
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r14d, %ebx
	callq	_free
	testl	%r13d, %r13d
	movq	_gs@GOTPCREL(%rip), %r14
	je	LBB0_5
## %bb.3:
	xorl	%edi, %edi
	callq	_runcmd
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %rdi
	callq	_free
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
	movq	(%r14), %r9
	movq	_r_io_plugin_winedbg@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	$7, %ecx
	movl	%ebx, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r_io_desc_new                  ## TAILCALL
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_eprintf
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gs,8,3                         ## @gs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"winedbg '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"Wine-dbg is ready to go!\n"

	.comm	_r_io_plugin_winedbg,4,2        ## @r_io_plugin_winedbg
L_.str.2:                               ## @.str.2
	.asciz	"Can't find the Wine-dbg prompt\n"

	.no_dead_strip	___open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __open
___open:                                ; @__open
	.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	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	w2, #0
	bl	___plugin_open
	cbz	x0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x24, _gs@GOTPAGE
Lloh1:
	ldr	x24, [x24, _gs@GOTPAGEOFF]
	ldr	x8, [x24]
	cbnz	x8, LBB0_6
; %bb.2:
	mov	w0, #0
	bl	_r_socket_new
	str	x0, [x24]
	add	x1, x20, #10
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_str_newf
	mov	x22, x0
	ldr	x0, [x24]
	mov	x1, x22
	mov	w2, #1000
	bl	_r_socket_spawn
	mov	x23, x0
	mov	x0, x22
	bl	_free
	cbz	w23, LBB0_6
; %bb.3:
	mov	x0, #0
	bl	_runcmd
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
	ldr	x5, [x24]
Lloh6:
	adrp	x1, _r_io_plugin_winedbg@GOTPAGE
Lloh7:
	ldr	x1, [x1, _r_io_plugin_winedbg@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x20
	mov	w3, #7
	mov	x4, x19
	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
	b	_r_io_desc_new
LBB0_5:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_eprintf
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_gs,8,3                         ; @gs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"winedbg '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"Wine-dbg is ready to go!\n"

	.comm	_r_io_plugin_winedbg,4,2        ; @r_io_plugin_winedbg
l_.str.2:                               ; @.str.2
	.asciz	"Can't find the Wine-dbg prompt\n"

	.no_dead_strip	___open
.subsections_via_symbols
