	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_auth_pmksa_add             ## -- Begin function wpa_auth_pmksa_add
	.p2align	4, 0x90
_wpa_auth_pmksa_add:                    ## @wpa_auth_pmksa_add
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movl	%edx, %r13d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_WPA_VERSION_WPA2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.2:
	movq	16(%rbx), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_7
## %bb.3:
	movq	%r8, %r15
	movq	%rsi, %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %edi
	callq	_wpa_key_mgmt_sha384
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_PMK_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PMK_LEN_SUITE_B_192@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	cmpl	%r13d, %eax
	cmovbl	%eax, %r13d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_wpa_hexdump_key
	movq	16(%rbx), %rax
	movl	(%rax), %r10d
	movl	4(%rax), %edi
	movl	28(%rbx), %r8d
	movl	24(%rbx), %r9d
	movl	8(%rbx), %eax
	movl	12(%rbx), %ebx
	subq	$8, %rsp
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	%r15
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%r10
	callq	_pmksa_cache_auth_add
	addq	$48, %rsp
	cmpq	$1, %rax
	sbbl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_VERSION_WPA2,8,3           ## @WPA_VERSION_WPA2
	.comm	_PMK_LEN_SUITE_B_192,4,2        ## @PMK_LEN_SUITE_B_192
	.comm	_PMK_LEN,4,2                    ## @PMK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSN: Cache PMK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_auth_pmksa_add             ; -- Begin function wpa_auth_pmksa_add
	.p2align	2
_wpa_auth_pmksa_add:                    ; @wpa_auth_pmksa_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WPA_VERSION_WPA2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_VERSION_WPA2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
LBB0_3:
	mov	w0, #-1
LBB0_4:
	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
	add	sp, sp, #96
	ret
LBB0_5:
	mov	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x19, x1
	ldr	w0, [x22, #8]
	bl	_wpa_key_mgmt_sha384
Lloh3:
	adrp	x8, _PMK_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMK_LEN@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PMK_LEN_SUITE_B_192@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PMK_LEN_SUITE_B_192@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	cmp	w8, w23
	csel	w23, w8, w23, lo
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x23
	bl	_wpa_hexdump_key
	ldr	x8, [x22, #16]
	ldp	w5, w4, [x22, #24]
	ldp	w6, w0, [x8]
	ldp	w8, w7, [x22, #8]
	str	w8, [sp, #16]
	str	x21, [sp, #8]
	str	w20, [sp]
	mov	x1, x19
	mov	x2, x23
	mov	x3, #0
	bl	_pmksa_cache_auth_add
	cmp	x0, #0
	csetm	w0, eq
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_VERSION_WPA2,8,3           ; @WPA_VERSION_WPA2
	.comm	_PMK_LEN_SUITE_B_192,4,2        ; @PMK_LEN_SUITE_B_192
	.comm	_PMK_LEN,4,2                    ; @PMK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSN: Cache PMK"

.subsections_via_symbols
