	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_wpa_auth_get_psk
_hostapd_wpa_auth_get_psk:              ## @hostapd_wpa_auth_get_psk
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_ap_get_sta
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	$0, (%rbx)
LBB0_2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	_PMK_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
LBB0_4:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%rbx, %r8
	callq	_hostapd_get_psk
	movq	%rax, %r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.5:
	movq	%rbx, %rax
	movq	16(%rcx), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.6:
	testq	%r15, %r15
	jne	LBB0_17
## %bb.7:
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	$0, (%rax)
LBB0_9:
	movq	(%rbx), %r15
	movq	_PMK_LEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 16(%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	24(%rbx), %edi
	movq	(%r14), %rax
	movl	4(%rax), %edx
	movl	8(%rax), %esi
	movq	(%rbx), %r8
	movq	(%r13), %r9
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	_pbkdf2_sha1
	movq	$0, 16(%rbx)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rax
	cmpq	%r12, (%rbx)
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_17
LBB0_13:
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	(%rax), %r15
	jmp	LBB0_17
LBB0_14:
	xorl	%r15d, %r15d
LBB0_17:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMK_LEN,8,3                    ## @PMK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.comm	_WLAN_AUTH_SAE,8,3              ## @WLAN_AUTH_SAE
	.comm	_WPA_KEY_MGMT_OWE,4,2           ## @WPA_KEY_MGMT_OWE
	.no_dead_strip	_hostapd_wpa_auth_get_psk
.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_psk
_hostapd_wpa_auth_get_psk:              ; @hostapd_wpa_auth_get_psk
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x25, x4
	mov	x19, x3
	mov	x21, x2
	mov	x24, x1
	mov	x20, x0
	bl	_ap_get_sta
	mov	x23, x0
	cbz	x22, LBB0_2
; %bb.1:
	str	wzr, [x22]
LBB0_2:
	cbz	x25, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _PMK_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMK_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x25]
LBB0_4:
	ldr	x0, [x20]
	mov	x1, x24
	mov	x2, x21
	mov	x3, x19
	mov	x4, x22
	bl	_hostapd_get_psk
	mov	x21, x0
	cbz	x23, LBB0_17
; %bb.5:
	ldr	x23, [x23, #16]
	cbz	x23, LBB0_17
; %bb.6:
	cbnz	x21, LBB0_17
; %bb.7:
	cbz	x22, LBB0_9
; %bb.8:
	str	wzr, [x22]
LBB0_9:
	ldr	x21, [x23]
Lloh3:
	adrp	x22, _PMK_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PMK_LEN@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x23, #24]
	ldr	x8, [x20]
	ldp	w2, w1, [x8, #4]
	ldr	x4, [x23]
	ldr	x5, [x22]
	mov	w3, #4096
	bl	_pbkdf2_sha1
	str	xzr, [x23, #16]
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	ldp	x8, x23, [x23]
	cmp	x8, x19
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	x23, LBB0_10
	b	LBB0_17
LBB0_14:
	cbz	x23, LBB0_16
; %bb.15:
	ldr	x21, [x23]
	b	LBB0_17
LBB0_16:
	mov	x21, #0
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PMK_LEN,8,3                    ; @PMK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.comm	_WLAN_AUTH_SAE,8,3              ; @WLAN_AUTH_SAE
	.comm	_WPA_KEY_MGMT_OWE,4,2           ; @WPA_KEY_MGMT_OWE
	.no_dead_strip	_hostapd_wpa_auth_get_psk
.subsections_via_symbols
