	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ap_sta_wpa_get_keyid           ## -- Begin function ap_sta_wpa_get_keyid
	.p2align	4, 0x90
_ap_sta_wpa_get_keyid:                  ## @ap_sta_wpa_get_keyid
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movl	(%rsi), %edi
	leaq	-36(%rbp), %rsi
	callq	_wpa_auth_get_pmk
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	-36(%rbp), %edx
	movq	_PMK_LEN@GOTPCREL(%rip), %r12
	cmpl	(%r12), %edx
	jne	LBB0_10
## %bb.2:
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.3:
	movq	%rax, %r15
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	callq	_os_memcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edx
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_os_memcmp
	testq	%rax, %rax
	jne	LBB0_5
LBB0_7:
	movq	(%rbx), %rax
	xorl	%r14d, %r14d
	cmpb	$0, (%rax)
	cmovneq	%rax, %r14
	jmp	LBB0_11
LBB0_10:
	xorl	%r14d, %r14d
LBB0_11:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMK_LEN,4,2                    ## @PMK_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ap_sta_wpa_get_keyid           ; -- Begin function ap_sta_wpa_get_keyid
	.p2align	2
_ap_sta_wpa_get_keyid:                  ; @ap_sta_wpa_get_keyid
	.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
	ldr	x21, [x0]
	ldr	w0, [x1]
	add	x1, sp, #12
	bl	_wpa_auth_get_pmk
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w2, [sp, #12]
Lloh0:
	adrp	x20, _PMK_LEN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PMK_LEN@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w2, w8
	b.ne	LBB0_7
; %bb.2:
	ldr	x21, [x21]
	cbz	x21, LBB0_7
; %bb.3:
	mov	x19, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_os_memcmp
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x21, [x21, #16]
	cbz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20]
	b	LBB0_4
LBB0_7:
	mov	x0, #0
	b	LBB0_9
LBB0_8:
	ldr	x8, [x21]
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x0, xzr, x8, eq
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PMK_LEN,4,2                    ; @PMK_LEN
.subsections_via_symbols
