	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_milenage_file
_update_milenage_file:                  ## @update_milenage_file
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rdx
	leaq	-560(%rbp), %r14
	movq	%r14, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movq	%rbx, %rcx
	callq	_snprintf
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_21
## %bb.4:
	movq	%rax, %r12
	movq	%rbx, -1080(%rbp)               ## 8-byte Spill
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%r15, -1088(%rbp)               ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_fputs
	movq	%rbx, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movq	%r15, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_16
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movb	$0, -573(%rbp)
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_strchr
	cmpb	$35, -1072(%rbp)
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	subq	%rbx, %r13
	cmpq	$19, %r13
	jg	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_milenage_db@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	24(%r14), %r14
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r14, %r14
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	(%r14), %rcx
	cmpb	$0, (%rcx,%r13)
	jne	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	leaq	L_.str.5(%rip), %rdx
	callq	_snprintf
	cltq
	leaq	(%rax,%rbp), %r13
	addq	$-1072, %r13                    ## imm = 0xFBD0
	movl	$500, %esi                      ## imm = 0x1F4
	subl	%eax, %esi
	movl	20(%r14), %edx
	movq	%r13, %rdi
	movl	$16, %ecx
	callq	_wpa_snprintf_hex
	cltq
	leaq	(%rax,%r13), %r15
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	movb	$32, (%rax,%r13)
	leaq	-572(%rbp), %rax
	movl	%eax, %esi
	subl	%edi, %esi
	movl	16(%r14), %edx
	movl	$16, %ecx
	callq	_wpa_snprintf_hex
	cltq
	leaq	(%rax,%r15), %r13
	incq	%r13
	leaq	2(%rax,%r15), %rdi
	movb	$32, 1(%rax,%r15)
	leaq	-572(%rbp), %rax
	movl	%eax, %esi
	subl	%edi, %esi
	movl	12(%r14), %edx
	movl	$2, %ecx
	callq	_wpa_snprintf_hex
	cltq
	leaq	(%rax,%r13), %r15
	incq	%r15
	leaq	2(%rax,%r13), %rdi
	movb	$32, 1(%rax,%r13)
	leaq	-572(%rbp), %rax
	movl	%eax, %esi
	subl	%edi, %esi
	movl	8(%r14), %edx
	movl	$6, %ecx
	callq	_wpa_snprintf_hex
	cltq
	movb	$10, 1(%rax,%r15)
	movq	-1088(%rbp), %r15               ## 8-byte Reload
	jmp	LBB0_15
LBB0_16:
	movq	%r12, %rdi
	callq	_fclose
	movq	%r15, %rdi
	callq	_fclose
	leaq	L_.str.7(%rip), %rdx
	leaq	-560(%rbp), %r14
	movq	%r14, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movq	-1080(%rbp), %rbx               ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rename
	testq	%rax, %rax
	js	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rdx
	leaq	-560(%rbp), %r14
	movq	%r14, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	movq	%rbx, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_rename
	testq	%rax, %rax
	jns	LBB0_19
LBB0_18:
	leaq	L_.str.8(%rip), %rdi
	callq	_perror
	jmp	LBB0_19
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_21:
	leaq	L_.str.4(%rip), %rdi
	leaq	-560(%rbp), %rsi
	callq	_printf
	movq	%r15, %rdi
	callq	_fclose
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.20:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"Could not open Milenage data file '%s'\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s.new"

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

L_.str.4:                               ## @.str.4
	.asciz	"Could not write Milenage data file '%s'\n"

	.comm	_milenage_db,8,3                ## @milenage_db
L_.str.5:                               ## @.str.5
	.asciz	"%s "

L_.str.7:                               ## @.str.7
	.asciz	"%s.bak"

L_.str.8:                               ## @.str.8
	.asciz	"rename"

	.no_dead_strip	_update_milenage_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_milenage_file
_update_milenage_file:                  ; @update_milenage_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1024
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_14
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x2, l_.str.2@PAGE
Lloh6:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #508
	mov	w1, #500
	mov	x3, x19
	bl	_snprintf
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #508
	bl	_fopen
	cbz	x0, LBB0_16
; %bb.2:
	mov	x21, x0
	add	x24, sp, #8
	mov	w25, #500
	add	x0, sp, #8
	mov	w1, #500
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.3:
	add	x8, sp, #8
	add	x26, x8, #500
	mov	w27, #32
Lloh9:
	adrp	x28, _milenage_db@GOTPAGE
Lloh10:
	ldr	x28, [x28, _milenage_db@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	x1, x21
	bl	_fputs
	add	x0, sp, #8
	mov	w1, #500
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	strb	wzr, [sp, #507]
	add	x0, sp, #8
	mov	w1, #32
	bl	_strchr
	ldrb	w8, [sp, #8]
	cmp	w8, #35
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x23, x0, x24
	ldr	x22, [x28]
	cmp	x23, #19
	ccmp	x22, #0, #4, le
	b.ne	LBB0_8
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x22]
	add	x0, sp, #8
	mov	x2, x23
	bl	_strncmp
	cbnz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x3, [x22]
	ldrb	w8, [x3, x23]
	cbnz	w8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	w1, #500
Lloh11:
	adrp	x2, l_.str.5@PAGE
Lloh12:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_snprintf
	add	x23, x24, w0, sxtw
	sub	w1, w25, w0
	ldr	w2, [x22, #20]
	mov	x0, x23
	mov	w3, #16
	bl	_wpa_snprintf_hex
	add	x23, x23, w0, sxtw
	strb	w27, [x23], #1
	sub	w1, w26, w23
	ldr	w2, [x22, #16]
	mov	x0, x23
	mov	w3, #16
	bl	_wpa_snprintf_hex
	add	x23, x23, w0, sxtw
	strb	w27, [x23], #1
	sub	w1, w26, w23
	ldr	w2, [x22, #12]
	mov	x0, x23
	mov	w3, #2
	bl	_wpa_snprintf_hex
	add	x23, x23, w0, sxtw
	strb	w27, [x23], #1
	sub	w1, w26, w23
	ldr	w2, [x22, #8]
	mov	x0, x23
	mov	w3, #6
	bl	_wpa_snprintf_hex
	mov	w8, #10
	strb	w8, [x23, w0, sxtw]
	b	LBB0_4
LBB0_11:
	mov	x0, x21
	bl	_fclose
	mov	x0, x20
	bl	_fclose
Lloh13:
	adrp	x2, l_.str.7@PAGE
Lloh14:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x0, sp, #508
	mov	w1, #500
	mov	x3, x19
	bl	_snprintf
	add	x1, sp, #508
	mov	x0, x19
	bl	_rename
	tbnz	x0, #63, LBB0_13
; %bb.12:
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #508
	mov	w1, #500
	mov	x3, x19
	bl	_snprintf
	add	x0, sp, #508
	mov	x1, x19
	bl	_rename
	tbz	x0, #63, LBB0_17
LBB0_13:
Lloh17:
	adrp	x0, l_.str.8@PAGE
Lloh18:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_perror
	b	LBB0_17
LBB0_14:
	ldur	x8, [x29, #-96]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.15:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	add	sp, sp, #1024
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_printf
LBB0_16:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #508
	bl	_printf
	mov	x0, x20
	bl	_fclose
LBB0_17:
	ldur	x8, [x29, #-96]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	add	sp, sp, #1024
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"Could not open Milenage data file '%s'\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s.new"

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

l_.str.4:                               ; @.str.4
	.asciz	"Could not write Milenage data file '%s'\n"

	.comm	_milenage_db,8,3                ; @milenage_db
l_.str.5:                               ; @.str.5
	.asciz	"%s "

l_.str.7:                               ; @.str.7
	.asciz	"%s.bak"

l_.str.8:                               ; @.str.8
	.asciz	"rename"

	.no_dead_strip	_update_milenage_file
.subsections_via_symbols
