	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpc_sock_connect
_rpc_sock_connect:                      ## @rpc_sock_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r14d
	leaq	_rpc_sock_connect(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ADD_CNT
	movq	%rbx, %rdi
	callq	_START_TIMER
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movl	$1, -44(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_SO_REUSEADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r12
	movl	%ebx, %edi
	movq	%r12, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movl	(%r13), %esi
	movq	_SO_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r12, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TCP_NODELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r12, %rcx
	movl	$4, %r8d
	callq	_setsockopt
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	%r15d, %edi
	callq	_htons
	movl	%eax, -68(%rbp)
	movl	%r14d, %edi
	callq	_htonl
	movl	%eax, -72(%rbp)
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_fcntl
	leaq	-72(%rbp), %rsi
	movl	%ebx, %edi
	movl	$12, %edx
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_3:
	movl	%ebx, -56(%rbp)
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movsd	-80(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_get_ms_timeout
	leaq	-56(%rbp), %rdi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_poll
	testq	%rax, %rax
	jg	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_close
	movl	$-1, %ebx
LBB0_5:
	leaq	_rpc_sock_connect(%rip), %rdi
	callq	_END_TIMER
	jmp	LBB0_9
LBB0_6:
	leaq	_rpc_sock_connect(%rip), %rdi
	callq	_END_TIMER
	jmp	LBB0_8
LBB0_7:
	leaq	_rpc_sock_connect(%rip), %rdi
	callq	_END_TIMER
	movl	%ebx, %edi
	callq	_close
LBB0_8:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ## @SO_REUSEADDR
	.comm	_SO_KEEPALIVE,4,2               ## @SO_KEEPALIVE
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ## @TCP_NODELAY
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_errno,8,3                      ## @errno
	.comm	_EINPROGRESS,8,3                ## @EINPROGRESS
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.no_dead_strip	_rpc_sock_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpc_sock_connect
_rpc_sock_connect:                      ; @rpc_sock_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	fmov	d8, d0
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x19, _rpc_sock_connect@PAGE
Lloh1:
	add	x19, x19, _rpc_sock_connect@PAGEOFF
	mov	x0, x19
	bl	_ADD_CNT
	mov	x0, x19
	bl	_START_TIMER
Lloh2:
	adrp	x22, _AF_INET@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AF_INET@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	mov	w8, #1
	str	w8, [sp, #28]
Lloh7:
	adrp	x23, _SOL_SOCKET@GOTPAGE
Lloh8:
	ldr	x23, [x23, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh9:
	adrp	x8, _SO_REUSEADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SO_REUSEADDR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	ldr	w1, [x23]
Lloh12:
	adrp	x8, _SO_KEEPALIVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SO_KEEPALIVE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
Lloh15:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _TCP_NODELAY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TCP_NODELAY@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	ldr	w8, [x22]
	str	w8, [sp, #24]
	mov	x0, x21
	bl	_htons
	str	w0, [sp, #20]
	mov	x0, x20
	bl	_htonl
	str	w0, [sp, #16]
Lloh21:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fcntl
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #12
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
Lloh30:
	adrp	x9, _EINPROGRESS@GOTPAGE
Lloh31:
	ldr	x9, [x9, _EINPROGRESS@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_3:
Lloh33:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	stp	w19, w8, [sp, #8]
	fmov	d0, d8
	bl	_get_ms_timeout
	mov	x2, x0
	add	x0, sp, #8
	mov	w1, #1
	bl	_poll
	cmp	x0, #0
	b.gt	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_close
	mov	w19, #-1
LBB0_5:
Lloh36:
	adrp	x0, _rpc_sock_connect@PAGE
Lloh37:
	add	x0, x0, _rpc_sock_connect@PAGEOFF
	bl	_END_TIMER
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
Lloh38:
	adrp	x0, _rpc_sock_connect@PAGE
Lloh39:
	add	x0, x0, _rpc_sock_connect@PAGEOFF
	bl	_END_TIMER
	mov	x0, x19
	bl	_close
	mov	w19, #-1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_REUSEADDR,4,2               ; @SO_REUSEADDR
	.comm	_SO_KEEPALIVE,4,2               ; @SO_KEEPALIVE
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_TCP_NODELAY,4,2                ; @TCP_NODELAY
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_errno,8,3                      ; @errno
	.comm	_EINPROGRESS,8,3                ; @EINPROGRESS
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.no_dead_strip	_rpc_sock_connect
.subsections_via_symbols
