	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yrmcds_connect                 ## -- Begin function yrmcds_connect
	.p2align	4, 0x90
_yrmcds_connect:                        ## @yrmcds_connect
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	72(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_YRMCDS_SYSTEM_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_YRMCDS_BAD_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_connect_to_server
	movq	_YRMCDS_OK@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_9
## %bb.5:
	movl	-36(%rbp), %eax
	movl	%eax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 80(%rbx)
	movl	$1048576, %edi                  ## imm = 0x100000
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$1048576, 16(%rbx)              ## imm = 0x100000
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	movq	(%r15), %rax
	jmp	LBB0_9
LBB0_7:
	movl	-36(%rbp), %edi
	callq	_close
	movq	%r14, %rdi
	callq	_pthread_mutex_destroy
	movq	_YRMCDS_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_YRMCDS_BAD_ARGUMENT,8,3        ## @YRMCDS_BAD_ARGUMENT
	.comm	_errno,4,2                      ## @errno
	.comm	_YRMCDS_SYSTEM_ERROR,8,3        ## @YRMCDS_SYSTEM_ERROR
	.comm	_YRMCDS_OK,8,3                  ## @YRMCDS_OK
	.comm	_YRMCDS_OUT_OF_MEMORY,8,3       ## @YRMCDS_OUT_OF_MEMORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yrmcds_connect                 ; -- Begin function yrmcds_connect
	.p2align	2
_yrmcds_connect:                        ; @yrmcds_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x20, x0, #72
	mov	x0, x20
	mov	x1, #0
	bl	_pthread_mutex_init
	cbz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, _YRMCDS_SYSTEM_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _YRMCDS_SYSTEM_ERROR@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _YRMCDS_BAD_ARGUMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _YRMCDS_BAD_ARGUMENT@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x8]
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_connect_to_server
Lloh7:
	adrp	x21, _YRMCDS_OK@GOTPAGE
Lloh8:
	ldr	x21, [x21, _YRMCDS_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.7:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	stp	xzr, xzr, [x19, #80]
	mov	w22, #1048576
	mov	w0, #1048576
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.8:
	str	w22, [x19, #16]
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #24]
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
	ldr	x0, [x21]
	b	LBB0_5
LBB0_9:
	ldr	w0, [sp, #12]
	bl	_close
	mov	x0, x20
	bl	_pthread_mutex_destroy
Lloh9:
	adrp	x8, _YRMCDS_OUT_OF_MEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _YRMCDS_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_YRMCDS_BAD_ARGUMENT,8,3        ; @YRMCDS_BAD_ARGUMENT
	.comm	_errno,4,2                      ; @errno
	.comm	_YRMCDS_SYSTEM_ERROR,8,3        ; @YRMCDS_SYSTEM_ERROR
	.comm	_YRMCDS_OK,8,3                  ; @YRMCDS_OK
	.comm	_YRMCDS_OUT_OF_MEMORY,8,3       ; @YRMCDS_OUT_OF_MEMORY
.subsections_via_symbols
