	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_wpa_auth_get_msk
_hostapd_wpa_auth_get_msk:              ## @hostapd_wpa_auth_get_msk
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_ieee802_1x_get_key
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	-32(%rbp), %rdx
	movq	(%r15), %rcx
	cmpq	%rcx, %rdx
	jbe	LBB0_4
## %bb.3:
	movq	%rcx, -32(%rbp)
	movq	%rcx, %rdx
LBB0_4:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_os_memcpy
	movq	-32(%rbp), %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_7
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	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	"AUTH_GET_MSK: Cannot find STA"

L_.str.1:                               ## @.str.1
	.asciz	"AUTH_GET_MSK: Key is null, eapol_sm: %p"

	.no_dead_strip	_hostapd_wpa_auth_get_msk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_wpa_auth_get_msk
_hostapd_wpa_auth_get_msk:              ; @hostapd_wpa_auth_get_msk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x20, x2
	bl	_ap_get_sta
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0]
	add	x1, sp, #8
	bl	_ieee802_1x_get_key
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	ldr	x2, [sp, #8]
	ldr	x8, [x19]
	cmp	x2, x8
	b.ls	LBB0_4
; %bb.3:
	str	x8, [sp, #8]
	mov	x2, x8
LBB0_4:
	mov	x0, x20
	bl	_os_memcpy
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_8
LBB0_5:
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
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_wpa_printf
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AUTH_GET_MSK: Cannot find STA"

l_.str.1:                               ; @.str.1
	.asciz	"AUTH_GET_MSK: Key is null, eapol_sm: %p"

	.no_dead_strip	_hostapd_wpa_auth_get_msk
.subsections_via_symbols
