	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabSockConnectSocket           ## -- Begin function YabSockConnectSocket
	.p2align	4, 0x90
_YabSockConnectSocket:                  ## @YabSockConnectSocket
	.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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -312(%rbp)
	leaq	-336(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -316(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -320(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -324(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-304(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_sprintf
	leaq	-312(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_getaddrinfo
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	-312(%rbp), %rax
	movl	20(%rax), %edi
	movl	12(%rax), %edx
	movl	16(%rax), %esi
	callq	_socket
	movl	%eax, (%r14)
	movq	-312(%rbp), %rdi
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	movl	(%rdi), %edx
	movl	8(%rdi), %esi
	movl	%eax, %edi
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movq	-312(%rbp), %rdi
	callq	_freeaddrinfo
	xorl	%eax, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	callq	_freeaddrinfo
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_perror
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_6:
	leaq	-312(%rbp), %rdi
	movq	%r14, %rsi
	callq	_YabSockConnectSocket.cold.1
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function YabSockConnectSocket.cold.1
_YabSockConnectSocket.cold.1:           ## @YabSockConnectSocket.cold.1
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	movq	(%rbx), %rdi
	callq	_freeaddrinfo
	movl	(%r14), %edi
	callq	_close
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"getaddrinfo"

L_.str.2:                               ## @.str.2
	.asciz	"socket"

L_.str.3:                               ## @.str.3
	.asciz	"connect"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_YabSockConnectSocket           ; -- Begin function YabSockConnectSocket
	.p2align	2
_YabSockConnectSocket:                  ; @YabSockConnectSocket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp, #32]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #28]
Lloh6:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #20]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	x2, x20
	bl	_sprintf
	add	x1, sp, #40
	add	x2, sp, #8
	add	x3, sp, #32
	mov	x0, x21
	bl	_getaddrinfo
	cbnz	x0, LBB0_6
; %bb.1:
	ldr	x8, [sp, #32]
	ldp	w1, w0, [x8, #16]
	ldr	w2, [x8, #12]
	bl	_socket
	str	w0, [x19]
	ldr	x8, [sp, #32]
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	ldr	w1, [x8, #8]
	ldr	w2, [x8]
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.3:
	ldr	x0, [sp, #32]
	bl	_freeaddrinfo
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.5:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_6:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x0, x8
	bl	_freeaddrinfo
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	bl	_perror
	mov	w0, #-1
	b	LBB0_4
LBB0_9:
	add	x0, sp, #32
	mov	x1, x19
	bl	_YabSockConnectSocket.cold.1
	mov	w0, #-1
	b	LBB0_4
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function YabSockConnectSocket.cold.1
_YabSockConnectSocket.cold.1:           ; @YabSockConnectSocket.cold.1
	.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, x1
	mov	x20, x0
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
	ldr	x0, [x20]
	bl	_freeaddrinfo
	ldr	w0, [x19]
	bl	_close
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"getaddrinfo"

l_.str.2:                               ; @.str.2
	.asciz	"socket"

l_.str.3:                               ; @.str.3
	.asciz	"connect"

.subsections_via_symbols
