	.file	"extr_dplayx.c_init_TCPIP_provider.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"CCI of CLSID_DirectPlayLobby / IID_IDirectPlayLobby3A failed\n"
	.text
	.p2align 4
	.type	init_TCPIP_provider, @function
init_TCPIP_provider:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rcx, IID_IDirectPlayLobby3A[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	lea	rdi, CLSID_DirectPlayLobby[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	QWORD PTR 8[rsp], rdx
	mov	edx, DWORD PTR CLSCTX_ALL[rip]
	lea	r8, 24[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 20[rsp], 0
	call	CoCreateInstance@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	SUCCEEDED@PLT
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	ok@PLT
	mov	rdi, rbp
	call	FAILED@PLT
	test	rax, rax
	je	.L10
.L1:
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR DPAID_ServiceProvider[rip]
	mov	rdi, rbx
	mov	DWORD PTR 32[rsp], 4
	mov	DWORD PTR 48[rsp], eax
	lea	rax, DPSPGUID_TCPIP[rip]
	mov	QWORD PTR 40[rsp], rax
	mov	eax, DWORD PTR DPAID_INet[rip]
	mov	DWORD PTR 72[rsp], eax
	call	lstrlenA@PLT
	mov	QWORD PTR 64[rsp], rbx
	add	eax, 1
	cmp	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 56[rsp], eax
	jle	.L4
	mov	eax, DWORD PTR DPAID_INetPort[rip]
	mov	DWORD PTR 80[rsp], 8
	mov	DWORD PTR 96[rsp], eax
	lea	rax, 8[rsp]
	mov	QWORD PTR 88[rsp], rax
.L4:
	mov	rdi, QWORD PTR 24[rsp]
	lea	r14, 20[rsp]
	xor	ecx, ecx
	xor	r13d, r13d
	lea	rbp, 32[rsp]
	mov	r8, r14
	mov	edx, 2
	mov	rsi, rbp
	call	IDirectPlayLobby_CreateCompoundAddress@PLT
	mov	rdi, QWORD PTR DPERR_BUFFERTOOSMALL[rip]
	mov	rsi, rax
	mov	rbx, rax
	call	checkHR@PLT
	cmp	QWORD PTR DPERR_BUFFERTOOSMALL[rip], rbx
	je	.L12
.L5:
	xor	edx, edx
	mov	rsi, r13
	mov	rdi, r12
	call	IDirectPlayX_InitializeConnection@PLT
	mov	rdi, QWORD PTR DP_OK[rip]
	mov	rsi, rax
	call	checkHR@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r13
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	mov	rdi, QWORD PTR 24[rsp]
	call	IDirectPlayLobby_Release@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r15d, DWORD PTR 20[rsp]
	mov	r13d, DWORD PTR HEAP_ZERO_MEMORY[rip]
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edi, eax
	mov	edx, r15d
	mov	esi, r13d
	call	HeapAlloc@PLT
	mov	rdi, QWORD PTR 24[rsp]
	mov	rsi, rbp
	mov	r8, r14
	mov	rcx, rax
	mov	edx, 2
	mov	r13, rax
	call	IDirectPlayLobby_CreateCompoundAddress@PLT
	mov	rdi, QWORD PTR DP_OK[rip]
	mov	rsi, rax
	call	checkHR@PLT
	jmp	.L5
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	init_TCPIP_provider, .-init_TCPIP_provider
	.comm	IID_IDirectPlayLobby3A,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	DP_OK,8,8
	.comm	DPSPGUID_TCPIP,4,4
	.comm	DPERR_BUFFERTOOSMALL,8,8
	.comm	DPAID_ServiceProvider,4,4
	.comm	DPAID_INetPort,4,4
	.comm	DPAID_INet,4,4
	.comm	CLSID_DirectPlayLobby,4,4
	.comm	CLSCTX_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dplayx.c_init_TCPIP_provider.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"CCI of CLSID_DirectPlayLobby / IID_IDirectPlayLobby"
	.ascii	"3A failed\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_TCPIP_provider, %function
init_TCPIP_provider:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	sub	sp, sp, #64
	ldr	r0, .L13
	ldr	lr, .L13+4
	add	r3, sp, #20
	str	r2, [sp, #12]
	mov	r6, r1
	ldr	r2, [r0]
	mov	r1, ip
	str	r3, [sp]
	ldr	r0, .L13+8
	ldr	r3, .L13+12
	ldr	lr, [lr]
	str	lr, [sp, #60]
	mov	lr,#0
	str	ip, [sp, #16]
	bl	CoCreateInstance
	mov	r4, r0
	bl	SUCCEEDED
	ldr	r1, .L13+16
	bl	ok
	mov	r0, r4
	bl	FAILED
	cmp	r0, #0
	beq	.L10
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #64
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	mov	r4, #4
	ldr	r2, .L13+20
	ldr	r3, .L13+24
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L13+28
	mov	r0, r6
	str	r3, [sp, #28]
	str	r1, [sp, #32]
	str	r2, [sp, #44]
	str	r4, [sp, #24]
	bl	lstrlenA
	ldr	r3, [sp, #12]
	add	r0, r0, #1
	cmp	r3, #0
	str	r0, [sp, #36]
	str	r6, [sp, #40]
	ble	.L4
	ldr	r2, .L13+32
	add	r3, sp, #12
	ldr	r2, [r2]
	str	r4, [sp, #48]
	str	r2, [sp, #56]
	str	r3, [sp, #52]
.L4:
	add	r3, sp, #16
	mov	r2, #2
	add	r1, sp, #24
	str	r3, [sp]
	ldr	r0, [sp, #20]
	mov	r3, #0
	bl	IDirectPlayLobby_CreateCompoundAddress
	mov	r4, r0
	ldr	r6, .L13+36
	mov	r1, r0
	ldr	r0, [r6]
	bl	checkHR
	ldr	r3, [r6]
	cmp	r3, r4
	beq	.L12
	mov	r4, #0
	ldr	r6, .L13+40
.L5:
	mov	r2, #0
	mov	r1, r4
	mov	r0, r5
	bl	IDirectPlayX_InitializeConnection
	mov	r1, r0
	ldr	r0, [r6]
	bl	checkHR
	bl	GetProcessHeap
	mov	r2, r4
	mov	r1, #0
	bl	HeapFree
	ldr	r0, [sp, #20]
	bl	IDirectPlayLobby_Release
	b	.L1
.L12:
	bl	GetProcessHeap
	ldr	r3, .L13+44
	ldr	r2, [sp, #16]
	ldr	r1, [r3]
	bl	HeapAlloc
	add	r3, sp, #16
	str	r3, [sp]
	add	r1, sp, #24
	mov	r3, r0
	mov	r4, r0
	mov	r2, #2
	ldr	r0, [sp, #20]
	bl	IDirectPlayLobby_CreateCompoundAddress
	ldr	r6, .L13+40
	mov	r1, r0
	ldr	r0, [r6]
	bl	checkHR
	b	.L5
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	CLSCTX_ALL
	.word	.LC1
	.word	CLSID_DirectPlayLobby
	.word	IID_IDirectPlayLobby3A
	.word	.LC0
	.word	DPAID_ServiceProvider
	.word	DPAID_INet
	.word	DPSPGUID_TCPIP
	.word	DPAID_INetPort
	.word	DPERR_BUFFERTOOSMALL
	.word	DP_OK
	.word	HEAP_ZERO_MEMORY
	.size	init_TCPIP_provider, .-init_TCPIP_provider
	.comm	IID_IDirectPlayLobby3A,4,4
	.comm	HEAP_ZERO_MEMORY,4,4
	.comm	DP_OK,4,4
	.comm	DPSPGUID_TCPIP,4,4
	.comm	DPERR_BUFFERTOOSMALL,4,4
	.comm	DPAID_ServiceProvider,4,4
	.comm	DPAID_INetPort,4,4
	.comm	DPAID_INet,4,4
	.comm	CLSID_DirectPlayLobby,4,4
	.comm	CLSCTX_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
