	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sim_db_resynchronize       ## -- Begin function eap_sim_db_resynchronize
	.p2align	4, 0x90
_eap_sim_db_resynchronize:              ## @eap_sim_db_resynchronize
	.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	$136, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %r14
	movb	(%rbx), %al
	movq	_EAP_AKA_PERMANENT_PREFIX@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	je	LBB0_3
## %bb.2:
	movq	_EAP_AKA_PRIME_PERMANENT_PREFIX@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_5
LBB0_3:
	cmpb	$0, 1(%rbx)
	je	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_os_strlen
	cmpl	$21, %eax
	jl	LBB0_7
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_printf
LBB0_6:
	movl	$-1, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	incq	%rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_printf
	cmpq	$0, (%r14)
	js	LBB0_13
## %bb.8:
	movq	%rbx, %rdi
	callq	_os_strlen
	movl	%eax, -168(%rbp)                ## 4-byte Spill
	leaq	L_.str.2(%rip), %rdx
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	callq	_os_snprintf
	movl	%eax, %r13d
	movl	$100, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_6
## %bb.9:
	movslq	-168(%rbp), %rdx                ## 4-byte Folded Reload
	movslq	%r13d, %rax
	leaq	(%rax,%rdx), %r13
	cmpq	$99, %r13
	ja	LBB0_6
## %bb.10:
	leaq	(%rax,%rbp), %rdi
	addq	$-160, %rdi
	movq	%rbx, %rsi
	callq	_os_memcpy
	leaq	-160(,%r13), %rdi
	addq	%rbp, %rdi
	movq	%r13, %rax
	movl	$100, %r13d
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	subl	%eax, %r13d
	leaq	L_.str.3(%rip), %rdx
	movl	%r13d, %esi
	callq	_os_snprintf
	movl	%r13d, %edi
	movl	%eax, %r13d
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_6
## %bb.11:
	addl	-168(%rbp), %r13d               ## 4-byte Folded Reload
	movslq	%r13d, %r13
	leaq	-160(,%r13), %rdi
	addq	%rbp, %rdi
	movl	$100, %esi
	subl	%r13d, %esi
	movq	_EAP_AKA_AUTS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdx
	callq	_wpa_snprintf_hex
	movq	%rax, %r12
	addl	%r13d, %r12d
	movslq	%r12d, %rax
	leaq	(%rax,%rbp), %rdi
	addq	$-160, %rdi
	movl	$100, %r13d
	subl	%eax, %r13d
	leaq	L_.str.3(%rip), %rdx
	movl	%r13d, %esi
	callq	_os_snprintf
	movl	%r13d, %edi
	movl	%eax, %r13d
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_6
## %bb.12:
	addl	%r13d, %r12d
	movslq	%r12d, %r12
	leaq	(%r12,%rbp), %rdi
	addq	$-160, %rdi
	movl	$100, %esi
	subl	%r12d, %esi
	movq	_EAP_AKA_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdx
	callq	_wpa_snprintf_hex
	addl	%eax, %r12d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_printf
	leaq	-160(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_eap_sim_db_send
	testq	%rax, %rax
	js	LBB0_6
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_AKA_PERMANENT_PREFIX,1,0   ## @EAP_AKA_PERMANENT_PREFIX
	.comm	_EAP_AKA_PRIME_PERMANENT_PREFIX,1,0 ## @EAP_AKA_PRIME_PERMANENT_PREFIX
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM DB: unexpected username '%s'"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-SIM DB: Get AKA auth for IMSI '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"AKA-AUTS "

L_.str.3:                               ## @.str.3
	.asciz	" "

	.comm	_EAP_AKA_AUTS_LEN,4,2           ## @EAP_AKA_AUTS_LEN
	.comm	_EAP_AKA_RAND_LEN,4,2           ## @EAP_AKA_RAND_LEN
L_.str.4:                               ## @.str.4
	.asciz	"EAP-SIM DB: reporting AKA AUTS for IMSI '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_sim_db_resynchronize       ; -- Begin function eap_sim_db_resynchronize
	.p2align	2
_eap_sim_db_resynchronize:              ; @eap_sim_db_resynchronize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cbz	x1, LBB0_4
; %bb.1:
	ldrb	w8, [x23]
Lloh3:
	adrp	x9, _EAP_AKA_PERMANENT_PREFIX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EAP_AKA_PERMANENT_PREFIX@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh5:
	adrp	x10, _EAP_AKA_PRIME_PERMANENT_PREFIX@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EAP_AKA_PRIME_PERMANENT_PREFIX@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	mov	x21, x23
	ldrb	w8, [x21, #1]!
	cbz	w8, LBB0_4
; %bb.3:
	mov	x20, x3
	mov	x22, x2
	mov	x19, x0
	mov	x0, x23
	bl	_os_strlen
	cmp	w0, #21
	b.lt	LBB0_8
LBB0_4:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_wpa_printf
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.7:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_8:
Lloh15:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_wpa_printf
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_14
; %bb.9:
	mov	x0, x21
	bl	_os_strlen
	mov	x23, x0
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #4
	mov	w1, #100
	bl	_os_snprintf
	mov	x24, x0
	mov	w0, #100
	mov	x1, x24
	bl	_os_snprintf_error
	cbnz	x0, LBB0_5
; %bb.10:
	sxtw	x2, w23
	sxtw	x8, w24
	add	x28, x8, x2
	cmp	x28, #99
	b.hi	LBB0_5
; %bb.11:
	add	x26, sp, #4
	add	x0, x26, x8
	mov	x1, x21
	bl	_os_memcpy
	add	x0, x26, x28
	mov	w27, #100
	sub	w24, w27, w28
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x24
	bl	_os_snprintf
	mov	x23, x0
	mov	x0, x24
	mov	x1, x23
	bl	_os_snprintf_error
	cbnz	x0, LBB0_5
; %bb.12:
	add	w23, w23, w28
	sub	w1, w27, w23
	add	x0, x26, w23, sxtw
Lloh23:
	adrp	x8, _EAP_AKA_AUTS_LEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EAP_AKA_AUTS_LEN@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	mov	x2, x22
	bl	_wpa_snprintf_hex
	add	w8, w23, w0
	sub	w23, w27, w8
	sxtw	x24, w8
	add	x0, x26, x24
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x23
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_5
; %bb.13:
	add	x22, x24, w22, sxtw
	add	x8, sp, #4
	add	x0, x8, x22
	mov	w8, #100
	sub	w1, w8, w22
Lloh28:
	adrp	x8, _EAP_AKA_RAND_LEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAP_AKA_RAND_LEN@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x2, x20
	bl	_wpa_snprintf_hex
	add	w20, w22, w0
	ldr	w0, [x25]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_wpa_printf
	add	x1, sp, #4
	mov	x0, x19
	mov	x2, x20
	bl	_eap_sim_db_send
	tbnz	x0, #63, LBB0_5
LBB0_14:
	mov	w0, #0
	b	LBB0_6
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_AKA_PERMANENT_PREFIX,1,0   ; @EAP_AKA_PERMANENT_PREFIX
	.comm	_EAP_AKA_PRIME_PERMANENT_PREFIX,1,0 ; @EAP_AKA_PRIME_PERMANENT_PREFIX
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM DB: unexpected username '%s'"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-SIM DB: Get AKA auth for IMSI '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"AKA-AUTS "

l_.str.3:                               ; @.str.3
	.asciz	" "

	.comm	_EAP_AKA_AUTS_LEN,4,2           ; @EAP_AKA_AUTS_LEN
	.comm	_EAP_AKA_RAND_LEN,4,2           ; @EAP_AKA_RAND_LEN
l_.str.4:                               ; @.str.4
	.asciz	"EAP-SIM DB: reporting AKA AUTS for IMSI '%s'"

.subsections_via_symbols
