	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_connect                    ## -- Begin function BIO_connect
	.p2align	4, 0x90
_BIO_connect:                           ## @BIO_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
	movl	$1, -36(%rbp)
	cmpl	$-1, %edi
	je	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_BIO_SOCK_NONBLOCK@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	(%rax), %eax
	andl	%edx, %eax
	setne	%sil
	callq	_BIO_socket_nbio
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	movq	_BIO_SOCK_KEEPALIVE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movl	%r12d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SYS_F_SETSOCKOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNABLE_TO_KEEPALIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_1:
	movq	_BIO_F_BIO_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIOerr
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_6:
	movq	_BIO_SOCK_NODELAY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.7:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movl	%r12d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_SYS_F_SETSOCKOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_UNABLE_TO_NODELAY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	callq	_BIOerr
	jmp	LBB0_13
LBB0_9:
	movq	%r15, %rdi
	callq	_BIO_ADDR_sockaddr
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_BIO_ADDR_sockaddr_size
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_connect
	movl	$1, %r14d
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.10:
	movl	$-1, %edi
	callq	_BIO_sock_should_retry
	movl	$0, %r14d
	testl	%eax, %eax
	je	LBB0_11
LBB0_13:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_SYS_F_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_get_last_socket_error
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SYSerr
	movq	_BIO_F_BIO_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BIO_R_CONNECT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_F_BIO_CONNECT,4,2          ## @BIO_F_BIO_CONNECT
	.comm	_BIO_R_INVALID_SOCKET,4,2       ## @BIO_R_INVALID_SOCKET
	.comm	_BIO_SOCK_NONBLOCK,4,2          ## @BIO_SOCK_NONBLOCK
	.comm	_BIO_SOCK_KEEPALIVE,4,2         ## @BIO_SOCK_KEEPALIVE
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.comm	_SYS_F_SETSOCKOPT,4,2           ## @SYS_F_SETSOCKOPT
	.comm	_BIO_R_UNABLE_TO_KEEPALIVE,4,2  ## @BIO_R_UNABLE_TO_KEEPALIVE
	.comm	_BIO_SOCK_NODELAY,4,2           ## @BIO_SOCK_NODELAY
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
	.comm	_BIO_R_UNABLE_TO_NODELAY,4,2    ## @BIO_R_UNABLE_TO_NODELAY
	.comm	_SYS_F_CONNECT,4,2              ## @SYS_F_CONNECT
	.comm	_BIO_R_CONNECT_ERROR,4,2        ## @BIO_R_CONNECT_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BIO_connect                    ; -- Begin function BIO_connect
	.p2align	2
_BIO_connect:                           ; @BIO_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
	mov	w8, #1
	str	w8, [sp, #12]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BIO_SOCK_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_SOCK_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	cset	w1, ne
	bl	_BIO_socket_nbio
	cbz	w0, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _BIO_SOCK_KEEPALIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIO_SOCK_KEEPALIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.3:
Lloh6:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _SO_KEEPALIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SO_KEEPALIVE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cbz	x0, LBB0_9
; %bb.4:
Lloh12:
	adrp	x8, _SYS_F_SETSOCKOPT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYS_F_SETSOCKOPT@GOTPAGEOFF]
Lloh14:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh15:
	adrp	x8, _BIO_F_BIO_CONNECT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BIO_F_BIO_CONNECT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _BIO_R_UNABLE_TO_KEEPALIVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BIO_R_UNABLE_TO_KEEPALIVE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _BIO_F_BIO_CONNECT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BIO_F_BIO_CONNECT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _BIO_R_INVALID_SOCKET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BIO_R_INVALID_SOCKET@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_BIOerr
LBB0_7:
	mov	w0, #0
LBB0_8:
	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_9:
Lloh25:
	adrp	x8, _BIO_SOCK_NODELAY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _BIO_SOCK_NODELAY@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.10:
Lloh28:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _TCP_NODELAY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _TCP_NODELAY@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cbz	x0, LBB0_12
; %bb.11:
Lloh34:
	adrp	x8, _SYS_F_SETSOCKOPT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SYS_F_SETSOCKOPT@GOTPAGEOFF]
Lloh36:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh37:
	adrp	x8, _BIO_F_BIO_CONNECT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BIO_F_BIO_CONNECT@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x8, _BIO_R_UNABLE_TO_NODELAY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BIO_R_UNABLE_TO_NODELAY@GOTPAGEOFF]
	b	LBB0_6
LBB0_12:
	mov	x0, x20
	bl	_BIO_ADDR_sockaddr
	mov	x21, x0
	mov	x0, x20
	bl	_BIO_ADDR_sockaddr_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.13:
	mov	w0, #1
	b	LBB0_8
LBB0_14:
	bl	_BIO_sock_should_retry
	cbnz	w0, LBB0_7
; %bb.15:
Lloh42:
	adrp	x8, _SYS_F_CONNECT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _SYS_F_CONNECT@GOTPAGEOFF]
Lloh44:
	ldr	w19, [x8]
	bl	_get_last_socket_error
	mov	x1, x0
	mov	x0, x19
	bl	_SYSerr
Lloh45:
	adrp	x8, _BIO_F_BIO_CONNECT@GOTPAGE
Lloh46:
	ldr	x8, [x8, _BIO_F_BIO_CONNECT@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x8, _BIO_R_CONNECT_ERROR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BIO_R_CONNECT_ERROR@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_F_BIO_CONNECT,4,2          ; @BIO_F_BIO_CONNECT
	.comm	_BIO_R_INVALID_SOCKET,4,2       ; @BIO_R_INVALID_SOCKET
	.comm	_BIO_SOCK_NONBLOCK,4,2          ; @BIO_SOCK_NONBLOCK
	.comm	_BIO_SOCK_KEEPALIVE,4,2         ; @BIO_SOCK_KEEPALIVE
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.comm	_SYS_F_SETSOCKOPT,4,2           ; @SYS_F_SETSOCKOPT
	.comm	_BIO_R_UNABLE_TO_KEEPALIVE,4,2  ; @BIO_R_UNABLE_TO_KEEPALIVE
	.comm	_BIO_SOCK_NODELAY,4,2           ; @BIO_SOCK_NODELAY
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
	.comm	_BIO_R_UNABLE_TO_NODELAY,4,2    ; @BIO_R_UNABLE_TO_NODELAY
	.comm	_SYS_F_CONNECT,4,2              ; @SYS_F_CONNECT
	.comm	_BIO_R_CONNECT_ERROR,4,2        ; @BIO_R_CONNECT_ERROR
.subsections_via_symbols
