	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_sta_process
_wps_er_sta_process:                    ## @wps_er_sta_process
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movl	%edx, -28(%rbp)
	movq	(%rdi), %rdi
	movl	%edx, %esi
	movq	%rax, %rdx
	callq	_wps_process_msg
	movl	%eax, %ebx
	movq	_WPS_CONTINUE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_3
## %bb.1:
	movq	(%r14), %rdi
	leaq	-28(%rbp), %rsi
	callq	_wps_get_msg
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_wps_er_sta_send_msg
	jmp	LBB0_4
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WPS_DONE@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_wpa_printf
	movq	(%r14), %rdi
	callq	_wps_deinit
	movq	$0, (%r14)
	cmpl	(%r15), %ebx
	jne	LBB0_4
## %bb.5:
	movq	_wps_er_sta_timeout@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_eloop_cancel_timeout
	movl	(%rbx), %edx
	movl	$10, %edi
	xorl	%esi, %esi
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eloop_register_timeout         ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_CONTINUE,4,2               ## @WPS_CONTINUE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS ER: Protocol run %s with the enrollee (res=%d)"

	.comm	_WPS_DONE,4,2                   ## @WPS_DONE
L_.str.1:                               ## @.str.1
	.asciz	"succeeded"

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

	.comm	_wps_er_sta_timeout,4,2         ## @wps_er_sta_timeout
	.no_dead_strip	_wps_er_sta_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_er_sta_process
_wps_er_sta_process:                    ; @wps_er_sta_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x8, x1
	mov	x19, x0
	str	w2, [sp, #12]
	ldr	x0, [x0]
	mov	x1, x2
	mov	x2, x8
	bl	_wps_process_msg
Lloh0:
	adrp	x8, _WPS_CONTINUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPS_CONTINUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	x0, [x19]
	add	x1, sp, #12
	bl	_wps_get_msg
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	bl	_wps_er_sta_send_msg
	b	LBB0_5
LBB0_3:
	mov	x20, x0
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x21, _WPS_DONE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _WPS_DONE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh8:
	adrp	x9, l_.str.2@PAGE
Lloh9:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh10:
	adrp	x10, l_.str.1@PAGE
Lloh11:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w20, w8
	csel	x2, x10, x9, eq
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_wpa_printf
	ldr	x0, [x19]
	bl	_wps_deinit
	str	xzr, [x19]
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x20, _wps_er_sta_timeout@GOTPAGE
Lloh15:
	ldr	x20, [x20, _wps_er_sta_timeout@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, #0
	bl	_eloop_cancel_timeout
	ldr	w2, [x20]
	mov	w0, #10
	mov	w1, #0
	mov	x3, x19
	mov	x4, #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
	add	sp, sp, #64
	b	_eloop_register_timeout
LBB0_5:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_CONTINUE,4,2               ; @WPS_CONTINUE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS ER: Protocol run %s with the enrollee (res=%d)"

	.comm	_WPS_DONE,4,2                   ; @WPS_DONE
l_.str.1:                               ; @.str.1
	.asciz	"succeeded"

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

	.comm	_wps_er_sta_timeout,4,2         ; @wps_er_sta_timeout
	.no_dead_strip	_wps_er_sta_process
.subsections_via_symbols
