	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __rap_attach
___rap_attach:                          ## @__rap_attach
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_strcmp
	testl	%eax, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_eprintf
LBB0_4:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rap"

L_.str.1:                               ## @.str.1
	.asciz	"SUCCESS: rap attach with inferior rap rio worked\n"

L_.str.2:                               ## @.str.2
	.asciz	"ERROR: Underlying IO descriptor is not a rap one..\n"

	.no_dead_strip	___rap_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __rap_attach
___rap_attach:                          ; @__rap_attach
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x1, [x8]
	cbz	x1, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strcmp
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w0, #0
	csel	x0, x9, x8, eq
	bl	_eprintf
LBB0_4:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rap"

l_.str.1:                               ; @.str.1
	.asciz	"SUCCESS: rap attach with inferior rap rio worked\n"

l_.str.2:                               ; @.str.2
	.asciz	"ERROR: Underlying IO descriptor is not a rap one..\n"

	.no_dead_strip	___rap_attach
.subsections_via_symbols
