	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function conn_close_socket
_conn_close_socket:                     ## @conn_close_socket
	.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
	movl	(%rdi), %edi
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %r14
	cmpl	(%r14), %edi
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_BIO_CONN_S_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	$2, %esi
	callq	_shutdown
	movl	(%rbx), %edi
LBB0_3:
	callq	_BIO_closesocket
	movl	(%r14), %eax
	movl	%eax, (%rbx)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_SOCKET,8,3             ## @INVALID_SOCKET
	.comm	_BIO_CONN_S_OK,8,3              ## @BIO_CONN_S_OK
	.no_dead_strip	_conn_close_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function conn_close_socket
_conn_close_socket:                     ; @conn_close_socket
	.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
	ldr	w0, [x0]
Lloh0:
	adrp	x20, _INVALID_SOCKET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _INVALID_SOCKET@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _BIO_CONN_S_OK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BIO_CONN_S_OK@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w1, #2
	bl	_shutdown
	ldr	w0, [x19]
LBB0_3:
	bl	_BIO_closesocket
	ldr	x8, [x20]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_SOCKET,8,3             ; @INVALID_SOCKET
	.comm	_BIO_CONN_S_OK,8,3              ; @BIO_CONN_S_OK
	.no_dead_strip	_conn_close_socket
.subsections_via_symbols
