	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swlib_connect                  ## -- Begin function swlib_connect
	.p2align	4, 0x90
_swlib_connect:                         ## @swlib_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_refcount@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_swlib_priv_init
	testq	%rax, %rax
	js	LBB0_5
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, -40(%rbp)
	movq	%r14, -48(%rbp)
	movq	_SWITCH_CMD_GET_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_add_switch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	xorl	%edx, %edx
	callq	_swlib_call
	cmpl	$0, (%r15)
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_swlib_priv_free
LBB0_4:
	movq	-40(%rbp), %rbx
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_refcount,4,2                   ## @refcount
	.comm	_SWITCH_CMD_GET_SWITCH,4,2      ## @SWITCH_CMD_GET_SWITCH
	.comm	_add_switch,4,2                 ## @add_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swlib_connect                  ; -- Begin function swlib_connect
	.p2align	2
_swlib_connect:                         ; @swlib_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x20, _refcount@GOTPAGE
Lloh1:
	ldr	x20, [x20, _refcount@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_swlib_priv_init
	tbnz	x0, #63, LBB0_6
LBB0_2:
	stp	xzr, xzr, [sp, #16]
	str	x19, [sp, #8]
Lloh2:
	adrp	x8, _SWITCH_CMD_GET_SWITCH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SWITCH_CMD_GET_SWITCH@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _add_switch@GOTPAGE
Lloh6:
	ldr	x8, [x8, _add_switch@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x2, #0
	bl	_swlib_call
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
; %bb.3:
	bl	_swlib_priv_free
LBB0_4:
	ldr	x0, [sp, #16]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_refcount,4,2                   ; @refcount
	.comm	_SWITCH_CMD_GET_SWITCH,4,2      ; @SWITCH_CMD_GET_SWITCH
	.comm	_add_switch,4,2                 ; @add_switch
.subsections_via_symbols
