	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_er_sta_start
_wps_er_sta_start:                      ## @wps_er_sta_start
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_wps_deinit
LBB0_2:
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_os_memset
	movq	24(%rbx), %rax
	movq	8(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	$1, -48(%rbp)
	movq	16(%rbx), %rax
	movq	%rax, -40(%rbp)
	movq	%r15, %rdi
	callq	_wps_init
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	$1, (%rax)
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:
	movq	(%rbx), %rdi
	callq	_os_free
	movl	$16, %edi
	callq	_os_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	24(%rbx), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %rdi
	movl	$16, %edx
	callq	_os_memcpy
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movq	(%rax), %rdi
	movq	16(%rbx), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
LBB0_6:
	movq	_WSC_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wps_er_sta_process
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WSC_MSG,4,2                    ## @WSC_MSG
	.no_dead_strip	_wps_er_sta_start
.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_start
_wps_er_sta_start:                      ; @wps_er_sta_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_wps_deinit
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_os_memset
	ldp	x9, x8, [x20, #16]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	w21, #1
	str	w21, [sp, #8]
	str	x9, [sp, #16]
	add	x0, sp, #8
	bl	_wps_init
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.3:
	str	w21, [x0]
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	str	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x0, [x20]
	bl	_os_free
	mov	w0, #16
	bl	_os_malloc
	str	x0, [x20]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x20, #24]
	ldr	x1, [x8]
	mov	w2, #16
	bl	_os_memcpy
	ldr	x8, [x20]
	str	xzr, [x8, #8]
	ldr	x0, [x8]
	ldr	x1, [x20, #16]
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldp	x8, x9, [x20]
	str	x8, [x9, #8]
LBB0_6:
Lloh3:
	adrp	x8, _WSC_MSG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WSC_MSG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_wps_er_sta_process
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WSC_MSG,4,2                    ; @WSC_MSG
	.no_dead_strip	_wps_er_sta_start
.subsections_via_symbols
