	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function git_tcp_connect_sock
_git_tcp_connect_sock:                  ## @git_tcp_connect_sock
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_DEFAULT_GIT_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STR
	movq	%rax, -72(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_get_host_and_port
	movq	-72(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, -72(%rbp)
LBB0_2:
	leaq	-120(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_CONNECT_IPV4@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_CONNECT_IPV6@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_AF_INET6@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, -104(%rbp)
LBB0_7:
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movq	_CONNECT_VERBOSE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	-56(%rbp), %rdi
	movq	-72(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%r14d, %r13d
	movq	%rax, %r14
	movq	-56(%rbp), %r15
	movq	-72(%rbp), %r12
	movl	%ebx, %edi
	callq	_gai_strerror
	movq	%r14, %rdi
	movl	%r13d, %r14d
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_die
LBB0_11:
	movl	%r14d, -76(%rbp)                ## 4-byte Spill
	movq	_CONNECT_VERBOSE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rdx
	movq	-72(%rbp), %rcx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_13:
	movq	-64(%rbp), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rax
	movq	24(%rax), %rax
	movq	%rax, -64(%rbp)
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%rax), %edi
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	callq	_socket
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-64(%rbp), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	movl	%r12d, %edi
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-56(%rbp), %r15
	movq	-64(%rbp), %rdi
	callq	_ai_name
	movq	%rax, %r13
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%r14, %rdi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	movq	%r13, %r8
	movl	%eax, %r9d
	callq	_strbuf_addf
	testl	%r12d, %r12d
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_19
LBB0_20:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_freeaddrinfo
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rsi
	movslq	-48(%rbp), %rdx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_die
	movl	$-1, %r12d
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_24
LBB0_21:
	movl	-76(%rbp), %ebx                 ## 4-byte Reload
	movq	_CONNECT_VERBOSE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_23
## %bb.22:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-64(%rbp), %rdi
	callq	_ai_name
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_23:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_freeaddrinfo
LBB0_24:
	movl	%r12d, %edi
	callq	_enable_keepalive
	movq	_CONNECT_VERBOSE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_26
## %bb.25:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.7(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_fprintf_ln
LBB0_26:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movl	%r12d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_DEFAULT_GIT_PORT,4,2           ## @DEFAULT_GIT_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<none>"

	.comm	_CONNECT_IPV4,4,2               ## @CONNECT_IPV4
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_CONNECT_IPV6,4,2               ## @CONNECT_IPV6
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.comm	_CONNECT_VERBOSE,4,2            ## @CONNECT_VERBOSE
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"Looking up %s ... "

L_.str.2:                               ## @.str.2
	.asciz	"unable to look up %s (port %s) (%s)"

L_.str.3:                               ## @.str.3
	.asciz	"done.\nConnecting to %s (port %s) ... "

L_.str.4:                               ## @.str.4
	.asciz	"%s[%d: %s]: errno=%s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.5:                               ## @.str.5
	.asciz	"%s "

L_.str.6:                               ## @.str.6
	.asciz	"unable to connect to %s:\n%s"

L_.str.7:                               ## @.str.7
	.asciz	"done."

	.no_dead_strip	_git_tcp_connect_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function git_tcp_connect_sock
_git_tcp_connect_sock:                  ; @git_tcp_connect_sock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
	str	x0, [sp, #72]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #64]
Lloh3:
	adrp	x8, _DEFAULT_GIT_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_GIT_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_STR
	str	x0, [sp, #56]
	add	x0, sp, #72
	add	x1, sp, #56
	bl	_get_host_and_port
	ldr	x8, [sp, #56]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #56]
LBB0_2:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh8:
	adrp	x8, _CONNECT_IPV4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONNECT_IPV4@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _AF_INET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x8, _CONNECT_IPV6@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CONNECT_IPV6@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.5:
Lloh16:
	adrp	x8, _AF_INET6@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_INET6@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [sp, #40]
LBB0_7:
Lloh18:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
Lloh24:
	adrp	x27, _CONNECT_VERBOSE@GOTPAGE
Lloh25:
	ldr	x27, [x27, _CONNECT_VERBOSE@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh26:
	adrp	x26, _stderr@GOTPAGE
Lloh27:
	ldr	x26, [x26, _stderr@GOTPAGEOFF]
	tst	w8, w19
	b.eq	LBB0_9
; %bb.8:
	ldr	w20, [x26]
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x2, [sp, #72]
	mov	x0, x20
	bl	_fprintf
LBB0_9:
	ldr	x0, [sp, #72]
	ldr	x1, [sp, #56]
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_getaddrinfo
	cbz	w0, LBB0_11
; %bb.10:
	mov	x20, x0
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x21, x0
	ldr	x22, [sp, #72]
	ldr	x23, [sp, #56]
	mov	x0, x20
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_die
LBB0_11:
	ldr	w8, [x27]
	tst	w8, w19
	b.eq	LBB0_13
; %bb.12:
	ldr	w20, [x26]
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	x2, [sp, #72]
	ldr	x8, [sp, #56]
	str	x8, [sp]
	mov	x0, x20
	bl	_fprintf
LBB0_13:
	ldr	x20, [sp, #16]
	cbz	x20, LBB0_20
; %bb.14:
	mov	w22, #0
Lloh34:
	adrp	x28, _errno@GOTPAGE
Lloh35:
	ldr	x28, [x28, _errno@GOTPAGEOFF]
	mov	x8, x20
Lloh36:
	adrp	x23, l_.str.4@PAGE
Lloh37:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [sp, #16]
	ldr	x8, [x8, #24]
	str	x8, [sp, #16]
	add	w22, w22, #1
	cbz	x8, LBB0_20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x8, #12]
	ldr	w2, [x8, #8]
	bl	_socket
	mov	x21, x0
	tbnz	w0, #31, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [sp, #16]
	ldp	w2, w1, [x8]
	mov	x0, x21
	bl	_connect
	tbz	x0, #63, LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x24, [sp, #72]
	ldr	x0, [sp, #16]
	bl	_ai_name
	mov	x25, x0
	ldr	w0, [x28]
	bl	_strerror
	mov	x5, x0
	add	x0, sp, #64
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	mov	x4, x25
	bl	_strbuf_addf
	tbnz	w21, #31, LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x21
	bl	_close
	b	LBB0_15
LBB0_20:
	mov	x0, x20
	bl	_freeaddrinfo
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	ldr	x1, [sp, #72]
	ldrsw	x2, [sp, #64]
	bl	_die
	mov	w21, #-1
	b	LBB0_24
LBB0_21:
	ldr	w8, [x27]
	tst	w8, w19
	b.eq	LBB0_23
; %bb.22:
	ldr	w22, [x26]
	ldr	x0, [sp, #16]
	bl	_ai_name
	mov	x2, x0
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x22
	bl	_fprintf
LBB0_23:
	mov	x0, x20
	bl	_freeaddrinfo
LBB0_24:
	mov	x0, x21
	bl	_enable_keepalive
	ldr	w8, [x27]
	tst	w8, w19
	b.eq	LBB0_26
; %bb.25:
	ldr	w19, [x26]
Lloh42:
	adrp	x0, l_.str.7@PAGE
Lloh43:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_fprintf_ln
LBB0_26:
	add	x0, sp, #64
	bl	_strbuf_release
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_DEFAULT_GIT_PORT,4,2           ; @DEFAULT_GIT_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<none>"

	.comm	_CONNECT_IPV4,4,2               ; @CONNECT_IPV4
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_CONNECT_IPV6,4,2               ; @CONNECT_IPV6
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.comm	_CONNECT_VERBOSE,4,2            ; @CONNECT_VERBOSE
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"Looking up %s ... "

l_.str.2:                               ; @.str.2
	.asciz	"unable to look up %s (port %s) (%s)"

l_.str.3:                               ; @.str.3
	.asciz	"done.\nConnecting to %s (port %s) ... "

l_.str.4:                               ; @.str.4
	.asciz	"%s[%d: %s]: errno=%s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.5:                               ; @.str.5
	.asciz	"%s "

l_.str.6:                               ; @.str.6
	.asciz	"unable to connect to %s:\n%s"

l_.str.7:                               ; @.str.7
	.asciz	"done."

	.no_dead_strip	_git_tcp_connect_sock
.subsections_via_symbols
