	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_core_rtr_rap_run
_r_core_rtr_rap_run:                    ## @r_core_rtr_rap_run
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_r_str_newf
	movq	_R_PERM_RW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%rbx), %edi
	movq	%rax, %rsi
	movl	$420, %ecx                      ## imm = 0x1A4
	callq	_r_io_open_nomap
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_r_io_is_listener
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_r_core_serve
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rax
	movl	$1, (%rax)
LBB0_4:
	movq	%r14, %rdi
	callq	_r_io_desc_close
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rax
	movl	$1, (%rax)
LBB0_6:
	xorl	%eax, %eax
	callq	_r_cons_singleton
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	sete	%al
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rap://%s"

	.comm	_R_PERM_RW,4,2                  ## @R_PERM_RW
	.no_dead_strip	_r_core_rtr_rap_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_core_rtr_rap_run
_r_core_rtr_rap_run:                    ; @r_core_rtr_rap_run
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_str_newf
	mov	x1, x0
Lloh2:
	adrp	x8, _R_PERM_RW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_PERM_RW@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w0, [x19]
	mov	w3, #420
	bl	_r_io_open_nomap
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19]
	bl	_r_io_is_listener
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_r_core_serve
	cbnz	w0, LBB0_4
; %bb.3:
	bl	_r_cons_singleton
	ldr	x8, [x0]
	mov	w9, #1
	str	w9, [x8]
LBB0_4:
	mov	x0, x20
	bl	_r_io_desc_close
	b	LBB0_6
LBB0_5:
	bl	_r_cons_singleton
	ldr	x8, [x0]
	mov	w9, #1
	str	w9, [x8]
LBB0_6:
	bl	_r_cons_singleton
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rap://%s"

	.comm	_R_PERM_RW,4,2                  ; @R_PERM_RW
	.no_dead_strip	_r_core_rtr_rap_run
.subsections_via_symbols
