	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_build_cred                 ## -- Begin function wps_build_cred
	.p2align	4, 0x90
_wps_build_cred:                        ## @wps_build_cred
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	40(%rdi), %rax
	movq	56(%rax), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 32(%rbx)
	je	LBB0_19
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	40(%r12), %rax
	movq	56(%rax), %rax
	movq	32(%rax), %rsi
	movq	%r14, %rdi
	callq	_wpabuf_put_buf
	jmp	LBB0_20
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	(%r12), %rsi
	leaq	48(%r12), %r15
	movq	%r15, %rdi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.4:
	movl	$40, %edx
	callq	_os_memcpy
LBB0_5:
	movl	$200, %edi
	callq	_wpabuf_alloc
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_20
## %bb.6:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_wps_build_credential
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	%r13, %rdi
	callq	_wpabuf_clear_free
	jmp	LBB0_20
LBB0_8:
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_os_memset
	movq	96(%r12), %rax
	movq	_MULTI_AP_BACKHAUL_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:
	cmpl	$0, (%rbx)
	je	LBB0_12
## %bb.10:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	80(%r12), %rdi
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	callq	_os_memcpy
	movl	(%rbx), %eax
	movl	%eax, 48(%r12)
	movq	_WPS_AUTH_WPA2PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movq	_WPS_ENCR_AES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movq	8(%r12), %rsi
	movq	64(%r12), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.11:
	movq	72(%r12), %rdi
	movl	24(%rbx), %edx
	callq	_os_memcpy
	movl	24(%rbx), %eax
	jmp	LBB0_44
LBB0_12:
	movq	40(%r12), %rax
	movq	80(%r12), %rdi
	movq	(%rax), %rsi
	movl	8(%rax), %edx
	callq	_os_memcpy
	movq	40(%r12), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 48(%r12)
	movl	(%r13), %edi
	movl	84(%rax), %edx
	movl	16(%r12), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	16(%r12), %edx
	movq	_WPS_AUTH_WPA2PSK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%edx, %eax
	jne	LBB0_15
## %bb.13:
	movq	_WPS_AUTH_WPAPSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %eax
	jne	LBB0_15
## %bb.14:
	movq	_WPS_AUTH_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edx, %eax
	je	LBB0_58
LBB0_15:
	movl	%eax, 16(%r12)
	movl	%eax, 52(%r12)
	movl	(%r13), %edi
	movq	40(%r12), %rax
	movl	80(%rax), %edx
	movl	12(%rax), %ecx
	movl	16(%rax), %r8d
	movl	20(%r12), %r9d
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	40(%r12), %rcx
	cmpq	$0, 72(%rcx)
	movl	16(%r12), %eax
	movl	(%rbx), %edx
	je	LBB0_24
## %bb.16:
	cmpl	%edx, %eax
	jne	LBB0_22
## %bb.17:
	movl	12(%rcx), %eax
	andl	%eax, 20(%r12)
	jmp	LBB0_28
LBB0_18:
	movq	_ATTR_CRED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpabuf_put_be16
	movq	%r13, %rdi
	callq	_wpabuf_len
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put_be16
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_wpabuf_put_buf
	movq	%r13, %rdi
	callq	_wpabuf_clear_free
	movq	40(%r12), %rax
	movq	56(%rax), %rbx
	cmpq	$0, 32(%rbx)
	jne	LBB0_2
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_59
## %bb.21:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	_WPS_AUTH_WPAPSK@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_24
## %bb.23:
	movl	16(%rcx), %ecx
	andl	%ecx, 20(%r12)
LBB0_24:
	cmpl	%edx, %eax
	je	LBB0_28
## %bb.25:
	movq	_WPS_AUTH_WPAPSK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_28
## %bb.26:
	movq	_WPS_ENCR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 20(%r12)
	jne	LBB0_30
## %bb.27:
	movl	(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_48
LBB0_28:
	movl	20(%r12), %ecx
	movq	_WPS_ENCR_AES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	jne	LBB0_30
## %bb.29:
	movq	_WPS_ENCR_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %eax
	je	LBB0_47
LBB0_30:
	movl	%eax, 20(%r12)
	movl	%eax, 56(%r12)
	movq	8(%r12), %rsi
	movq	64(%r12), %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_os_memcpy
	movq	40(%r12), %rax
	movq	24(%rax), %rcx
	movq	_WPS_STATE_NOT_CONFIGURED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_33
## %bb.31:
	cmpq	$0, 72(%rax)
	je	LBB0_33
## %bb.32:
	movq	56(%rax), %rcx
	cmpl	$0, 44(%rcx)
	je	LBB0_49
LBB0_33:
	movq	56(%rax), %rcx
	cmpl	$0, 40(%rcx)
	je	LBB0_39
LBB0_34:
	movq	_WPS_AUTH_WPAPSK@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 16(%r12)
	je	LBB0_5
## %bb.35:
	movq	24(%r12), %rdi
	callq	_os_free
	movl	$32, 32(%r12)
	movl	$32, %edi
	callq	_os_malloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_57
## %bb.36:
	xorl	%eax, %eax
	callq	_random_pool_ready
	cmpl	$1, %eax
	jne	LBB0_45
## %bb.37:
	movq	24(%r12), %rdi
	movl	32(%r12), %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	js	LBB0_45
## %bb.38:
	movl	(%r13), %edi
	movq	24(%r12), %rdx
	movl	32(%r12), %ecx
	leaq	L_.str.10(%rip), %rsi
	callq	_wpa_hexdump_key
	movq	24(%r12), %rdx
	movl	32(%r12), %ecx
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$65, %esi
	callq	_wpa_snprintf_hex
	movq	72(%r12), %rdi
	movl	32(%r12), %edx
	addl	%edx, %edx
	movq	%rbx, %rsi
	callq	_os_memcpy
	movl	32(%r12), %eax
	addl	%eax, %eax
	jmp	LBB0_44
LBB0_39:
	cmpq	$0, 88(%r12)
	je	LBB0_42
## %bb.40:
	cmpq	$0, 64(%rax)
	je	LBB0_42
## %bb.41:
	movl	(%r13), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	40(%r12), %rax
	movq	32(%rax), %rdx
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$65, %esi
	movl	$32, %ecx
	callq	_wpa_snprintf_hex
	movq	72(%r12), %rdi
	movq	%rbx, %rsi
	movl	$64, %edx
	callq	_os_memcpy
	movl	$64, 60(%r12)
	jmp	LBB0_5
LBB0_42:
	movq	40(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_34
## %bb.43:
	movq	72(%r12), %rdi
	movl	48(%rax), %edx
	callq	_os_memcpy
	movq	40(%r12), %rax
	movl	48(%rax), %eax
LBB0_44:
	movl	%eax, 60(%r12)
	jmp	LBB0_5
LBB0_45:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	24(%r12), %rdi
	callq	_os_free
	movq	$0, 24(%r12)
	jmp	LBB0_57
LBB0_47:
	movl	(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_48:
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_20
LBB0_49:
	xorl	%eax, %eax
	callq	_random_pool_ready
	cmpl	$1, %eax
	jne	LBB0_56
## %bb.50:
	leaq	-128(%rbp), %rdi
	movl	$16, %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	js	LBB0_56
## %bb.51:
	movq	24(%r12), %rdi
	callq	_os_free
	leaq	32(%r12), %rbx
	leaq	-128(%rbp), %rdi
	movl	$16, %esi
	movq	%rbx, %rdx
	callq	_base64_encode
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_57
## %bb.52:
	movslq	(%rbx), %rcx
	leaq	(%rcx,%rax), %rdx
	addq	$-2, %rdx
	leal	-1(%rcx), %esi
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ecx
	movl	%esi, (%rbx)
	subl	$1, %esi
	jb	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	cmpb	$61, (%rdx)
	leaq	-1(%rdx), %rdx
	je	LBB0_53
LBB0_55:
	movl	(%r13), %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_ascii_key
	movq	72(%r12), %rdi
	movq	24(%r12), %rsi
	movl	32(%r12), %edx
	callq	_os_memcpy
	movl	32(%r12), %eax
	jmp	LBB0_44
LBB0_56:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_57:
	movl	$-1, %ebx
	jmp	LBB0_20
LBB0_58:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
	jmp	LBB0_20
LBB0_59:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS:  * Credential"

	.comm	_MULTI_AP_BACKHAUL_STA,8,3      ## @MULTI_AP_BACKHAUL_STA
L_.str.1:                               ## @.str.1
	.asciz	"WPS: Use backhaul STA credentials"

	.comm	_WPS_AUTH_WPA2PSK,4,2           ## @WPS_AUTH_WPA2PSK
	.comm	_WPS_ENCR_AES,4,2               ## @WPS_ENCR_AES
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
L_.str.2:                               ## @.str.2
	.asciz	"WPS: Own auth types 0x%x - masked Enrollee auth types 0x%x"

	.comm	_WPS_AUTH_WPAPSK,4,2            ## @WPS_AUTH_WPAPSK
	.comm	_WPS_AUTH_OPEN,4,2              ## @WPS_AUTH_OPEN
L_.str.3:                               ## @.str.3
	.asciz	"WPS: Unsupported auth_type 0x%x"

L_.str.4:                               ## @.str.4
	.asciz	"WPS: Own encr types 0x%x (rsn: 0x%x, wpa: 0x%x) - masked Enrollee encr types 0x%x"

	.comm	_WPS_ENCR_TKIP,4,2              ## @WPS_ENCR_TKIP
L_.str.5:                               ## @.str.5
	.asciz	"WPS: No suitable encryption type for WPA/WPA2"

	.comm	_WPS_ENCR_NONE,4,2              ## @WPS_ENCR_NONE
L_.str.6:                               ## @.str.6
	.asciz	"WPS: No suitable encryption type for non-WPA/WPA2 mode"

	.comm	_WPS_STATE_NOT_CONFIGURED,8,3   ## @WPS_STATE_NOT_CONFIGURED
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.7:                               ## @.str.7
	.asciz	"WPS: Could not generate random PSK"

L_.str.8:                               ## @.str.8
	.asciz	"WPS: Generated passphrase"

L_.str.9:                               ## @.str.9
	.asciz	"WPS: Use PSK format for Network Key"

L_.str.10:                              ## @.str.10
	.asciz	"WPS: Generated per-device PSK"

	.comm	_ATTR_CRED,4,2                  ## @ATTR_CRED
L_.str.11:                              ## @.str.11
	.asciz	"WPS:  * Credential (pre-configured)"

	.comm	_WPS_ENCR_WEP,4,2               ## @WPS_ENCR_WEP
	.comm	_wps_testing_dummy_cred,8,3     ## @wps_testing_dummy_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_build_cred                 ; -- Begin function wps_build_cred
	.p2align	2
_wps_build_cred:                        ; @wps_build_cred
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x20, 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, #-56]
	ldr	x8, [x0, #40]
	ldr	x24, [x8, #56]
	ldr	x8, [x24, #48]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.11@PAGE
Lloh7:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #40]
	ldr	x8, [x8, #56]
	ldr	x1, [x8, #32]
	mov	x0, x20
	bl	_wpabuf_put_buf
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_58
; %bb.5:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
Lloh11:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x21, x19
	ldr	x1, [x21], #48
	cbz	x1, LBB0_11
; %bb.7:
	mov	x0, x21
	mov	w2, #40
	bl	_os_memcpy
LBB0_8:
	mov	w0, #200
	bl	_wpabuf_alloc
	cbz	x0, LBB0_55
; %bb.9:
	mov	x22, x0
	mov	x1, x21
	bl	_wps_build_credential
	cbz	x0, LBB0_21
; %bb.10:
	mov	x0, x22
	bl	_wpabuf_clear_free
	mov	w0, #-1
	b	LBB0_4
LBB0_11:
	mov	x0, x21
	mov	w2, #40
	bl	_os_memset
	ldr	x8, [x19, #96]
Lloh15:
	adrp	x9, _MULTI_AP_BACKHAUL_STA@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MULTI_AP_BACKHAUL_STA@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x22, _WPS_AUTH_WPA2PSK@GOTPAGE
Lloh19:
	ldr	x22, [x22, _WPS_AUTH_WPA2PSK@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.12:
	ldr	w8, [x24]
	cbz	w8, LBB0_15
; %bb.13:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #80]
	ldr	x1, [x24, #8]
	ldr	w2, [x24]
	bl	_os_memcpy
	ldr	w8, [x24]
	ldr	w9, [x22]
	stp	w8, w9, [x19, #48]
Lloh22:
	adrp	x8, _WPS_ENCR_AES@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WPS_ENCR_AES@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	ldr	x0, [x19, #64]
	ldr	x1, [x19, #8]
Lloh25:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	x1, [x24, #16]
	cbz	x1, LBB0_8
; %bb.14:
	ldr	x0, [x19, #72]
	ldr	w2, [x24, #24]
	bl	_os_memcpy
	ldr	w8, [x24, #24]
	b	LBB0_44
LBB0_15:
	ldr	x0, [x19, #80]
	ldr	x8, [x19, #40]
	ldr	x1, [x8]
	ldr	w2, [x8, #8]
	bl	_os_memcpy
	ldr	x8, [x19, #40]
	ldr	w9, [x8, #8]
	str	w9, [x19, #48]
	ldr	w0, [x23]
	ldr	w8, [x8, #84]
	ldr	w9, [x19, #16]
	stp	x8, x9, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w8, [x19, #16]
	ldr	w9, [x22]
Lloh30:
	adrp	x24, _WPS_AUTH_WPAPSK@GOTPAGE
Lloh31:
	ldr	x24, [x24, _WPS_AUTH_WPAPSK@GOTPAGEOFF]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.16:
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.17:
Lloh32:
	adrp	x9, _WPS_AUTH_OPEN@GOTPAGE
Lloh33:
	ldr	x9, [x9, _WPS_AUTH_OPEN@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_56
LBB0_18:
	str	w9, [x19, #16]
	str	w9, [x19, #52]
	ldr	w0, [x23]
	ldr	x8, [x19, #40]
	ldr	w9, [x8, #80]
	ldp	w10, w8, [x8, #12]
	ldr	w11, [x19, #20]
	stp	x8, x11, [sp, #16]
	stp	x9, x10, [sp]
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	x10, [x19, #40]
	ldr	x11, [x10, #72]
	ldr	w8, [x19, #16]
	ldr	w9, [x22]
	cbz	x11, LBB0_24
; %bb.19:
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.20:
	ldr	w8, [x10, #12]
	ldr	w9, [x19, #20]
	and	w8, w9, w8
	str	w8, [x19, #20]
	b	LBB0_28
LBB0_21:
Lloh37:
	adrp	x8, _ATTR_CRED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ATTR_CRED@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wpabuf_put_be16
	mov	x0, x22
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x20
	bl	_wpabuf_put_be16
	mov	x0, x20
	mov	x1, x22
	bl	_wpabuf_put_buf
	mov	x0, x22
	bl	_wpabuf_clear_free
	ldr	x8, [x19, #40]
	ldr	x24, [x8, #56]
	ldr	x8, [x24, #32]
	cbnz	x8, LBB0_2
	b	LBB0_3
LBB0_22:
	ldr	w11, [x24]
	cmp	w8, w11
	b.ne	LBB0_24
; %bb.23:
	ldr	w10, [x10, #16]
	ldr	w11, [x19, #20]
	and	w10, w11, w10
	str	w10, [x19, #20]
LBB0_24:
	cmp	w8, w9
	b.eq	LBB0_28
; %bb.25:
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_28
; %bb.26:
	ldr	w9, [x19, #20]
Lloh40:
	adrp	x8, _WPS_ENCR_NONE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _WPS_ENCR_NONE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_30
; %bb.27:
	ldr	w0, [x23]
Lloh43:
	adrp	x1, l_.str.6@PAGE
Lloh44:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_57
LBB0_28:
	ldr	w9, [x19, #20]
Lloh45:
	adrp	x8, _WPS_ENCR_AES@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WPS_ENCR_AES@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_30
; %bb.29:
Lloh48:
	adrp	x8, _WPS_ENCR_TKIP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _WPS_ENCR_TKIP@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_46
LBB0_30:
	str	w8, [x19, #20]
	str	w8, [x19, #56]
	ldr	x0, [x19, #64]
	ldr	x1, [x19, #8]
Lloh51:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	bl	_os_memcpy
	ldr	x8, [x19, #40]
	ldr	x9, [x8, #24]
Lloh54:
	adrp	x10, _WPS_STATE_NOT_CONFIGURED@GOTPAGE
Lloh55:
	ldr	x10, [x10, _WPS_STATE_NOT_CONFIGURED@GOTPAGEOFF]
Lloh56:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_33
; %bb.31:
	ldr	x9, [x8, #72]
	cbz	x9, LBB0_33
; %bb.32:
	ldr	x9, [x8, #56]
	ldr	w9, [x9, #44]
	cbz	w9, LBB0_47
LBB0_33:
	ldr	x9, [x8, #56]
	ldr	w9, [x9, #40]
	cbz	w9, LBB0_39
LBB0_34:
	ldr	w8, [x19, #16]
	ldr	w9, [x24]
	ldr	w10, [x22]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_8
; %bb.35:
	ldr	x0, [x19, #24]
	bl	_os_free
	mov	w8, #32
	str	w8, [x19, #32]
	mov	w0, #32
	bl	_os_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_55
; %bb.36:
	bl	_random_pool_ready
	cmp	w0, #1
	b.ne	LBB0_45
; %bb.37:
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #32]
	bl	_random_get_bytes
	tbnz	x0, #63, LBB0_45
; %bb.38:
	ldr	w0, [x23]
	ldr	x2, [x19, #24]
	ldr	w3, [x19, #32]
Lloh57:
	adrp	x1, l_.str.10@PAGE
Lloh58:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	x2, [x19, #24]
	ldr	w3, [x19, #32]
	add	x0, sp, #39
	mov	w1, #65
	bl	_wpa_snprintf_hex
	ldr	x0, [x19, #72]
	ldr	w8, [x19, #32]
	lsl	w2, w8, #1
	add	x1, sp, #39
	bl	_os_memcpy
	ldr	w8, [x19, #32]
	lsl	w8, w8, #1
	b	LBB0_44
LBB0_39:
	ldr	x9, [x19, #88]
	cbz	x9, LBB0_42
; %bb.40:
	ldr	x9, [x8, #64]
	cbz	x9, LBB0_42
; %bb.41:
	ldr	w0, [x23]
Lloh59:
	adrp	x1, l_.str.9@PAGE
Lloh60:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #40]
	ldr	x2, [x8, #32]
	add	x0, sp, #39
	mov	w1, #65
	mov	w3, #32
	bl	_wpa_snprintf_hex
	ldr	x0, [x19, #72]
	mov	w22, #64
	add	x1, sp, #39
	mov	w2, #64
	bl	_os_memcpy
	str	w22, [x19, #60]
	b	LBB0_8
LBB0_42:
	ldr	x1, [x8, #40]
	cbz	x1, LBB0_34
; %bb.43:
	ldr	x0, [x19, #72]
	ldr	w2, [x8, #48]
	bl	_os_memcpy
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #48]
LBB0_44:
	str	w8, [x19, #60]
	b	LBB0_8
LBB0_45:
Lloh61:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh62:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
Lloh64:
	adrp	x1, l_.str.7@PAGE
Lloh65:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	ldr	x0, [x19, #24]
	bl	_os_free
	str	xzr, [x19, #24]
	b	LBB0_55
LBB0_46:
	ldr	w0, [x23]
Lloh66:
	adrp	x1, l_.str.5@PAGE
Lloh67:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_57
LBB0_47:
	bl	_random_pool_ready
	cmp	w0, #1
	b.ne	LBB0_54
; %bb.48:
	add	x0, sp, #39
	mov	w1, #16
	bl	_random_get_bytes
	tbnz	x0, #63, LBB0_54
; %bb.49:
	ldr	x0, [x19, #24]
	bl	_os_free
	add	x22, x19, #32
	add	x0, sp, #39
	mov	w1, #16
	mov	x2, x22
	bl	_base64_encode
	str	x0, [x19, #24]
	cbz	x0, LBB0_55
; %bb.50:
	mov	x2, x0
	ldrsw	x9, [x22]
	sub	x8, x9, #2
	sub	w9, w9, #1
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	mov	x3, x9
	str	w9, [x22]
	cbz	w9, LBB0_53
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	ldrb	w10, [x2, x8]
	sub	x8, x8, #1
	sub	w9, w3, #1
	cmp	w10, #61
	b.eq	LBB0_51
LBB0_53:
	ldr	w0, [x23]
Lloh68:
	adrp	x1, l_.str.8@PAGE
Lloh69:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_wpa_hexdump_ascii_key
	ldr	x0, [x19, #72]
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #32]
	bl	_os_memcpy
	ldr	w8, [x19, #32]
	b	LBB0_44
LBB0_54:
Lloh70:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh71:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
Lloh73:
	adrp	x1, l_.str.7@PAGE
Lloh74:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
LBB0_55:
	mov	w0, #-1
	b	LBB0_4
LBB0_56:
	ldr	w0, [x23]
	str	x8, [sp]
Lloh75:
	adrp	x1, l_.str.3@PAGE
Lloh76:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_57:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_4
LBB0_58:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS:  * Credential"

	.comm	_MULTI_AP_BACKHAUL_STA,8,3      ; @MULTI_AP_BACKHAUL_STA
l_.str.1:                               ; @.str.1
	.asciz	"WPS: Use backhaul STA credentials"

	.comm	_WPS_AUTH_WPA2PSK,4,2           ; @WPS_AUTH_WPA2PSK
	.comm	_WPS_ENCR_AES,4,2               ; @WPS_ENCR_AES
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
l_.str.2:                               ; @.str.2
	.asciz	"WPS: Own auth types 0x%x - masked Enrollee auth types 0x%x"

	.comm	_WPS_AUTH_WPAPSK,4,2            ; @WPS_AUTH_WPAPSK
	.comm	_WPS_AUTH_OPEN,4,2              ; @WPS_AUTH_OPEN
l_.str.3:                               ; @.str.3
	.asciz	"WPS: Unsupported auth_type 0x%x"

l_.str.4:                               ; @.str.4
	.asciz	"WPS: Own encr types 0x%x (rsn: 0x%x, wpa: 0x%x) - masked Enrollee encr types 0x%x"

	.comm	_WPS_ENCR_TKIP,4,2              ; @WPS_ENCR_TKIP
l_.str.5:                               ; @.str.5
	.asciz	"WPS: No suitable encryption type for WPA/WPA2"

	.comm	_WPS_ENCR_NONE,4,2              ; @WPS_ENCR_NONE
l_.str.6:                               ; @.str.6
	.asciz	"WPS: No suitable encryption type for non-WPA/WPA2 mode"

	.comm	_WPS_STATE_NOT_CONFIGURED,8,3   ; @WPS_STATE_NOT_CONFIGURED
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.7:                               ; @.str.7
	.asciz	"WPS: Could not generate random PSK"

l_.str.8:                               ; @.str.8
	.asciz	"WPS: Generated passphrase"

l_.str.9:                               ; @.str.9
	.asciz	"WPS: Use PSK format for Network Key"

l_.str.10:                              ; @.str.10
	.asciz	"WPS: Generated per-device PSK"

	.comm	_ATTR_CRED,4,2                  ; @ATTR_CRED
l_.str.11:                              ; @.str.11
	.asciz	"WPS:  * Credential (pre-configured)"

	.comm	_WPS_ENCR_WEP,4,2               ; @WPS_ENCR_WEP
	.comm	_wps_testing_dummy_cred,8,3     ; @wps_testing_dummy_cred
.subsections_via_symbols
