	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_update_icmk
_eap_teap_update_icmk:                  ## @eap_teap_update_icmk
	.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	%rsi, %rbx
	movq	%rdi, %r15
	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
	cmpl	$1, (%r15)
	jne	LBB0_1
## %bb.16:
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	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_1:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	32(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_3
## %bb.5:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	*%rcx
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	%rax, %r12
	movq	40(%rbx), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %r14d
	jmp	LBB0_15
LBB0_6:
	xorl	%r12d, %r12d
LBB0_9:
	movq	(%rax), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.11:
	movl	32(%rbx), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	*%rcx
	movq	%rax, %r15
	movq	-48(%rbp), %r9
	jmp	LBB0_12
LBB0_10:
	xorl	%r9d, %r9d
	xorl	%r15d, %r15d
LBB0_12:
	movl	28(%rbx), %edi
	movl	16(%rbx), %eax
	movl	20(%rbx), %esi
	movq	-56(%rbp), %rcx
	movl	24(%rbx), %r10d
	movq	%r12, %rdx
	movq	%r15, %r8
	pushq	%rax
	pushq	%rsi
	pushq	%r10
	pushq	%rdi
	callq	_eap_teap_derive_imck
	addq	$32, %rsp
	movl	%eax, %r13d
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_bin_clear_free
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_bin_clear_free
	testl	%r13d, %r13d
	jne	LBB0_15
## %bb.13:
	incq	8(%rbx)
	testq	%r15, %r15
	je	LBB0_15
## %bb.14:
	movl	$1, (%rbx)
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Deriving ICMK[%d] (S-IMCK and CMK)"

	.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: Could not fetch Phase 2 MSK"

	.no_dead_strip	_eap_teap_update_icmk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_update_icmk
_eap_teap_update_icmk:                  ; @eap_teap_update_icmk
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, 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	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #24]
	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
	add	sp, sp, #80
	b	_eap_teap_derive_cmk_basic_pw_auth
LBB0_2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	w1, [x19, #32]
	cbz	w1, LBB0_8
; %bb.4:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_10
; %bb.5:
	add	x2, sp, #24
	mov	x0, x20
	blr	x9
	cbz	x0, LBB0_17
; %bb.6:
	mov	x21, x0
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
LBB0_7:
	ldr	w1, [x19, #32]
	add	x2, sp, #16
	mov	x0, x20
	blr	x8
	mov	x20, x0
	ldr	x5, [sp, #16]
	b	LBB0_12
LBB0_8:
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
LBB0_9:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_16
LBB0_10:
	mov	x21, #0
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
LBB0_11:
	mov	x5, #0
	mov	x20, #0
LBB0_12:
	ldr	x3, [sp, #24]
	ldp	w7, w0, [x19, #24]
	ldp	w8, w1, [x19, #16]
	stp	w1, w8, [sp]
	mov	x2, x21
	mov	x4, x20
	mov	x6, x0
	bl	_eap_teap_derive_imck
	mov	x22, x0
	ldr	x1, [sp, #24]
	mov	x0, x21
	bl	_bin_clear_free
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	_bin_clear_free
	cbz	w22, LBB0_14
; %bb.13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	mov	w0, #0
	cbz	x20, LBB0_16
; %bb.15:
	mov	w8, #1
	str	w8, [x19]
LBB0_16:
	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
	add	sp, sp, #80
	ret
LBB0_17:
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_9
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Deriving ICMK[%d] (S-IMCK and CMK)"

	.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: Could not fetch Phase 2 MSK"

	.no_dead_strip	_eap_teap_update_icmk
.subsections_via_symbols
