	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	xorl	%edx, %edx
	callq	___plugin_open
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_iob_select
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	9(%rbx), %r14
	movq	%r14, %rdi
	callq	_iob_open
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r13
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_eprintf
	movq	%r13, %rdi
	callq	_windbg_ctx_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	_r_io_plugin_windbg@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	%rax, %r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r_io_desc_new                  ## TAILCALL
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	callq	_eprintf
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %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	"pipe"

L_.str.1:                               ## @.str.1
	.asciz	"Could not initialize the IO backend\n"

L_.str.2:                               ## @.str.2
	.asciz	"Could not open the pipe\n"

L_.str.3:                               ## @.str.3
	.asciz	"Opened pipe %s with fd %p\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to initialize windbg context\n"

	.comm	_r_io_plugin_windbg,4,2         ## @r_io_plugin_windbg
	.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x22, x0
	mov	w2, #0
	bl	___plugin_open
	cbz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_iob_select
	cbz	w0, LBB0_5
; %bb.2:
	add	x24, x21, #9
	mov	x0, x24
	bl	_iob_open
	cbz	x0, LBB0_6
; %bb.3:
	mov	x23, x0
	stp	x24, x0, [sp]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
	mov	x0, x23
	bl	_windbg_ctx_new
	cbz	x0, LBB0_7
; %bb.4:
	mov	x5, x0
Lloh4:
	adrp	x1, _r_io_plugin_windbg@GOTPAGE
Lloh5:
	ldr	x1, [x1, _r_io_plugin_windbg@GOTPAGEOFF]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_r_io_desc_new
LBB0_5:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_8:
	bl	_eprintf
LBB0_9:
	mov	x0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pipe"

l_.str.1:                               ; @.str.1
	.asciz	"Could not initialize the IO backend\n"

l_.str.2:                               ; @.str.2
	.asciz	"Could not open the pipe\n"

l_.str.3:                               ; @.str.3
	.asciz	"Opened pipe %s with fd %p\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to initialize windbg context\n"

	.comm	_r_io_plugin_windbg,4,2         ; @r_io_plugin_windbg
	.no_dead_strip	___open
.subsections_via_symbols
