	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_build_reauth
_eap_aka_build_reauth:                  ## @eap_aka_build_reauth
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	12(%rbx), %edi
	movq	_EAP_SIM_NONCE_S_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_2:
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%rbx), %edx
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump_key
	movl	8(%rbx), %eax
	movq	_EAP_TYPE_AKA_PRIME@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movl	36(%rbx), %edi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %esi
	movl	8(%r14), %ecx
	movl	12(%r14), %edx
	movl	24(%rbx), %r9d
	movl	20(%rbx), %eax
	movl	%eax, (%rsp)
	callq	_eap_aka_prime_derive_keys_reauth
	jmp	LBB0_5
LBB0_4:
	movl	28(%rbx), %edi
	movl	32(%rbx), %esi
	movl	24(%rbx), %ecx
	movl	4(%rbx), %edx
	movl	20(%rbx), %r8d
	callq	_eap_sim_derive_keys
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movl	28(%rbx), %r8d
	movl	24(%rbx), %r9d
	movl	20(%rbx), %eax
	movl	%eax, (%rsp)
	callq	_eap_sim_derive_keys_reauth
LBB0_5:
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	movq	_EAP_AKA_SUBTYPE_REAUTHENTICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %esi
	callq	_eap_sim_msg_init
	movq	%rax, %r15
	movl	12(%rbx), %r8d
	movl	16(%rbx), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_eap_aka_build_encr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_eap_sim_msg_free
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_eap_aka_add_checkcode
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_RESULT_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_add
LBB0_9:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_SIM_AT_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_eap_sim_msg_add_mac
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_finish
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movq	%rax, %rdi
	callq	_wpabuf_head_u8
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_wpabuf_len
	addq	%rax, %rbx
	movq	_EAP_SIM_MAC_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	subq	%rdx, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_os_memcpy
LBB0_10:
	movq	%r14, %rax
	addq	$8, %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-AKA: Generating Re-authentication"

	.comm	_EAP_SIM_NONCE_S_LEN,4,2        ## @EAP_SIM_NONCE_S_LEN
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"EAP-AKA: NONCE_S"

	.comm	_EAP_TYPE_AKA_PRIME,4,2         ## @EAP_TYPE_AKA_PRIME
	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_EAP_AKA_SUBTYPE_REAUTHENTICATION,4,2 ## @EAP_AKA_SUBTYPE_REAUTHENTICATION
L_.str.2:                               ## @.str.2
	.asciz	"   AT_RESULT_IND"

	.comm	_EAP_SIM_AT_RESULT_IND,4,2      ## @EAP_SIM_AT_RESULT_IND
L_.str.3:                               ## @.str.3
	.asciz	"   AT_MAC"

	.comm	_EAP_SIM_AT_MAC,4,2             ## @EAP_SIM_AT_MAC
	.comm	_EAP_SIM_MAC_LEN,8,3            ## @EAP_SIM_MAC_LEN
	.no_dead_strip	_eap_aka_build_reauth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_aka_build_reauth
_eap_aka_build_reauth:                  ; @eap_aka_build_reauth
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x19, #12]
Lloh4:
	adrp	x23, _EAP_SIM_NONCE_S_LEN@GOTPAGE
Lloh5:
	ldr	x23, [x23, _EAP_SIM_NONCE_S_LEN@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_random_get_bytes
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_10
LBB0_2:
Lloh6:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w2, [x19, #12]
	ldr	w3, [x23]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _EAP_TYPE_AKA_PRIME@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EAP_TYPE_AKA_PRIME@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #36]
	ldp	w3, w2, [x20, #8]
	ldp	w4, w1, [x19, #12]
	ldp	w6, w5, [x19, #20]
	bl	_eap_aka_prime_derive_keys_reauth
	b	LBB0_5
LBB0_4:
	ldp	w0, w1, [x19, #28]
	ldr	w2, [x19, #4]
	ldp	w4, w3, [x19, #20]
	bl	_eap_sim_derive_keys
	ldp	w2, w1, [x20, #8]
	ldp	w3, w0, [x19, #12]
	ldp	w5, w4, [x19, #24]
	ldr	w6, [x19, #20]
	bl	_eap_sim_derive_keys_reauth
LBB0_5:
Lloh14:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh17:
	adrp	x8, _EAP_AKA_SUBTYPE_REAUTHENTICATION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAP_AKA_SUBTYPE_REAUTHENTICATION@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x1, x21
	bl	_eap_sim_msg_init
	mov	x21, x0
	ldp	w4, w3, [x19, #12]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_eap_aka_build_encr
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_eap_sim_msg_free
	mov	x20, #0
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_eap_aka_add_checkcode
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x22]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh22:
	adrp	x8, _EAP_SIM_AT_RESULT_IND@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAP_SIM_AT_RESULT_IND@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_eap_sim_msg_add
LBB0_9:
	ldr	w0, [x22]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh27:
	adrp	x8, _EAP_SIM_AT_MAC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAP_SIM_AT_MAC@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_eap_sim_msg_add_mac
	ldp	w2, w1, [x19, #4]
	mov	x0, x21
	mov	x3, #0
	mov	w4, #0
	bl	_eap_sim_msg_finish
	mov	x20, x0
	ldr	w19, [x19]
	bl	_wpabuf_head_u8
	mov	x21, x0
	mov	x0, x20
	bl	_wpabuf_len
Lloh30:
	adrp	x8, _EAP_SIM_MAC_LEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EAP_SIM_MAC_LEN@GOTPAGEOFF]
Lloh32:
	ldr	x2, [x8]
	add	x8, x0, x21
	sub	x1, x8, x2
	mov	x0, x19
	bl	_os_memcpy
LBB0_10:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: Generating Re-authentication"

	.comm	_EAP_SIM_NONCE_S_LEN,4,2        ; @EAP_SIM_NONCE_S_LEN
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"EAP-AKA: NONCE_S"

	.comm	_EAP_TYPE_AKA_PRIME,4,2         ; @EAP_TYPE_AKA_PRIME
	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_EAP_AKA_SUBTYPE_REAUTHENTICATION,4,2 ; @EAP_AKA_SUBTYPE_REAUTHENTICATION
l_.str.2:                               ; @.str.2
	.asciz	"   AT_RESULT_IND"

	.comm	_EAP_SIM_AT_RESULT_IND,4,2      ; @EAP_SIM_AT_RESULT_IND
l_.str.3:                               ; @.str.3
	.asciz	"   AT_MAC"

	.comm	_EAP_SIM_AT_MAC,4,2             ; @EAP_SIM_AT_MAC
	.comm	_EAP_SIM_MAC_LEN,8,3            ; @EAP_SIM_MAC_LEN
	.no_dead_strip	_eap_aka_build_reauth
.subsections_via_symbols
