	.file	"extr_p2p_supplicant_sd.c_wpas_p2p_service_add_upnp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	wpas_p2p_service_add_upnp
	.type	wpas_p2p_service_add_upnp, @function
wpas_p2p_service_add_upnp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	call	wpas_p2p_service_get_upnp@PLT
	test	rax, rax
	je	.L8
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, 24
	call	os_zalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	mov	DWORD PTR 16[rax], ebx
	mov	rdi, r12
	call	os_strdup@PLT
	mov	QWORD PTR 8[r13], rax
	test	rax, rax
	je	.L9
	mov	rdi, QWORD PTR 0[rbp]
	mov	rsi, r13
	call	dl_list_add@PLT
	mov	rdi, rbp
	call	wpas_p2p_sd_service_update@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	mov	r14d, -1
	jmp	.L1
.L9:
	mov	rdi, r13
	mov	r14d, -1
	call	os_free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	wpas_p2p_service_add_upnp, .-wpas_p2p_service_add_upnp
	.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_p2p_supplicant_sd.c_wpas_p2p_service_add_upnp.c"
	.text
	.align	2
	.global	wpas_p2p_service_add_upnp
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpas_p2p_service_add_upnp, %function
wpas_p2p_service_add_upnp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r7, r1
	mov	r6, r2
	bl	wpas_p2p_service_get_upnp
	subs	r4, r0, #0
	movne	r4, #0
	beq	.L8
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, #12
	bl	os_zalloc
	subs	r8, r0, #0
	beq	.L5
	mov	r0, r6
	str	r7, [r8, #8]
	bl	os_strdup
	cmp	r0, #0
	str	r0, [r8, #4]
	beq	.L9
	mov	r1, r8
	ldr	r0, [r5]
	bl	dl_list_add
	mov	r0, r5
	bl	wpas_p2p_sd_service_update
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mvn	r4, #0
	b	.L1
.L9:
	mov	r0, r8
	bl	os_free
	mvn	r4, #0
	b	.L1
	.size	wpas_p2p_service_add_upnp, .-wpas_p2p_service_add_upnp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
