	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_process_dev_pw_id
_wps_process_dev_pw_id:                 ## @wps_process_dev_pw_id
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_WPA_GET_BE16
	movq	%rax, %rbx
	movq	(%r15), %rdx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	cmpq	%rax, %rdx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r15), %rax
	movq	_DEV_PW_PUSHBUTTON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_DEV_PW_DEFAULT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_10
LBB0_7:
	movl	$-1, %r14d
	cmpq	$0, 24(%r15)
	je	LBB0_10
## %bb.8:
	cmpq	%rbx, 8(%r15)
	jne	LBB0_10
## %bb.9:
	movl	(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	32(%r15), %rsi
	movq	40(%r15), %rdi
	callq	_bin_clear_free
	movq	8(%r15), %rax
	movq	%rax, (%r15)
	movups	16(%r15), %xmm0
	movups	%xmm0, 32(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Device Password ID"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: Device Password ID %u"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: Registrar trying to change Device Password ID from %u to %u"

	.comm	_DEV_PW_PUSHBUTTON,8,3          ## @DEV_PW_PUSHBUTTON
	.comm	_DEV_PW_DEFAULT,8,3             ## @DEV_PW_DEFAULT
L_.str.3:                               ## @.str.3
	.asciz	"WPS: Workaround - ignore PBC-to-PIN change"

L_.str.4:                               ## @.str.4
	.asciz	"WPS: Found a matching Device Password"

	.comm	_DEV_PW_REGISTRAR_SPECIFIED,8,3 ## @DEV_PW_REGISTRAR_SPECIFIED
	.no_dead_strip	_wps_process_dev_pw_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_process_dev_pw_id
_wps_process_dev_pw_id:                 ; @wps_process_dev_pw_id
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x1
	bl	_WPA_GET_BE16
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x21, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x21]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.2:
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_10
LBB0_4:
	stp	x8, x20, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _DEV_PW_PUSHBUTTON@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DEV_PW_PUSHBUTTON@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _DEV_PW_DEFAULT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DEV_PW_DEFAULT@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x20, x10, #0, eq
	b.eq	LBB0_8
; %bb.5:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_11
; %bb.6:
	ldr	x8, [x19, #8]
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.7:
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldp	x1, x0, [x19, #32]
	bl	_bin_clear_free
	mov	w0, #0
	ldp	x8, x9, [x19, #8]
	str	x8, [x19]
	ldr	x8, [x19, #24]
	stp	x9, x8, [x19, #32]
	stp	xzr, xzr, [x19, #16]
	b	LBB0_10
LBB0_8:
	ldr	w0, [x21]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	bl	_wpa_printf
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
	mov	w0, #-1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Device Password ID"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: Device Password ID %u"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: Registrar trying to change Device Password ID from %u to %u"

	.comm	_DEV_PW_PUSHBUTTON,8,3          ; @DEV_PW_PUSHBUTTON
	.comm	_DEV_PW_DEFAULT,8,3             ; @DEV_PW_DEFAULT
l_.str.3:                               ; @.str.3
	.asciz	"WPS: Workaround - ignore PBC-to-PIN change"

l_.str.4:                               ; @.str.4
	.asciz	"WPS: Found a matching Device Password"

	.comm	_DEV_PW_REGISTRAR_SPECIFIED,8,3 ; @DEV_PW_REGISTRAR_SPECIFIED
	.no_dead_strip	_wps_process_dev_pw_id
.subsections_via_symbols
