	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sae_parse_password_identifier
_sae_parse_password_identifier:         ## @sae_parse_password_identifier
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rdx, %rcx
	subq	%rsi, %rcx
	shrq	$2, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_hexdump
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_sae_is_password_id_elem
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.7:
	movl	4(%r15), %ebx
	decl	%ebx
	movq	%rdx, %rdi
	callq	_os_strlen
	cmpl	%eax, %ebx
	jne	LBB0_15
## %bb.8:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	leaq	12(%r15), %rsi
	movl	4(%r15), %edx
	decl	%edx
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_9
LBB0_15:
	movl	(%r12), %edi
	movq	(%r14), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	callq	_wpa_printf
	movq	_WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_4:
	xorl	%edi, %edi
	callq	_os_free
	movq	(%r14), %rax
	movq	$0, (%rax)
	jmp	LBB0_13
LBB0_9:
	movq	(%r14), %rax
	movq	(%rax), %rdi
LBB0_10:
	callq	_os_free
	movl	4(%r15), %edi
	callq	_os_malloc
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	leaq	12(%r15), %rsi
	movl	4(%r15), %edx
	decl	%edx
	movq	%rax, %rdi
	callq	_os_memcpy
	movq	(%r14), %rax
	movq	(%rax), %rax
	movslq	4(%r15), %rcx
	movb	$0, -1(%rcx,%rax)
	movl	(%r12), %edi
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movl	4(%r15), %ecx
	decl	%ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump_ascii
LBB0_13:
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SAE: Possible elements at the end of the frame"

L_.str.1:                               ## @.str.1
	.asciz	"SAE: No Password Identifier included, but expected one (%s)"

	.comm	_WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER,4,2 ## @WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER
	.comm	_WLAN_STATUS_SUCCESS,4,2        ## @WLAN_STATUS_SUCCESS
L_.str.2:                               ## @.str.2
	.asciz	"SAE: The included Password Identifier does not match the expected one (%s)"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ## @WLAN_STATUS_UNSPECIFIED_FAILURE
L_.str.3:                               ## @.str.3
	.asciz	"SAE: Received Password Identifier"

	.no_dead_strip	_sae_parse_password_identifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sae_parse_password_identifier
_sae_parse_password_identifier:         ; @sae_parse_password_identifier
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
	sub	x8, x2, x1
	lsr	x3, x8, #2
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	mov	x0, x20
	mov	x1, x21
	bl	_sae_is_password_id_elem
	ldr	x8, [x19]
	ldr	x2, [x8]
	cbz	w0, LBB0_5
; %bb.1:
	cbz	x2, LBB0_8
; %bb.2:
	ldr	w8, [x20, #4]
	sub	w21, w8, #1
	mov	x0, x2
	bl	_os_strlen
	cmp	w21, w0
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	x0, [x8]
	add	x1, x20, #12
	ldr	w8, [x20, #4]
	sub	w2, w8, #1
	bl	_os_memcmp
	cbz	x0, LBB0_10
LBB0_4:
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	x2, [x8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	cbz	x2, LBB0_9
; %bb.6:
	ldr	w0, [x22]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_wpa_printf
Lloh8:
	adrp	x8, _WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
	mov	x0, #0
	b	LBB0_11
LBB0_9:
	mov	x0, #0
	bl	_os_free
	ldr	x8, [x19]
	str	xzr, [x8]
	b	LBB0_13
LBB0_10:
	ldr	x8, [x19]
	ldr	x0, [x8]
LBB0_11:
	bl	_os_free
	ldr	w0, [x20, #4]
	bl	_os_malloc
	ldr	x8, [x19]
	str	x0, [x8]
	cbz	x0, LBB0_14
; %bb.12:
	add	x1, x20, #12
	ldr	w8, [x20, #4]
	sub	w2, w8, #1
	bl	_os_memcpy
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldrsw	x9, [x20, #4]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	w0, [x22]
	ldr	x8, [x19]
	ldr	x2, [x8]
	ldr	w8, [x20, #4]
	sub	w3, w8, #1
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_hexdump_ascii
LBB0_13:
Lloh12:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh14:
	adrp	x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WLAN_STATUS_UNSPECIFIED_FAILURE@GOTPAGEOFF]
LBB0_15:
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SAE: Possible elements at the end of the frame"

l_.str.1:                               ; @.str.1
	.asciz	"SAE: No Password Identifier included, but expected one (%s)"

	.comm	_WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER,4,2 ; @WLAN_STATUS_UNKNOWN_PASSWORD_IDENTIFIER
	.comm	_WLAN_STATUS_SUCCESS,4,2        ; @WLAN_STATUS_SUCCESS
l_.str.2:                               ; @.str.2
	.asciz	"SAE: The included Password Identifier does not match the expected one (%s)"

	.comm	_WLAN_STATUS_UNSPECIFIED_FAILURE,4,2 ; @WLAN_STATUS_UNSPECIFIED_FAILURE
l_.str.3:                               ; @.str.3
	.asciz	"SAE: Received Password Identifier"

	.no_dead_strip	_sae_parse_password_identifier
.subsections_via_symbols
