	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wps_get_dev_password
_wps_get_dev_password:                  ## @wps_get_dev_password
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	movq	(%rdi), %rsi
	movq	16(%rdi), %rdi
	callq	_bin_clear_free
	movq	$0, 16(%rbx)
	cmpq	$0, 48(%rbx)
	je	LBB0_4
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	$8, -24(%rbp)
	leaq	L_.str.1(%rip), %r14
LBB0_2:
	movq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_os_memdup
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	-24(%rbp), %rax
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	movq	32(%rbx), %rax
	movl	4(%rax), %edi
	movl	28(%rbx), %esi
	leaq	-24(%rbp), %rdx
	callq	_wps_registrar_get_pin
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r14
	cmpl	$16, 8(%rbx)
	jl	LBB0_2
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_DEV_PW_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_2
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rdx
	movl	4(%rdx), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	32(%rbx), %rax
	movl	4(%rax), %edi
	movl	28(%rbx), %esi
	addq	$24, %rbx
	movq	%rbx, %rdx
	callq	_wps_cb_pin_needed
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Use default PIN for PBC"

L_.str.1:                               ## @.str.1
	.asciz	"00000000"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: No match for OOB Device Password ID, but PIN found"

	.comm	_DEV_PW_DEFAULT,4,2             ## @DEV_PW_DEFAULT
L_.str.3:                               ## @.str.3
	.asciz	"WPS: No Device Password available for the Enrollee (context %p registrar %p)"

	.comm	_DEV_PW_NFC_CONNECTION_HANDOVER,8,3 ## @DEV_PW_NFC_CONNECTION_HANDOVER
	.no_dead_strip	_wps_get_dev_password
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wps_get_dev_password
_wps_get_dev_password:                  ; @wps_get_dev_password
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	x0, [x0, #16]
	ldr	x1, [x19]
	bl	_bin_clear_free
	str	xzr, [x19, #16]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w8, #8
	str	x8, [sp, #24]
Lloh5:
	adrp	x20, l_.str.1@PAGE
Lloh6:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_os_memdup
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.3:
	mov	w0, #0
	ldr	x8, [sp, #24]
	str	x8, [x19]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x19, #32]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #28]
	add	x2, sp, #24
	bl	_wps_registrar_get_pin
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	w8, [x19, #8]
	cmp	w8, #16
	b.lt	LBB0_2
; %bb.6:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh12:
	adrp	x8, _DEV_PW_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEV_PW_DEFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_2
LBB0_7:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
	ldr	w9, [x8, #4]
	stp	x8, x9, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #32]
	ldr	w0, [x8, #4]
	ldr	w1, [x19, #28]
	add	x2, x19, #24
	bl	_wps_cb_pin_needed
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Use default PIN for PBC"

l_.str.1:                               ; @.str.1
	.asciz	"00000000"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: No match for OOB Device Password ID, but PIN found"

	.comm	_DEV_PW_DEFAULT,4,2             ; @DEV_PW_DEFAULT
l_.str.3:                               ; @.str.3
	.asciz	"WPS: No Device Password available for the Enrollee (context %p registrar %p)"

	.comm	_DEV_PW_NFC_CONNECTION_HANDOVER,8,3 ; @DEV_PW_NFC_CONNECTION_HANDOVER
	.no_dead_strip	_wps_get_dev_password
.subsections_via_symbols
