	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_aka_build_identity
_eap_aka_build_identity:                ## @eap_aka_build_identity
	.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, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	_EAP_CODE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r13), %edx
	movq	_EAP_AKA_SUBTYPE_IDENTITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %esi
	callq	_eap_sim_msg_init
	movq	%rax, %r15
	movl	(%r13), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r13)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$3, %eax
	jl	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_eap_sim_msg_free
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdx
	movq	_EAP_SIM_AT_ANY_ID_REQ@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdx
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpq	$0, 8(%r12)
	jle	LBB0_8
## %bb.6:
	movq	(%rax), %rax
	movq	_EAP_AKA_REAUTH_ID_PREFIX@GOTPCREL(%rip), %rcx
	movq	_EAP_SIM_AT_FULLAUTH_ID_REQ@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %rsi
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	_EAP_AKA_PRIME_REAUTH_ID_PREFIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_8:
	movq	_EAP_SIM_AT_PERMANENT_ID_REQ@GOTPCREL(%rip), %rbx
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movl	(%rdx), %edi
	callq	_wpa_printf
	movl	(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_add
	movl	8(%r13), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_eap_sim_msg_finish
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_eap_aka_add_id_msg
	testq	%rax, %rax
	js	LBB0_11
## %bb.10:
	movl	%r14d, 4(%r13)
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_wpabuf_free
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %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 Identity"

	.comm	_EAP_CODE_REQUEST,4,2           ## @EAP_CODE_REQUEST
	.comm	_EAP_AKA_SUBTYPE_IDENTITY,4,2   ## @EAP_AKA_SUBTYPE_IDENTITY
L_.str.1:                               ## @.str.1
	.asciz	"   AT_ANY_ID_REQ"

	.comm	_EAP_SIM_AT_ANY_ID_REQ,4,2      ## @EAP_SIM_AT_ANY_ID_REQ
	.comm	_EAP_AKA_REAUTH_ID_PREFIX,8,3   ## @EAP_AKA_REAUTH_ID_PREFIX
	.comm	_EAP_AKA_PRIME_REAUTH_ID_PREFIX,8,3 ## @EAP_AKA_PRIME_REAUTH_ID_PREFIX
L_.str.2:                               ## @.str.2
	.asciz	"   AT_FULLAUTH_ID_REQ"

	.comm	_EAP_SIM_AT_FULLAUTH_ID_REQ,4,2 ## @EAP_SIM_AT_FULLAUTH_ID_REQ
L_.str.3:                               ## @.str.3
	.asciz	"   AT_PERMANENT_ID_REQ"

	.comm	_EAP_SIM_AT_PERMANENT_ID_REQ,4,2 ## @EAP_SIM_AT_PERMANENT_ID_REQ
	.no_dead_strip	_eap_aka_build_identity
.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_identity
_eap_aka_build_identity:                ; @eap_aka_build_identity
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh4:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w2, [x20, #8]
Lloh7:
	adrp	x8, _EAP_AKA_SUBTYPE_IDENTITY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAP_AKA_SUBTYPE_IDENTITY@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_eap_sim_msg_init
	mov	x21, x0
	ldr	w8, [x20]
	add	w9, w8, #1
	str	w9, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w8, #3
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_eap_sim_msg_free
	b	LBB0_12
LBB0_3:
Lloh10:
	adrp	x22, _EAP_SIM_AT_ANY_ID_REQ@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EAP_SIM_AT_ANY_ID_REQ@GOTPAGEOFF]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	x8, [x22]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x9, [x22, #8]
	cmp	x9, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _EAP_AKA_REAUTH_ID_PREFIX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EAP_AKA_REAUTH_ID_PREFIX@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _EAP_AKA_PRIME_REAUTH_ID_PREFIX@GOTPAGE
Lloh18:
	ldr	x10, [x10, _EAP_AKA_PRIME_REAUTH_ID_PREFIX@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.7:
Lloh20:
	adrp	x22, _EAP_SIM_AT_FULLAUTH_ID_REQ@GOTPAGE
Lloh21:
	ldr	x22, [x22, _EAP_SIM_AT_FULLAUTH_ID_REQ@GOTPAGEOFF]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x22, _EAP_SIM_AT_PERMANENT_ID_REQ@GOTPAGE
Lloh25:
	ldr	x22, [x22, _EAP_SIM_AT_PERMANENT_ID_REQ@GOTPAGEOFF]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	ldr	w0, [x23]
	bl	_wpa_printf
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_eap_sim_msg_add
	ldr	w1, [x20, #8]
	mov	x0, x21
	mov	x2, #0
	mov	x3, #0
	mov	w4, #0
	bl	_eap_sim_msg_finish
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_eap_aka_add_id_msg
	tbnz	x0, #63, LBB0_11
; %bb.10:
	str	w19, [x20, #4]
	b	LBB0_13
LBB0_11:
	mov	x0, x21
	bl	_wpabuf_free
LBB0_12:
	mov	x21, #0
LBB0_13:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-AKA: Generating Identity"

	.comm	_EAP_CODE_REQUEST,4,2           ; @EAP_CODE_REQUEST
	.comm	_EAP_AKA_SUBTYPE_IDENTITY,4,2   ; @EAP_AKA_SUBTYPE_IDENTITY
l_.str.1:                               ; @.str.1
	.asciz	"   AT_ANY_ID_REQ"

	.comm	_EAP_SIM_AT_ANY_ID_REQ,4,2      ; @EAP_SIM_AT_ANY_ID_REQ
	.comm	_EAP_AKA_REAUTH_ID_PREFIX,8,3   ; @EAP_AKA_REAUTH_ID_PREFIX
	.comm	_EAP_AKA_PRIME_REAUTH_ID_PREFIX,8,3 ; @EAP_AKA_PRIME_REAUTH_ID_PREFIX
l_.str.2:                               ; @.str.2
	.asciz	"   AT_FULLAUTH_ID_REQ"

	.comm	_EAP_SIM_AT_FULLAUTH_ID_REQ,4,2 ; @EAP_SIM_AT_FULLAUTH_ID_REQ
l_.str.3:                               ; @.str.3
	.asciz	"   AT_PERMANENT_ID_REQ"

	.comm	_EAP_SIM_AT_PERMANENT_ID_REQ,4,2 ; @EAP_SIM_AT_PERMANENT_ID_REQ
	.no_dead_strip	_eap_aka_build_identity
.subsections_via_symbols
