	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_complete         ## -- Begin function wps_registrar_complete
	.p2align	4, 0x90
_wps_registrar_complete:                ## @wps_registrar_complete
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wps_registrar_remove_pbc_session
	movq	%rbx, %rdi
	callq	_wps_registrar_pbc_completed
	movl	(%rbx), %edi
	movq	_WPS_UUID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_os_memcpy
	testq	%r15, %r15
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_wps_registrar_pin_completed
	testq	%r15, %r15
	je	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_wps_registrar_invalidate_wildcard_pin
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_hexdump_key                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_UUID_LEN,4,2               ## @WPS_UUID_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Invalidated wildcard PIN"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_registrar_complete         ; -- Begin function wps_registrar_complete
	.p2align	2
_wps_registrar_complete:                ; @wps_registrar_complete
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x22, x1
	mov	x0, x21
	mov	x2, #0
	bl	_wps_registrar_remove_pbc_session
	mov	x0, x21
	bl	_wps_registrar_pbc_completed
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _WPS_UUID_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WPS_UUID_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_os_memcpy
	cbnz	x20, LBB0_3
	b	LBB0_4
LBB0_2:
	mov	x0, x21
	bl	_wps_registrar_pin_completed
	cbz	x20, LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_wps_registrar_invalidate_wildcard_pin
	cbz	x0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wpa_hexdump_key
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_UUID_LEN,4,2               ; @WPS_UUID_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Invalidated wildcard PIN"

.subsections_via_symbols
