	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_fullauth
_eap_aka_fullauth:                      ## @eap_aka_fullauth
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	28(%rdi), %edi
	movq	(%rsi), %rsi
	movl	92(%r15), %edx
	movl	80(%r15), %ecx
	movl	40(%r15), %r8d
	movl	36(%r15), %r9d
	movl	88(%r15), %eax
	leaq	84(%r15), %rbx
	subq	$8, %rsp
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	callq	_eap_sim_db_get_aka_auth
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	_EAP_SIM_DB_PENDING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_1
## %bb.18:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_METHOD_PENDING_WAIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r15), %rsi
	movq	(%rsi), %rax
	movq	_EAP_AKA_PERMANENT_PREFIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_EAP_AKA_PRIME_PERMANENT_PREFIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	movl	24(%r14), %edi
	addq	$8, %rsi
	movl	$4, %edx
	callq	_os_strlcpy
LBB0_4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r15)
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_NOTIFICATION@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_6:
	movq	(%r14), %rax
	movq	_METHOD_PENDING_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	_METHOD_PENDING_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_8:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	leaq	L_.str.3(%rip), %r12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	cmpb	$0, -1(%rax,%rbx)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	decq	%rbx
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_wpa_printf
	testq	%rbx, %rbx
	jne	LBB0_10
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rcx
	callq	_wpa_hexdump_ascii
	movq	8(%r15), %rax
	movq	_EAP_TYPE_AKA_PRIME@GOTPCREL(%rip), %rsi
	movq	16(%r14), %rdi
	movl	40(%r15), %edx
	movl	36(%r15), %ecx
	cmpq	(%rsi), %rax
	jne	LBB0_15
## %bb.14:
	movl	28(%r15), %r8d
	movl	24(%r15), %r9d
	movl	44(%r15), %r10d
	movl	16(%r15), %eax
	movl	20(%r15), %r11d
	subq	$8, %rsp
	movq	%rbx, %rsi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_eap_aka_prime_derive_keys
	addq	$32, %rsp
	jmp	LBB0_16
LBB0_15:
	movl	32(%r15), %r8d
	movq	%rbx, %rsi
	callq	_eap_aka_derive_mk
	movl	32(%r15), %edi
	movl	28(%r15), %esi
	movl	24(%r15), %edx
	movl	16(%r15), %r8d
	movl	20(%r15), %ecx
	callq	_eap_sim_derive_keys
LBB0_16:
	movq	_CHALLENGE@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_aka_state                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_SIM_DB_PENDING,4,2         ## @EAP_SIM_DB_PENDING
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-AKA: AKA authentication data not yet available - pending request"

	.comm	_METHOD_PENDING_WAIT,8,3        ## @METHOD_PENDING_WAIT
	.comm	_EAP_AKA_PERMANENT_PREFIX,8,3   ## @EAP_AKA_PERMANENT_PREFIX
	.comm	_EAP_AKA_PRIME_PERMANENT_PREFIX,8,3 ## @EAP_AKA_PRIME_PERMANENT_PREFIX
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-AKA: Failed to get AKA authentication data for the peer"

	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,4,2 ## @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
	.comm	_NOTIFICATION,4,2               ## @NOTIFICATION
L_.str.2:                               ## @.str.2
	.asciz	"EAP-AKA: AKA authentication data available - abort pending wait"

	.comm	_METHOD_PENDING_NONE,8,3        ## @METHOD_PENDING_NONE
L_.str.3:                               ## @.str.3
	.asciz	"EAP-AKA: Workaround - drop last null character from identity"

L_.str.4:                               ## @.str.4
	.asciz	"EAP-AKA: Identity for MK derivation"

	.comm	_EAP_TYPE_AKA_PRIME,8,3         ## @EAP_TYPE_AKA_PRIME
	.comm	_CHALLENGE,4,2                  ## @CHALLENGE
	.no_dead_strip	_eap_aka_fullauth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_aka_fullauth
_eap_aka_fullauth:                      ; @eap_aka_fullauth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #28]
	ldr	x1, [x1]
	ldr	w3, [x19, #80]
	ldp	w5, w4, [x19, #36]
	add	x7, x19, #84
	ldp	w6, w2, [x19, #88]
	str	x20, [sp]
	bl	_eap_sim_db_get_aka_auth
Lloh0:
	adrp	x8, _EAP_SIM_DB_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAP_SIM_DB_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh8:
	adrp	x8, _METHOD_PENDING_WAIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _METHOD_PENDING_WAIT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x20]
	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
	add	sp, sp, #80
	ret
LBB0_2:
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x8]
Lloh11:
	adrp	x10, _EAP_AKA_PERMANENT_PREFIX@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EAP_AKA_PERMANENT_PREFIX@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _EAP_AKA_PRIME_PERMANENT_PREFIX@GOTPAGE
Lloh15:
	ldr	x11, [x11, _EAP_AKA_PRIME_PERMANENT_PREFIX@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20, #24]
	add	x1, x8, #8
	mov	w2, #4
	bl	_os_strlcpy
LBB0_4:
	stp	xzr, xzr, [x19, #56]
	cbz	w21, LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh22:
	adrp	x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh25:
	adrp	x8, _NOTIFICATION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NOTIFICATION@GOTPAGEOFF]
	b	LBB0_16
LBB0_6:
	ldr	x8, [x20]
Lloh27:
	adrp	x9, _METHOD_PENDING_WAIT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _METHOD_PENDING_WAIT@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
Lloh30:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh31:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x23]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh34:
	adrp	x8, _METHOD_PENDING_NONE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _METHOD_PENDING_NONE@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_8:
	ldr	x21, [x20, #8]
	cbz	x21, LBB0_12
; %bb.9:
Lloh37:
	adrp	x22, l_.str.3@PAGE
Lloh38:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, x21
	ldurb	w8, [x8, #-1]
	cbnz	w8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	x21, x21, #1
	ldr	w0, [x23]
	mov	x1, x22
	bl	_wpa_printf
	cbnz	x21, LBB0_10
LBB0_12:
	ldr	w0, [x23]
	ldr	x2, [x20, #16]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x3, x21
	bl	_wpa_hexdump_ascii
Lloh41:
	adrp	x8, _EAP_TYPE_AKA_PRIME@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EAP_TYPE_AKA_PRIME@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh43:
	ldr	x8, [x8]
	ldr	x0, [x20, #16]
	ldp	w3, w2, [x19, #36]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	w5, w4, [x19, #24]
	ldr	w6, [x19, #44]
	ldp	w8, w7, [x19, #16]
	str	w8, [sp]
	mov	x1, x21
	bl	_eap_aka_prime_derive_keys
	b	LBB0_15
LBB0_14:
	ldr	w4, [x19, #32]
	mov	x1, x21
	bl	_eap_aka_derive_mk
	ldp	w1, w0, [x19, #28]
	ldp	w3, w2, [x19, #20]
	ldr	w4, [x19, #16]
	bl	_eap_sim_derive_keys
LBB0_15:
Lloh44:
	adrp	x8, _CHALLENGE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CHALLENGE@GOTPAGEOFF]
LBB0_16:
	ldr	w1, [x8]
	mov	x0, x19
	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
	add	sp, sp, #80
	b	_eap_aka_state
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_SIM_DB_PENDING,4,2         ; @EAP_SIM_DB_PENDING
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: AKA authentication data not yet available - pending request"

	.comm	_METHOD_PENDING_WAIT,8,3        ; @METHOD_PENDING_WAIT
	.comm	_EAP_AKA_PERMANENT_PREFIX,8,3   ; @EAP_AKA_PERMANENT_PREFIX
	.comm	_EAP_AKA_PRIME_PERMANENT_PREFIX,8,3 ; @EAP_AKA_PRIME_PERMANENT_PREFIX
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-AKA: Failed to get AKA authentication data for the peer"

	.comm	_EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH,4,2 ; @EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH
	.comm	_NOTIFICATION,4,2               ; @NOTIFICATION
l_.str.2:                               ; @.str.2
	.asciz	"EAP-AKA: AKA authentication data available - abort pending wait"

	.comm	_METHOD_PENDING_NONE,8,3        ; @METHOD_PENDING_NONE
l_.str.3:                               ; @.str.3
	.asciz	"EAP-AKA: Workaround - drop last null character from identity"

l_.str.4:                               ; @.str.4
	.asciz	"EAP-AKA: Identity for MK derivation"

	.comm	_EAP_TYPE_AKA_PRIME,8,3         ; @EAP_TYPE_AKA_PRIME
	.comm	_CHALLENGE,4,2                  ; @CHALLENGE
	.no_dead_strip	_eap_aka_fullauth
.subsections_via_symbols
