	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_start_wps_go
_wpas_start_wps_go:                     ## @wpas_start_wps_go
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	callq	_wpa_dbg
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_wpas_copy_go_neg_results
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movl	64(%r14), %edi
	callq	_wpa_config_add_network
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%r14)
	movq	$0, 88(%r14)
	movl	68(%r14), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movq	%rbx, %rdi
	callq	_wpa_config_set_network_defaults
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	cmpl	$0, 52(%r15)
	setne	%al
	movl	%eax, 8(%rbx)
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.7:
	movq	_WPAS_MODE_P2P_GO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_4:
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_2:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_dbg                        ## TAILCALL
LBB0_6:
	movq	_WPAS_MODE_P2P_GROUP_FORMATION@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 124(%rbx)
	movl	(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	48(%r15), %eax
	movl	%eax, 120(%rbx)
	movups	32(%r15), %xmm0
	movups	%xmm0, 104(%rbx)
	movl	4(%r15), %edi
	incl	%edi
	callq	_os_zalloc
	movq	%rax, 96(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	4(%r15), %edx
	movl	28(%r15), %esi
	movq	%rax, %rdi
	callq	_os_memcpy
	movl	4(%r15), %eax
	movl	%eax, 16(%rbx)
LBB0_10:
	movq	_WPA_AUTH_ALG_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movq	_WPA_KEY_MGMT_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_WPA_PROTO_RSN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	movq	%rax, 64(%rbx)
	cmpl	$56161, (%r15)                  ## imm = 0xDB61
	jl	LBB0_12
## %bb.11:
	movq	_WPA_CIPHER_GCMP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 72(%rbx)
	movq	%rax, 64(%rbx)
	movl	$1, 20(%rbx)
LBB0_12:
	movl	24(%r15), %edi
	callq	_os_strlen
	testq	%rax, %rax
	jle	LBB0_16
## %bb.13:
	movl	24(%r15), %edi
	callq	_os_strdup
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_19
## %bb.14:
	movq	16(%r15), %rax
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	%rbx, %rdi
	callq	_wpa_config_update_psk
	jmp	LBB0_18
LBB0_16:
	movq	$0, 32(%rbx)
	movq	16(%r15), %rax
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	40(%rbx), %rdi
	movl	8(%r15), %esi
	movl	$8, %edx
	callq	_os_memcpy
LBB0_18:
	movq	56(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_p2p_go_configured@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	%r14, 40(%r14)
	movl	28(%r14), %eax
	movl	%eax, 32(%r14)
	movq	_NORMAL_SCAN_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	%rbx, 16(%r14)
	movl	$1, (%r14)
	movq	$0, 8(%r14)
	movl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_wpa_dbg
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_supplicant_req_scan        ## TAILCALL
LBB0_19:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_wpa_msg_global
	movl	64(%r14), %edi
	movl	56(%rbx), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_config_remove_network      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"P2P: Starting GO"

L_.str.1:                               ## @.str.1
	.asciz	"P2P: Could not copy GO Negotiation results"

L_.str.2:                               ## @.str.2
	.asciz	"P2P: Could not add network for GO"

	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WPAS_MODE_P2P_GROUP_FORMATION,4,2 ## @WPAS_MODE_P2P_GROUP_FORMATION
	.comm	_WPAS_MODE_P2P_GO,4,2           ## @WPAS_MODE_P2P_GO
	.comm	_WPA_AUTH_ALG_OPEN,4,2          ## @WPA_AUTH_ALG_OPEN
	.comm	_WPA_KEY_MGMT_PSK,4,2           ## @WPA_KEY_MGMT_PSK
	.comm	_WPA_PROTO_RSN,4,2              ## @WPA_PROTO_RSN
	.comm	_WPA_CIPHER_CCMP,8,3            ## @WPA_CIPHER_CCMP
	.comm	_WPA_CIPHER_GCMP,8,3            ## @WPA_CIPHER_GCMP
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"P2P: Failed to copy passphrase for GO"

	.comm	_p2p_go_configured,4,2          ## @p2p_go_configured
	.comm	_NORMAL_SCAN_REQ,4,2            ## @NORMAL_SCAN_REQ
L_.str.4:                               ## @.str.4
	.asciz	"P2P: Request scan (that will be skipped) to start GO)"

	.no_dead_strip	_wpas_start_wps_go
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_start_wps_go
_wpas_start_wps_go:                     ; @wpas_start_wps_go
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_wpa_dbg
	mov	x0, x19
	mov	x1, x21
	bl	_wpas_copy_go_neg_results
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	w0, [x19, #64]
	bl	_wpa_config_add_network
	cbz	x0, LBB0_11
; %bb.2:
	mov	x20, x0
	stp	xzr, xzr, [x19, #72]
	str	xzr, [x19, #88]
	ldr	w0, [x19, #68]
Lloh4:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_os_memset
	mov	x0, x20
	bl	_wpa_config_set_network_defaults
	movi.2s	v0, #1
	str	d0, [x20]
	ldp	w9, w8, [x21, #48]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x20, #8]
Lloh7:
	adrp	x8, _WPAS_MODE_P2P_GROUP_FORMATION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WPAS_MODE_P2P_GROUP_FORMATION@GOTPAGEOFF]
	cmp	w22, #0
Lloh9:
	adrp	x10, _WPAS_MODE_P2P_GO@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WPAS_MODE_P2P_GO@GOTPAGEOFF]
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	ldr	w10, [x21]
	str	w10, [x20, #12]
	stp	w9, w8, [x20, #120]
	ldr	q0, [x21, #32]
	stur	q0, [x20, #104]
	ldr	w8, [x21, #4]
	add	w0, w8, #1
	bl	_os_zalloc
	str	x0, [x20, #96]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x21, #28]
	ldr	w2, [x21, #4]
	bl	_os_memcpy
	ldr	w8, [x21, #4]
	str	w8, [x20, #16]
LBB0_4:
Lloh11:
	adrp	x8, _WPA_AUTH_ALG_OPEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WPA_AUTH_ALG_OPEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #88]
Lloh14:
	adrp	x8, _WPA_KEY_MGMT_PSK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WPA_KEY_MGMT_PSK@GOTPAGEOFF]
Lloh16:
	adrp	x9, _WPA_PROTO_RSN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WPA_PROTO_RSN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #80]
Lloh20:
	adrp	x8, _WPA_CIPHER_CCMP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WPA_CIPHER_CCMP@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #64]
	ldr	w8, [x21]
	mov	w9, #56161
	cmp	w8, w9
	b.lt	LBB0_6
; %bb.5:
Lloh23:
	adrp	x8, _WPA_CIPHER_GCMP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WPA_CIPHER_GCMP@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #64]
	mov	w8, #1
	str	w8, [x20, #20]
LBB0_6:
	ldr	w0, [x21, #24]
	bl	_os_strlen
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.7:
	ldr	w0, [x21, #24]
	bl	_os_strdup
	str	x0, [x20, #32]
	cbz	x0, LBB0_16
; %bb.8:
	ldr	x8, [x21, #16]
	str	x8, [x20, #48]
	cbnz	x8, LBB0_14
; %bb.9:
	mov	x0, x20
	bl	_wpa_config_update_psk
	b	LBB0_15
LBB0_10:
	ldr	w1, [x23]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:
	ldr	w1, [x23]
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_dbg
LBB0_13:
	str	xzr, [x20, #32]
	ldr	x8, [x21, #16]
	str	x8, [x20, #48]
	cbz	x8, LBB0_15
LBB0_14:
	ldr	x0, [x20, #40]
	ldr	w1, [x21, #8]
	mov	w2, #8
	bl	_os_memcpy
LBB0_15:
	ldr	x8, [x19, #56]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh30:
	adrp	x8, _p2p_go_configured@GOTPAGE
Lloh31:
	ldr	x8, [x8, _p2p_go_configured@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	str	x19, [x19, #40]
	ldr	w8, [x19, #28]
	str	w8, [x19, #32]
Lloh33:
	adrp	x8, _NORMAL_SCAN_REQ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NORMAL_SCAN_REQ@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
	stp	xzr, x20, [x19, #8]
	ldr	w1, [x23]
Lloh36:
	adrp	x2, l_.str.4@PAGE
Lloh37:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_wpa_dbg
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_supplicant_req_scan
LBB0_16:
Lloh38:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.3@PAGE
Lloh42:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_wpa_msg_global
	ldr	w0, [x19, #64]
	ldr	w1, [x20, #56]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_config_remove_network
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"P2P: Starting GO"

l_.str.1:                               ; @.str.1
	.asciz	"P2P: Could not copy GO Negotiation results"

l_.str.2:                               ; @.str.2
	.asciz	"P2P: Could not add network for GO"

	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WPAS_MODE_P2P_GROUP_FORMATION,4,2 ; @WPAS_MODE_P2P_GROUP_FORMATION
	.comm	_WPAS_MODE_P2P_GO,4,2           ; @WPAS_MODE_P2P_GO
	.comm	_WPA_AUTH_ALG_OPEN,4,2          ; @WPA_AUTH_ALG_OPEN
	.comm	_WPA_KEY_MGMT_PSK,4,2           ; @WPA_KEY_MGMT_PSK
	.comm	_WPA_PROTO_RSN,4,2              ; @WPA_PROTO_RSN
	.comm	_WPA_CIPHER_CCMP,8,3            ; @WPA_CIPHER_CCMP
	.comm	_WPA_CIPHER_GCMP,8,3            ; @WPA_CIPHER_GCMP
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"P2P: Failed to copy passphrase for GO"

	.comm	_p2p_go_configured,4,2          ; @p2p_go_configured
	.comm	_NORMAL_SCAN_REQ,4,2            ; @NORMAL_SCAN_REQ
l_.str.4:                               ; @.str.4
	.asciz	"P2P: Request scan (that will be skipped) to start GO)"

	.no_dead_strip	_wpas_start_wps_go
.subsections_via_symbols
