	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_derive_psk                 ## -- Begin function wps_derive_psk
	.p2align	4, 0x90
_wps_derive_psk:                        ## @wps_derive_psk
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	8(%r12), %edi
	movq	_WPS_AUTHKEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%rbx), %r14
	movq	%r13, %rbx
	shrq	%r14
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_hmac_sha256
	movl	$-1, %r13d
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movl	4(%r12), %edi
	movq	_WPS_PSK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_os_memcpy
	movl	8(%r12), %edi
	movq	_WPS_AUTHKEY_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%rbx,%r14,4), %rdx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	shrq	%rcx
	movq	%r15, %r8
	callq	_hmac_sha256
	testq	%rax, %rax
	js	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	movq	_WPS_PSK_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rsi
	callq	_os_memcpy
	movq	%rbx, %rdx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	callq	_wpa_hexdump_ascii_key
	movl	(%rbx), %edi
	movl	4(%r12), %edx
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_key
	movl	(%rbx), %edi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_key
	xorl	%r13d, %r13d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
	.comm	_WPS_AUTHKEY_LEN,4,2            ## @WPS_AUTHKEY_LEN
	.comm	_WPS_PSK_LEN,4,2                ## @WPS_PSK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPS: Device Password"

L_.str.1:                               ## @.str.1
	.asciz	"WPS: PSK1"

L_.str.2:                               ## @.str.2
	.asciz	"WPS: PSK2"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_derive_psk                 ; -- Begin function wps_derive_psk
	.p2align	2
_wps_derive_psk:                        ; @wps_derive_psk
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, x2
	mov	x21, 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, #-72]
Lloh3:
	adrp	x8, _SHA256_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SHA256_MAC_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w0, [x0, #8]
Lloh8:
	adrp	x25, _WPS_AUTHKEY_LEN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _WPS_AUTHKEY_LEN@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x8, x2, #1
	lsr	x23, x8, #1
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	bl	_hmac_sha256
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x24, _WPS_PSK_LEN@GOTPAGE
Lloh11:
	ldr	x24, [x24, _WPS_PSK_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x1, x22
	bl	_os_memcpy
	ldr	w0, [x19, #8]
	ldr	w1, [x25]
	lsr	x3, x20, #1
	add	x2, x21, x23, lsl #2
	mov	x4, x22
	bl	_hmac_sha256
	tbnz	x0, #63, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	ldr	w2, [x24]
	mov	x1, x22
	bl	_os_memcpy
Lloh12:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_wpa_hexdump_ascii_key
	ldr	w0, [x22]
	ldr	w2, [x19, #4]
	ldr	w3, [x24]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	w0, [x22]
	ldr	w2, [x19]
	ldr	w3, [x24]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
	.comm	_WPS_AUTHKEY_LEN,4,2            ; @WPS_AUTHKEY_LEN
	.comm	_WPS_PSK_LEN,4,2                ; @WPS_PSK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPS: Device Password"

l_.str.1:                               ; @.str.1
	.asciz	"WPS: PSK1"

l_.str.2:                               ; @.str.2
	.asciz	"WPS: PSK2"

.subsections_via_symbols
