	.file	"extr_p2p_supplicant.c_wpas_start_wps_go.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"P2P: Starting GO"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"P2P: Could not copy GO Negotiation results"
	.align 8
.LC2:
	.string	"P2P: Could not add network for GO"
	.align 8
.LC3:
	.string	"P2P: Failed to copy passphrase for GO"
	.align 8
.LC4:
	.string	"P2P: Request scan (that will be skipped) to start GO)"
	.text
	.p2align 4
	.type	wpas_start_wps_go, @function
wpas_start_wps_go:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	lea	rdx, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_dbg@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	wpas_copy_go_neg_results@PLT
	lea	rdx, .LC1[rip]
	test	rax, rax
	js	.L16
	mov	edi, DWORD PTR 64[rbp]
	call	wpa_config_add_network@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L18
	mov	QWORD PTR 88[rbp], 0
	mov	edx, DWORD PTR ETH_ALEN[rip]
	xor	esi, esi
	mov	QWORD PTR 80[rbp], 0
	mov	edi, DWORD PTR 68[rbp]
	mov	QWORD PTR 72[rbp], 0
	call	os_memset@PLT
	mov	rdi, rbx
	call	wpa_config_set_network_defaults@PLT
	movabs	rax, 4294967297
	mov	QWORD PTR [rbx], rax
	mov	edx, DWORD PTR 52[r12]
	xor	eax, eax
	test	edx, edx
	setne	al
	test	r13d, r13d
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR WPAS_MODE_P2P_GROUP_FORMATION[rip]
	cmove	eax, DWORD PTR WPAS_MODE_P2P_GO[rip]
	mov	DWORD PTR 124[rbx], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 48[r12]
	mov	DWORD PTR 120[rbx], eax
	mov	eax, DWORD PTR 44[r12]
	mov	DWORD PTR 116[rbx], eax
	mov	eax, DWORD PTR 40[r12]
	mov	DWORD PTR 112[rbx], eax
	mov	eax, DWORD PTR 36[r12]
	mov	DWORD PTR 108[rbx], eax
	mov	eax, DWORD PTR 32[r12]
	mov	DWORD PTR 104[rbx], eax
	mov	eax, DWORD PTR 4[r12]
	lea	edi, 1[rax]
	call	os_zalloc@PLT
	mov	QWORD PTR 96[rbx], rax
	test	rax, rax
	jne	.L19
.L6:
	mov	eax, DWORD PTR WPA_AUTH_ALG_OPEN[rip]
	cmp	DWORD PTR [r12], 56160
	mov	DWORD PTR 88[rbx], eax
	mov	eax, DWORD PTR WPA_KEY_MGMT_PSK[rip]
	mov	DWORD PTR 84[rbx], eax
	mov	eax, DWORD PTR WPA_PROTO_RSN[rip]
	mov	DWORD PTR 80[rbx], eax
	mov	rax, QWORD PTR WPA_CIPHER_CCMP[rip]
	mov	QWORD PTR 72[rbx], rax
	mov	QWORD PTR 64[rbx], rax
	jle	.L7
	mov	rax, QWORD PTR WPA_CIPHER_GCMP[rip]
	mov	DWORD PTR 20[rbx], 1
	mov	QWORD PTR 72[rbx], rax
	mov	QWORD PTR 64[rbx], rax
.L7:
	mov	edi, DWORD PTR 24[r12]
	call	os_strlen@PLT
	test	rax, rax
	jg	.L20
	mov	QWORD PTR 32[rbx], 0
.L9:
	mov	rax, QWORD PTR 16[r12]
	mov	QWORD PTR 48[rbx], rax
	test	rax, rax
	jne	.L21
	cmp	QWORD PTR 32[rbx], 0
	je	.L11
	mov	rdi, rbx
	call	wpa_config_update_psk@PLT
.L11:
	mov	rax, QWORD PTR 56[rbp]
	mov	esi, DWORD PTR MSG_DEBUG[rip]
	mov	rdi, rbp
	lea	rdx, .LC4[rip]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR p2p_go_configured[rip]
	mov	QWORD PTR 16[rbp], rbx
	mov	DWORD PTR 48[rbp], eax
	mov	eax, DWORD PTR 28[rbp]
	mov	QWORD PTR 40[rbp], rbp
	mov	DWORD PTR 32[rbp], eax
	mov	eax, DWORD PTR NORMAL_SCAN_REQ[rip]
	mov	QWORD PTR 8[rbp], 0
	mov	DWORD PTR 24[rbp], eax
	mov	DWORD PTR 0[rbp], 1
	call	wpa_dbg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	edx, edx
	pop	rbx
	.cfi_def_cfa_offset 32
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	wpa_supplicant_req_scan@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[r12]
	call	os_strdup@PLT
	mov	QWORD PTR 32[rbx], rax
	test	rax, rax
	jne	.L9
	mov	esi, DWORD PTR MSG_ERROR[rip]
	mov	rdi, rbp
	lea	rdx, .LC3[rip]
	call	wpa_msg_global@PLT
	mov	esi, DWORD PTR 56[rbx]
	mov	edi, DWORD PTR 64[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	wpa_config_remove_network@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	lea	rdx, .LC2[rip]
.L16:
	mov	esi, DWORD PTR MSG_DEBUG[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	wpa_dbg@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[r12]
	mov	esi, DWORD PTR 28[r12]
	mov	rdi, rax
	call	os_memcpy@PLT
	mov	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 16[rbx], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L21:
	mov	esi, DWORD PTR 8[r12]
	mov	rdi, QWORD PTR 40[rbx]
	mov	edx, 8
	call	os_memcpy@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	wpas_start_wps_go, .-wpas_start_wps_go
	.comm	p2p_go_configured,4,4
	.comm	WPA_PROTO_RSN,4,4
	.comm	WPA_KEY_MGMT_PSK,4,4
	.comm	WPA_CIPHER_GCMP,8,8
	.comm	WPA_CIPHER_CCMP,8,8
	.comm	WPA_AUTH_ALG_OPEN,4,4
	.comm	WPAS_MODE_P2P_GROUP_FORMATION,4,4
	.comm	WPAS_MODE_P2P_GO,4,4
	.comm	NORMAL_SCAN_REQ,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	ETH_ALEN,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_p2p_supplicant.c_wpas_start_wps_go.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"P2P: Starting GO\000"
	.align	2
.LC1:
	.ascii	"P2P: Could not copy GO Negotiation results\000"
	.align	2
.LC2:
	.ascii	"P2P: Could not add network for GO\000"
	.align	2
.LC3:
	.ascii	"P2P: Failed to copy passphrase for GO\000"
	.align	2
.LC4:
	.ascii	"P2P: Request scan (that will be skipped) to start G"
	.ascii	"O)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpas_start_wps_go, %function
wpas_start_wps_go:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r5, r0
	ldr	r8, .L25
	mov	r7, r2
	ldr	r1, [r8]
	ldr	r2, .L25+4
	bl	wpa_dbg
	mov	r1, r6
	mov	r0, r5
	bl	wpas_copy_go_neg_results
	cmp	r0, #0
	blt	.L20
	ldr	r0, [r5, #36]
	bl	wpa_config_add_network
	subs	r4, r0, #0
	beq	.L21
	mov	r1, #0
	ldr	r3, .L25+8
	str	r1, [r5, #52]
	ldr	r2, [r3]
	str	r1, [r5, #48]
	str	r1, [r5, #44]
	ldr	r0, [r5, #40]
	bl	os_memset
	mov	r0, r4
	bl	wpa_config_set_network_defaults
	ldr	r3, [r6, #44]
	mov	r2, #1
	subs	r3, r3, #0
	movne	r3, #1
	cmp	r7, #0
	str	r3, [r4, #8]
	ldrne	r3, .L25+12
	ldreq	r3, .L25+16
	str	r2, [r4]
	str	r2, [r4, #4]
	ldr	r3, [r3]
	ldr	r1, [r6]
	ldr	r2, [r6, #40]
	str	r3, [r4, #88]
	ldr	r3, [r6, #36]
	ldr	r0, [r6, #4]
	str	r1, [r4, #12]
	ldr	r1, [r6, #32]
	str	r2, [r4, #84]
	ldr	r2, [r6, #28]
	str	r3, [r4, #80]
	ldr	r3, [r6, #24]
	add	r0, r0, #1
	str	r1, [r4, #76]
	str	r2, [r4, #72]
	str	r3, [r4, #68]
	bl	os_zalloc
	cmp	r0, #0
	str	r0, [r4, #64]
	bne	.L22
.L6:
	ldr	r2, .L25+20
	ldr	r1, .L25+24
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, .L25+28
	ldr	r3, .L25+32
	str	r2, [r4, #60]
	str	r1, [r4, #56]
	ldr	r2, .L25+36
	ldr	r1, [r6]
	ldr	r3, [r3]
	ldr	r0, [r0]
	cmp	r1, r2
	str	r0, [r4, #52]
	str	r3, [r4, #48]
	str	r3, [r4, #44]
	ble	.L7
	mov	r2, #1
	ldr	r3, .L25+40
	str	r2, [r4, #20]
	ldr	r3, [r3]
	str	r3, [r4, #48]
	str	r3, [r4, #44]
.L7:
	ldr	r0, [r6, #16]
	bl	os_strlen
	cmp	r0, #0
	movle	r3, #0
	strle	r3, [r4, #28]
	bgt	.L23
.L9:
	ldr	r3, [r6, #12]
	cmp	r3, #0
	str	r3, [r4, #36]
	bne	.L24
	ldr	r3, [r4, #28]
	cmp	r3, #0
	beq	.L11
	mov	r0, r4
	bl	wpa_config_update_psk
.L11:
	mov	r6, #0
	mov	r2, #1
	ldr	r3, [r5, #32]
	ldr	r1, [r8]
	ldr	r0, [r3]
	ldr	r3, .L25+44
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r0, .L25+48
	str	ip, [r4, #24]
	ldr	r0, [r0]
	str	r3, [r5, #28]
	ldr	r3, [r5, #16]
	stm	r5, {r2, r6}
	str	r0, [r5, #12]
	ldr	r2, .L25+52
	mov	r0, r5
	str	r5, [r5, #24]
	str	r4, [r5, #8]
	str	r3, [r5, #20]
	bl	wpa_dbg
	mov	r2, r6
	mov	r1, r6
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	wpa_supplicant_req_scan
.L23:
	ldr	r0, [r6, #16]
	bl	os_strdup
	cmp	r0, #0
	str	r0, [r4, #28]
	bne	.L9
	ldr	r3, .L25+56
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L25+60
	bl	wpa_msg_global
	ldr	r1, [r4, #40]
	ldr	r0, [r5, #36]
	pop	{r4, r5, r6, r7, r8, lr}
	b	wpa_config_remove_network
.L20:
	mov	r0, r5
	ldr	r1, [r8]
	ldr	r2, .L25+64
	pop	{r4, r5, r6, r7, r8, lr}
	b	wpa_dbg
.L22:
	ldr	r2, [r6, #4]
	ldr	r1, [r6, #20]
	bl	os_memcpy
	ldr	r3, [r6, #4]
	str	r3, [r4, #16]
	b	.L6
.L24:
	mov	r2, #4
	ldr	r1, [r6, #8]
	ldr	r0, [r4, #32]
	bl	os_memcpy
	b	.L11
.L21:
	mov	r0, r5
	ldr	r1, [r8]
	ldr	r2, .L25+68
	pop	{r4, r5, r6, r7, r8, lr}
	b	wpa_dbg
.L26:
	.align	2
.L25:
	.word	MSG_DEBUG
	.word	.LC0
	.word	ETH_ALEN
	.word	WPAS_MODE_P2P_GROUP_FORMATION
	.word	WPAS_MODE_P2P_GO
	.word	WPA_AUTH_ALG_OPEN
	.word	WPA_KEY_MGMT_PSK
	.word	WPA_PROTO_RSN
	.word	WPA_CIPHER_CCMP
	.word	56160
	.word	WPA_CIPHER_GCMP
	.word	p2p_go_configured
	.word	NORMAL_SCAN_REQ
	.word	.LC4
	.word	MSG_ERROR
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	wpas_start_wps_go, .-wpas_start_wps_go
	.comm	p2p_go_configured,4,4
	.comm	WPA_PROTO_RSN,4,4
	.comm	WPA_KEY_MGMT_PSK,4,4
	.comm	WPA_CIPHER_GCMP,4,4
	.comm	WPA_CIPHER_CCMP,4,4
	.comm	WPA_AUTH_ALG_OPEN,4,4
	.comm	WPAS_MODE_P2P_GROUP_FORMATION,4,4
	.comm	WPAS_MODE_P2P_GO,4,4
	.comm	NORMAL_SCAN_REQ,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
