	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_wps_start_reg             ## -- Begin function wpas_wps_start_reg
	.p2align	4, 0x90
_wpas_wps_start_reg:                    ## @wpas_wps_start_reg
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r12d
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_wpas_clear_wps
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movq	%rbx, -264(%rbp)                ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_wpas_wps_add_network
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movl	$1, (%rax)
	leaq	L_.str(%rip), %rdx
	leaq	-256(%rbp), %rdi
	movl	$200, %esi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_os_snprintf
	movq	%rbx, %r12
	movl	%eax, %ebx
	movl	$200, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_6
LBB0_3:
	movl	$-1, %r12d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.5:
	movl	%r12d, %eax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movslq	%ebx, %rax
	leaq	(%rax,%rbp), %rdi
	addq	$-256, %rdi
	testq	%r15, %r15
	je	LBB0_10
## %bb.7:
	movl	$200, %r14d
	subl	%ebx, %r14d
	movl	12(%r15), %ecx
	movl	8(%r15), %r8d
	movl	(%r15), %eax
	movl	4(%r15), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	%rdi, %r15
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.9:
	movslq	%ebx, %rax
	addq	%rax, %r15
	movq	%r15, %rdi
LBB0_10:
	leaq	-56(%rbp), %rbx
	subl	%edi, %ebx
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_os_snprintf
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_3
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	leaq	-256(%rbp), %rdx
	movq	%r12, %rbx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_wpa_config_set
	testq	%rax, %rax
	movl	$-1, %r12d
	js	LBB0_4
## %bb.13:
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	%rax, 8(%rbx)
LBB0_15:
	movq	_WPS_PBC_WALK_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_wpas_wps_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-264(%rbp), %rdx                ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	_wpas_wps_reassoc
	jmp	LBB0_4
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"pin=%s"

L_.str.1:                               ## @.str.1
	.asciz	" new_ssid=%s new_auth=%s new_encr=%s new_key=%s"

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

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

	.comm	_WPS_PBC_WALK_TIME,4,2          ## @WPS_PBC_WALK_TIME
	.comm	_wpas_wps_timeout,4,2           ## @wpas_wps_timeout
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpas_wps_start_reg             ; -- Begin function wpas_wps_start_reg
	.p2align	2
_wpas_wps_start_reg:                    ; @wpas_wps_start_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x2, LBB0_3
; %bb.1:
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	bl	_wpas_clear_wps
	mov	w24, #1
	mov	x0, x20
	mov	w1, #1
	mov	x2, #0
	mov	x3, x19
	bl	_wpas_wps_add_network
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	str	w24, [x0]
	add	x25, sp, #32
	str	x23, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #32
	mov	w1, #200
	bl	_os_snprintf
	mov	x24, x0
	mov	w0, #200
	mov	x1, x24
	bl	_os_snprintf_error
	cbz	x0, LBB0_6
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldur	x8, [x29, #-72]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.5:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_6:
	add	x23, x25, w24, sxtw
	cbz	x22, LBB0_9
; %bb.7:
	mov	w8, #200
	sub	w24, w8, w24
	ldp	w9, w8, [x22, #8]
	ldp	w11, w10, [x22]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x1, x24
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x24
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_3
; %bb.8:
	add	x23, x23, w22, sxtw
LBB0_9:
	add	x8, x25, #200
	sub	w22, w8, w23
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf
	mov	x1, x0
	mov	x0, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_3
; %bb.10:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #32
	mov	x0, x21
	mov	w3, #0
	bl	_wpa_config_set
	tbnz	x0, #63, LBB0_3
; %bb.11:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.12:
	str	x8, [x21, #8]
LBB0_13:
Lloh14:
	adrp	x8, _WPS_PBC_WALK_TIME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WPS_PBC_WALK_TIME@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _wpas_wps_timeout@GOTPAGE
Lloh18:
	ldr	x8, [x8, _wpas_wps_timeout@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x20
	mov	x4, #0
	bl	_eloop_register_timeout
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	w3, #0
	bl	_wpas_wps_reassoc
	mov	w0, #0
	b	LBB0_4
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"pin=%s"

l_.str.1:                               ; @.str.1
	.asciz	" new_ssid=%s new_auth=%s new_encr=%s new_key=%s"

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

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

	.comm	_WPS_PBC_WALK_TIME,4,2          ; @WPS_PBC_WALK_TIME
	.comm	_wpas_wps_timeout,4,2           ; @wpas_wps_timeout
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
.subsections_via_symbols
