	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_kdf                        ## -- Begin function wps_kdf
	.p2align	4, 0x90
_wps_kdf:                               ## @wps_kdf
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -160(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -184(%rbp)                ## 8-byte Spill
	movq	%rsp, -176(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -152(%rbp)                ## 8-byte Spill
	leal	(,%r15,8), %esi
	leaq	-80(%rbp), %rdi
	callq	_WPA_PUT_BE32
	leaq	-64(%rbp), %rax
	movq	%rax, -112(%rbp)
	movq	$16, -144(%rbp)
	movq	%r12, -104(%rbp)
	movq	%r13, -136(%rbp)
	movq	%rbx, -96(%rbp)
	movq	%rbx, %rdi
	callq	_os_strlen
	movq	%rax, -128(%rbp)
	leaq	-80(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	$16, -120(%rbp)
	movslq	(%r14), %rcx
	movq	%r15, -168(%rbp)                ## 8-byte Spill
	leaq	(%r15,%rcx), %rax
	decq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r13
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r13d
LBB0_3:
	testl	%r13d, %r13d
	movq	-152(%rbp), %r12                ## 8-byte Reload
	jle	LBB0_9
## %bb.4:
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	callq	_os_memcpy
	cmpl	%r13d, %r15d
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_WPA_PUT_BE32
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movl	$4, %edx
	leaq	-112(%rbp), %rcx
	leaq	-144(%rbp), %r8
	movq	%r12, %r9
	callq	_hmac_sha256_vector
	cmpl	%r13d, %r15d
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	(%r14), %rdx
	movq	-160(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	callq	_os_memcpy
	movslq	(%r14), %rax
	leaq	(%r12,%rax,4), %r12
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	movq	-152(%rbp), %r12                ## 8-byte Reload
	subq	%rax, -168(%rbp)                ## 8-byte Folded Spill
	cmpl	%r13d, %r15d
	jne	LBB0_5
LBB0_9:
	movq	-176(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SHA256_MAC_LEN,4,2             ## @SHA256_MAC_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wps_kdf                        ; -- Begin function wps_kdf
	.p2align	2
_wps_kdf:                               ; @wps_kdf
	.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, #112
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-192]                ; 8-byte Folded Spill
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	x27, _SHA256_MAC_LEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SHA256_MAC_LEN@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	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
	lsl	w1, w19, #3
	sub	x28, x29, #120
	sub	x0, x29, #120
	bl	_WPA_PUT_BE32
	sub	x8, x29, #104
	mov	w26, #16
	stp	x8, x25, [x29, #-152]
	stp	x26, x24, [x29, #-184]
	stur	x23, [x29, #-136]
	mov	x0, x23
	bl	_os_strlen
	stur	x28, [x29, #-128]
	stp	x0, x26, [x29, #-168]
	ldrsw	x8, [x27]
	add	x9, x19, x8
	sub	x9, x9, #1
	udiv	x24, x9, x8
	cmp	w24, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w25, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_os_memcpy
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	cmp	w25, w24
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w25, #1
	sub	x0, x29, #104
	mov	x1, x23
	bl	_WPA_PUT_BE32
	ldr	w1, [x27]
	sub	x3, x29, #152
	sub	x4, x29, #184
	mov	x0, x21
	mov	w2, #4
	mov	x5, x22
	bl	_hmac_sha256_vector
	cmp	w23, w24
	b.ge	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x2, [x27]
	mov	x0, x20
	mov	x1, x22
	bl	_os_memcpy
	ldrsw	x8, [x27]
	add	x20, x20, x8, lsl #2
	sub	x19, x19, x8
	b	LBB0_3
LBB0_6:
	ldur	x8, [x29, #-192]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	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_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SHA256_MAC_LEN,4,2             ; @SHA256_MAC_LEN
.subsections_via_symbols
