	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpas_wps_start_dev_pw
_wpas_wps_start_dev_pw:                 ## @wpas_wps_start_dev_pw
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WPS_OOB_PUBKEY_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leal	(%r12,%r12), %eax
	addl	$128, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)
	leal	(%r12,%r12), %eax
	addl	$10, %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_wpas_clear_wps
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_is_zero_ether_addr
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmoveq	%r15, %rcx
	jmp	LBB0_3
LBB0_2:
	xorl	%ecx, %ecx
LBB0_3:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	callq	_wpas_wps_add_network
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %r13
	movq	24(%rbp), %r15
	movl	$1, (%rax)
	movl	%r14d, 4(%rax)
	testl	%r14d, %r14d
	jne	LBB0_6
## %bb.5:
	movl	$2, 8(%r13)
LBB0_6:
	movq	16(%rbp), %rbx
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	movq	32(%rbp), %r14
	movq	%r14, %rdi
	callq	_os_malloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_os_memcpy
	movq	%r14, 24(%r13)
LBB0_9:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.10:
	addl	%r12d, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_os_memcpy
	addq	$8, %rbx
	addl	$2, %r12d
	movq	_WPS_OOB_PUBKEY_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_wpa_snprintf_hex_uppercase
	jmp	LBB0_14
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_12:
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_25
LBB0_13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movb	$0, (%rax)
LBB0_14:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_os_snprintf
	jmp	LBB0_20
LBB0_16:
	movq	_DEV_PW_NFC_CONNECTION_HANDOVER@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_os_snprintf
	jmp	LBB0_20
LBB0_18:
	leaq	-52(%rbp), %rdi
	callq	_wps_generate_pin
	testq	%rax, %rax
	js	LBB0_28
## %bb.19:
	movl	-52(%rbp), %ecx
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r15d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_os_snprintf
LBB0_20:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_wpa_config_set
	testq	%rax, %rax
	js	LBB0_24
## %bb.21:
	movl	40(%rbp), %r14d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	%rax, 32(%r13)
LBB0_23:
	movq	_WPS_PBC_WALK_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_wpas_wps_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	callq	_eloop_register_timeout
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_wpas_wps_reassoc
	movl	-52(%rbp), %eax
	jmp	LBB0_26
LBB0_24:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_25:
	movl	$-1, %eax
LBB0_26:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.27:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WPS_OOB_PUBKEY_HASH_LEN,4,2    ## @WPS_OOB_PUBKEY_HASH_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Could not add network"

L_.str.1:                               ## @.str.1
	.asciz	" pkhash="

L_.str.2:                               ## @.str.2
	.asciz	"\"pin=%s dev_pw_id=%u%s\""

	.comm	_DEV_PW_NFC_CONNECTION_HANDOVER,4,2 ## @DEV_PW_NFC_CONNECTION_HANDOVER
L_.str.3:                               ## @.str.3
	.asciz	"\"dev_pw_id=%u%s\""

L_.str.4:                               ## @.str.4
	.asciz	"WPS: Could not generate PIN"

L_.str.5:                               ## @.str.5
	.asciz	"\"pin=%08d dev_pw_id=%u%s\""

L_.str.6:                               ## @.str.6
	.asciz	"phase1"

L_.str.7:                               ## @.str.7
	.asciz	"WPS: Failed to set phase1 '%s'"

	.comm	_WPS_PBC_WALK_TIME,4,2          ## @WPS_PBC_WALK_TIME
	.comm	_wpas_wps_timeout,4,2           ## @wpas_wps_timeout
	.no_dead_strip	_wpas_wps_start_dev_pw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpas_wps_start_dev_pw
_wpas_wps_start_dev_pw:                 ; @wpas_wps_start_dev_pw
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x28, x7
	mov	x27, x6
	stp	x3, x5, [x29, #-112]            ; 16-byte Folded Spill
	mov	x24, x4
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _WPS_OOB_PUBKEY_HASH_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WPS_OOB_PUBKEY_HASH_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w25, w8, #1
	add	w22, w25, #128
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	stur	wzr, [x29, #-92]
	add	w8, w25, #10
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	bl	_wpas_clear_wps
	cbz	x21, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_is_zero_ether_addr
	cmp	x0, #0
	csel	x21, x21, xzr, eq
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	mov	x3, x21
	bl	_wpas_wps_add_network
	cbz	x0, LBB0_12
; %bb.3:
	mov	x23, x0
	mov	w8, #1
	stp	w8, w24, [x0]
	cbnz	w24, LBB0_5
; %bb.4:
	mov	w8, #2
	str	w8, [x23, #8]
LBB0_5:
	cbz	x28, LBB0_8
; %bb.6:
	ldr	x24, [x29, #16]
	mov	x0, x24
	bl	_os_malloc
	str	x0, [x23, #16]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x1, x28
	mov	x2, x24
	bl	_os_memcpy
	str	x24, [x23, #24]
LBB0_8:
	cbz	x27, LBB0_14
; %bb.9:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x26
	mov	w2, #8
	bl	_os_memcpy
	add	x0, x26, #8
	add	w1, w25, #2
Lloh12:
	adrp	x8, _WPS_OOB_PUBKEY_HASH_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WPS_OOB_PUBKEY_HASH_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x2, x27
	bl	_wpa_snprintf_hex_uppercase
	ldp	x8, x24, [x29, #-112]           ; 16-byte Folded Reload
	cbz	x8, LBB0_15
LBB0_10:
	sub	sp, sp, #32
	stp	x24, x26, [sp, #8]
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	add	sp, sp, #32
	b	LBB0_17
LBB0_12:
Lloh17:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	bl	_wpa_printf
	b	LBB0_22
LBB0_14:
	strb	wzr, [x26]
	ldp	x8, x24, [x29, #-112]           ; 16-byte Folded Reload
	cbnz	x8, LBB0_10
LBB0_15:
Lloh22:
	adrp	x8, _DEV_PW_NFC_CONNECTION_HANDOVER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DEV_PW_NFC_CONNECTION_HANDOVER@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, w24
	b.ne	LBB0_25
; %bb.16:
	mov	x8, x24
	stp	x8, x26, [sp, #-16]!
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	add	sp, sp, #16
LBB0_17:
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	mov	x2, x20
	mov	w3, #0
	bl	_wpa_config_set
	tbnz	x0, #63, LBB0_21
; %bb.18:
	ldr	w20, [x29, #24]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_20
; %bb.19:
	str	x8, [x23, #32]
LBB0_20:
Lloh29:
	adrp	x8, _WPS_PBC_WALK_TIME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WPS_PBC_WALK_TIME@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _wpas_wps_timeout@GOTPAGE
Lloh33:
	ldr	x8, [x8, _wpas_wps_timeout@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	bl	_eloop_register_timeout
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	bl	_wpas_wps_reassoc
	ldur	w0, [x29, #-92]
	b	LBB0_23
LBB0_21:
Lloh35:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	str	x20, [sp, #-16]!
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	add	sp, sp, #16
LBB0_22:
	mov	w0, #-1
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.24:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	sub	x0, x29, #92
	bl	_wps_generate_pin
	tbnz	x0, #63, LBB0_27
; %bb.26:
	ldur	w8, [x29, #-92]
	sub	sp, sp, #32
	mov	x9, x24
	stp	x9, x26, [sp, #8]
	str	x8, [sp]
Lloh43:
	adrp	x2, l_.str.5@PAGE
Lloh44:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_11
LBB0_27:
Lloh45:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh46:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_WPS_OOB_PUBKEY_HASH_LEN,4,2    ; @WPS_OOB_PUBKEY_HASH_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Could not add network"

l_.str.1:                               ; @.str.1
	.asciz	" pkhash="

l_.str.2:                               ; @.str.2
	.asciz	"\"pin=%s dev_pw_id=%u%s\""

	.comm	_DEV_PW_NFC_CONNECTION_HANDOVER,4,2 ; @DEV_PW_NFC_CONNECTION_HANDOVER
l_.str.3:                               ; @.str.3
	.asciz	"\"dev_pw_id=%u%s\""

l_.str.4:                               ; @.str.4
	.asciz	"WPS: Could not generate PIN"

l_.str.5:                               ; @.str.5
	.asciz	"\"pin=%08d dev_pw_id=%u%s\""

l_.str.6:                               ; @.str.6
	.asciz	"phase1"

l_.str.7:                               ; @.str.7
	.asciz	"WPS: Failed to set phase1 '%s'"

	.comm	_WPS_PBC_WALK_TIME,4,2          ; @WPS_PBC_WALK_TIME
	.comm	_wpas_wps_timeout,4,2           ; @wpas_wps_timeout
	.no_dead_strip	_wpas_wps_start_dev_pw
.subsections_via_symbols
