	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_sm_set_pmk_from_pmksa      ## -- Begin function wpa_sm_set_pmk_from_pmksa
	.p2align	4, 0x90
_wpa_sm_set_pmk_from_pmksa:             ## @wpa_sm_set_pmk_from_pmksa
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	(%rax), %edx
	movq	8(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_hexdump_key
	movq	16(%rbx), %rax
	movq	8(%rax), %rdx
	movq	%rdx, 8(%rbx)
	movl	(%rbx), %edi
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_os_memcpy                      ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	$0, 8(%rbx)
	movl	(%rbx), %edi
	movq	_PMK_LEN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_os_memset                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: Set PMK based on current PMKSA"

L_.str.1:                               ## @.str.1
	.asciz	"WPA: No current PMKSA - clear PMK"

	.comm	_PMK_LEN_MAX,4,2                ## @PMK_LEN_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_sm_set_pmk_from_pmksa      ; -- Begin function wpa_sm_set_pmk_from_pmksa
	.p2align	2
_wpa_sm_set_pmk_from_pmksa:             ; @wpa_sm_set_pmk_from_pmksa
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w2, [x8]
	ldr	x3, [x8, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	x8, [x19, #16]
	ldr	x2, [x8, #8]
	str	x2, [x19, #8]
	ldr	w0, [x19]
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_os_memcpy
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	str	xzr, [x19, #8]
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _PMK_LEN_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PMK_LEN_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_os_memset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: Set PMK based on current PMKSA"

l_.str.1:                               ; @.str.1
	.asciz	"WPA: No current PMKSA - clear PMK"

	.comm	_PMK_LEN_MAX,4,2                ; @PMK_LEN_MAX
.subsections_via_symbols
