	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sae_parse_commit_scalar
_sae_parse_commit_scalar:               ## @sae_parse_commit_scalar
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movslq	(%rax), %rsi
	movq	(%r14), %rdi
	subq	%rdi, %rdx
	sarq	$2, %rdx
	cmpq	%rsi, %rdx
	jge	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %r12
	jmp	LBB0_13
LBB0_2:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_crypto_bignum_init_set
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_SAE_ACCEPTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.5:
	movq	%r15, %rsi
	callq	_crypto_bignum_cmp
	testq	%rax, %rax
	je	LBB0_6
LBB0_8:
	movq	%r15, %rdi
	callq	_crypto_bignum_is_zero
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	%r15, %rdi
	callq	_crypto_bignum_is_one
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	movq	8(%rax), %rsi
	movq	%r15, %rdi
	callq	_crypto_bignum_cmp
	testq	%rax, %rax
	js	LBB0_12
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	callq	_wpa_printf
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
LBB0_13:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_12:
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_crypto_bignum_deinit
	movq	%r15, 16(%rbx)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump
	movq	8(%rbx), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	addq	%rax, (%r14)
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAE: Not enough data for scalar"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
	.comm	_SAE_ACCEPTED,8,3               ## @SAE_ACCEPTED
L_.str.1:                               ## @.str.1
	.asciz	"SAE: Do not accept re-use of previous peer-commit-scalar"

L_.str.2:                               ## @.str.2
	.asciz	"SAE: Invalid peer scalar"

L_.str.3:                               ## @.str.3
	.asciz	"SAE: Peer commit-scalar"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
	.no_dead_strip	_sae_parse_commit_scalar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sae_parse_commit_scalar
_sae_parse_commit_scalar:               ; @sae_parse_commit_scalar
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldrsw	x1, [x8]
	ldr	x0, [x19]
	sub	x8, x2, x0
	cmp	x1, x8, asr #2
	b.le	LBB0_2
; %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
	b	LBB0_11
LBB0_2:
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_crypto_bignum_init_set
	cbz	x0, LBB0_11
; %bb.3:
	mov	x21, x0
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _SAE_ACCEPTED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SAE_ACCEPTED@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x21
	bl	_crypto_bignum_cmp
	cbz	x0, LBB0_13
LBB0_6:
	mov	x0, x21
	bl	_crypto_bignum_is_zero
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_crypto_bignum_is_one
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x1, [x8, #8]
	mov	x0, x21
	bl	_crypto_bignum_cmp
	tbnz	x0, #63, LBB0_14
LBB0_9:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	bl	_wpa_printf
	mov	x0, x21
	mov	w1, #0
	bl	_crypto_bignum_deinit
LBB0_11:
Lloh13:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh15:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_14:
	ldr	x0, [x20, #16]
	mov	w1, #0
	bl	_crypto_bignum_deinit
	str	x21, [x20, #16]
Lloh20:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x2, [x19]
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump
	ldr	x8, [x20, #8]
	ldrsw	x8, [x8]
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #2
	str	x8, [x19]
Lloh25:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAE: Not enough data for scalar"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
	.comm	_SAE_ACCEPTED,8,3               ; @SAE_ACCEPTED
l_.str.1:                               ; @.str.1
	.asciz	"SAE: Do not accept re-use of previous peer-commit-scalar"

l_.str.2:                               ; @.str.2
	.asciz	"SAE: Invalid peer scalar"

l_.str.3:                               ; @.str.3
	.asciz	"SAE: Peer commit-scalar"

	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
	.no_dead_strip	_sae_parse_commit_scalar
.subsections_via_symbols
