	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_response_reauth
_eap_aka_response_reauth:               ## @eap_aka_response_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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %edx
	movq	_EAP_AKA_SUBTYPE_REAUTHENTICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	callq	_eap_sim_msg_init
	movq	%rax, %r13
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_AT_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_SIM_AT_ENCR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_eap_sim_msg_add_encr_start
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_AT_COUNTER_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_add
	movq	%r15, %rax
	jmp	LBB0_3
LBB0_2:
	leaq	4(%r15), %rax
LBB0_3:
	movl	(%rax), %ebx
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_AT_COUNTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_add
	movl	24(%r15), %esi
	movq	_EAP_SIM_AT_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_eap_sim_msg_add_encr_end
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r13, %rdi
	callq	_eap_sim_msg_free
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_eap_aka_add_checkcode
	cmpq	$0, 16(%r15)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_AT_RESULT_IND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_add
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_SIM_AT_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_eap_sim_msg_add_mac
	movl	8(%r15), %edx
	movl	12(%r15), %esi
	movq	_EAP_SIM_NONCE_S_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eap_sim_msg_finish             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Generating EAP-AKA Reauthentication (id=%d)"

	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_EAP_AKA_SUBTYPE_REAUTHENTICATION,4,2 ## @EAP_AKA_SUBTYPE_REAUTHENTICATION
L_.str.1:                               ## @.str.1
	.asciz	"   AT_IV"

L_.str.2:                               ## @.str.2
	.asciz	"   AT_ENCR_DATA"

	.comm	_EAP_SIM_AT_IV,4,2              ## @EAP_SIM_AT_IV
	.comm	_EAP_SIM_AT_ENCR_DATA,4,2       ## @EAP_SIM_AT_ENCR_DATA
L_.str.3:                               ## @.str.3
	.asciz	"   *AT_COUNTER_TOO_SMALL"

	.comm	_EAP_SIM_AT_COUNTER_TOO_SMALL,4,2 ## @EAP_SIM_AT_COUNTER_TOO_SMALL
L_.str.4:                               ## @.str.4
	.asciz	"   *AT_COUNTER %d"

	.comm	_EAP_SIM_AT_COUNTER,4,2         ## @EAP_SIM_AT_COUNTER
	.comm	_EAP_SIM_AT_PADDING,4,2         ## @EAP_SIM_AT_PADDING
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
L_.str.5:                               ## @.str.5
	.asciz	"EAP-AKA: Failed to encrypt AT_ENCR_DATA"

L_.str.6:                               ## @.str.6
	.asciz	"   AT_RESULT_IND"

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

	.comm	_EAP_SIM_AT_MAC,4,2             ## @EAP_SIM_AT_MAC
	.comm	_EAP_SIM_NONCE_S_LEN,4,2        ## @EAP_SIM_NONCE_S_LEN
	.no_dead_strip	_eap_aka_response_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_response_reauth
_eap_aka_response_reauth:               ; @eap_aka_response_reauth
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh4:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x20, #12]
Lloh7:
	adrp	x8, _EAP_AKA_SUBTYPE_REAUTHENTICATION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAP_AKA_SUBTYPE_REAUTHENTICATION@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x1, x21
	bl	_eap_sim_msg_init
	mov	x21, x0
	ldr	w0, [x23]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x23]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh14:
	adrp	x8, _EAP_SIM_AT_IV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAP_SIM_AT_IV@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _EAP_SIM_AT_ENCR_DATA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAP_SIM_AT_ENCR_DATA@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_eap_sim_msg_add_encr_start
	cbz	w22, LBB0_2
; %bb.1:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh22:
	adrp	x8, _EAP_SIM_AT_COUNTER_TOO_SMALL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EAP_SIM_AT_COUNTER_TOO_SMALL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_eap_sim_msg_add
	mov	x8, x20
	b	LBB0_3
LBB0_2:
	add	x8, x20, #4
LBB0_3:
	ldr	w22, [x8]
	ldr	w0, [x23]
	str	x22, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
Lloh27:
	adrp	x8, _EAP_SIM_AT_COUNTER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAP_SIM_AT_COUNTER@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	mov	x3, #0
	mov	w4, #0
	bl	_eap_sim_msg_add
	ldr	w1, [x20, #24]
Lloh30:
	adrp	x8, _EAP_SIM_AT_PADDING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EAP_SIM_AT_PADDING@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_eap_sim_msg_add_encr_end
	cbz	x0, LBB0_5
; %bb.4:
Lloh33:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_printf
	mov	x0, x21
	bl	_eap_sim_msg_free
	mov	x0, #0
	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_5:
	mov	x0, x20
	mov	x1, x21
	bl	_eap_aka_add_checkcode
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x23]
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_printf
Lloh40:
	adrp	x8, _EAP_SIM_AT_RESULT_IND@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EAP_SIM_AT_RESULT_IND@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_eap_sim_msg_add
LBB0_7:
	ldr	w0, [x23]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
Lloh45:
	adrp	x8, _EAP_SIM_AT_MAC@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EAP_SIM_AT_MAC@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_eap_sim_msg_add_mac
	ldp	w2, w1, [x20, #8]
Lloh48:
	adrp	x8, _EAP_SIM_NONCE_S_LEN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EAP_SIM_NONCE_S_LEN@GOTPAGEOFF]
Lloh50:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x3, 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_sim_msg_finish
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Generating EAP-AKA Reauthentication (id=%d)"

	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_EAP_AKA_SUBTYPE_REAUTHENTICATION,4,2 ; @EAP_AKA_SUBTYPE_REAUTHENTICATION
l_.str.1:                               ; @.str.1
	.asciz	"   AT_IV"

l_.str.2:                               ; @.str.2
	.asciz	"   AT_ENCR_DATA"

	.comm	_EAP_SIM_AT_IV,4,2              ; @EAP_SIM_AT_IV
	.comm	_EAP_SIM_AT_ENCR_DATA,4,2       ; @EAP_SIM_AT_ENCR_DATA
l_.str.3:                               ; @.str.3
	.asciz	"   *AT_COUNTER_TOO_SMALL"

	.comm	_EAP_SIM_AT_COUNTER_TOO_SMALL,4,2 ; @EAP_SIM_AT_COUNTER_TOO_SMALL
l_.str.4:                               ; @.str.4
	.asciz	"   *AT_COUNTER %d"

	.comm	_EAP_SIM_AT_COUNTER,4,2         ; @EAP_SIM_AT_COUNTER
	.comm	_EAP_SIM_AT_PADDING,4,2         ; @EAP_SIM_AT_PADDING
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
l_.str.5:                               ; @.str.5
	.asciz	"EAP-AKA: Failed to encrypt AT_ENCR_DATA"

l_.str.6:                               ; @.str.6
	.asciz	"   AT_RESULT_IND"

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

	.comm	_EAP_SIM_AT_MAC,4,2             ; @EAP_SIM_AT_MAC
	.comm	_EAP_SIM_NONCE_S_LEN,4,2        ; @EAP_SIM_NONCE_S_LEN
	.no_dead_strip	_eap_aka_response_reauth
.subsections_via_symbols
