	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_get_cmk
_eap_teap_get_cmk:                      ## @eap_teap_get_cmk
	.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	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rsi), %rdx
	incq	%rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	32(%r15), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movl	24(%r15), %esi
	testl	%esi, %esi
	je	LBB0_2
## %bb.4:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	callq	*%rcx
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	32(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.9:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.13:
	movl	24(%r15), %esi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %r12
	movq	32(%r15), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_11
	jmp	LBB0_16
LBB0_21:
	movl	20(%r15), %edi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_teap_derive_cmk_basic_pw_auth ## TAILCALL
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	xorl	%r12d, %r12d
LBB0_16:
	xorl	%r9d, %r9d
	xorl	%r13d, %r13d
LBB0_17:
	movl	16(%r15), %esi
	movl	20(%r15), %edi
	movq	-56(%rbp), %rcx
	movq	%r12, %rdx
	movq	%r13, %r8
	pushq	%rbx
	pushq	%rsi
	pushq	%r14
	pushq	%rdi
	callq	_eap_teap_derive_imck
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bin_clear_free
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_bin_clear_free
	testl	%ebx, %ebx
	jne	LBB0_20
## %bb.18:
	incq	8(%r15)
	xorl	%ebx, %ebx
	testq	%r13, %r13
	je	LBB0_20
## %bb.19:
	movl	$1, (%r15)
	jmp	LBB0_20
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_16
## %bb.12:
	movl	24(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	*%rcx
	movq	%rax, %r13
	movq	-48(%rbp), %r9
	jmp	LBB0_17
LBB0_14:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"EAP-TEAP: Determining CMK[%d] for Compound MAC calculation"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Phase 2 method not available"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: Phase 2 key material not available"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TEAP: Could not fetch Phase 2 MSK"

	.no_dead_strip	_eap_teap_get_cmk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_get_cmk
_eap_teap_get_cmk:                      ; @eap_teap_get_cmk
	.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
	mov	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x1, #8]
	add	x8, x8, #1
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	w1, [x19, #24]
	cbz	w1, LBB0_9
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.3:
	mov	x0, x22
	blr	x8
	cbz	w0, LBB0_15
; %bb.4:
	ldr	x8, [x19, #32]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_10
; %bb.5:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_16
; %bb.6:
	ldr	w1, [x19, #24]
	add	x2, sp, #24
	mov	x0, x22
	blr	x9
	cbz	x0, LBB0_19
; %bb.7:
	mov	x23, x0
	ldr	x8, [x19, #32]
	ldr	x9, [x8, #8]
	cbnz	x9, LBB0_17
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19, #20]
	mov	x1, x20
	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
	b	_eap_teap_derive_cmk_basic_pw_auth
LBB0_9:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_10:
	mov	x23, #0
LBB0_11:
	mov	x5, #0
	mov	x22, #0
LBB0_12:
	ldp	w1, w0, [x19, #16]
	ldr	x3, [sp, #24]
	str	x21, [sp, #8]
	str	w1, [sp]
	mov	x2, x23
	mov	x4, x22
	mov	x6, x0
	mov	x7, x20
	bl	_eap_teap_derive_imck
	mov	x20, x0
	ldr	x1, [sp, #24]
	mov	x0, x23
	bl	_bin_clear_free
	ldr	x1, [sp, #16]
	mov	x0, x22
	bl	_bin_clear_free
	cbnz	w20, LBB0_21
; %bb.13:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	mov	w20, #0
	cbz	x22, LBB0_21
; %bb.14:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_21
LBB0_15:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_16:
	mov	x23, #0
LBB0_17:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.18:
	ldr	w1, [x19, #24]
	add	x2, sp, #16
	mov	x0, x22
	blr	x8
	mov	x22, x0
	ldr	x5, [sp, #16]
	b	LBB0_12
LBB0_19:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_20:
	bl	_wpa_printf
	mov	w20, #-1
LBB0_21:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Determining CMK[%d] for Compound MAC calculation"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Phase 2 method not available"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: Phase 2 key material not available"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TEAP: Could not fetch Phase 2 MSK"

	.no_dead_strip	_eap_teap_get_cmk
.subsections_via_symbols
