	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_gsm_triplets
_read_gsm_triplets:                     ## @read_gsm_triplets
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_24
## %bb.2:
	movq	%rax, %r12
	leaq	-256(%rbp), %rdi
	movl	$200, %esi
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_25
## %bb.3:
	movq	%rbx, -280(%rbp)                ## 8-byte Spill
	leaq	-255(%rbp), %rbx
	leaq	-256(%rbp), %r14
	xorl	%r15d, %r15d
	movq	%r12, -264(%rbp)                ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	$200, %esi
	movq	%r12, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_25
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	incl	%r15d
	movb	$0, -57(%rbp)
	movb	-256(%rbp), %al
	cmpb	$35, %al
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rcx
	movl	%eax, %edx
	testb	%dl, %dl
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$10, %dl
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movzbl	(%rcx), %edx
	incq	%rcx
	testb	%dl, %dl
	jne	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	%al, %al
	jne	LBB0_11
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, -1(%rcx)
	movb	-256(%rbp), %al
	testb	%al, %al
	je	LBB0_4
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$24, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_35
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	$0, -272(%rbp)
	movq	%r14, %rbx
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-272(%rbp), %rdx
	callq	_str_token
	testq	%rax, %rax
	je	LBB0_29
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_os_strlen
	cmpl	$3, %eax
	ja	LBB0_29
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	20(%r13), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_os_strlcpy
	movq	%rbx, %r14
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-272(%rbp), %rdx
	callq	_str_token
	testq	%rax, %rax
	je	LBB0_26
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_os_strlen
	cmpl	$16, %eax
	jne	LBB0_26
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r13), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_hexstr2bin
	testq	%rax, %rax
	jne	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-272(%rbp), %rdx
	callq	_str_token
	testq	%rax, %rax
	je	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_os_strlen
	cmpl	$8, %eax
	jne	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%r13), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_hexstr2bin
	testq	%rax, %rax
	jne	LBB0_27
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-272(%rbp), %rdx
	callq	_str_token
	testq	%rax, %rax
	je	LBB0_28
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_os_strlen
	cmpl	$32, %eax
	jne	LBB0_28
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r13), %esi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_hexstr2bin
	testq	%rax, %rax
	jne	LBB0_28
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_gsm_db@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rax, (%r13)
	movq	%r13, (%rcx)
	movq	-264(%rbp), %r12                ## 8-byte Reload
	leaq	-255(%rbp), %rbx
	jmp	LBB0_4
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_33
LBB0_25:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_32
LBB0_26:
	leaq	L_.str.4(%rip), %rdi
	movq	-264(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_30
LBB0_27:
	leaq	L_.str.5(%rip), %rdi
	movq	-264(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_30
LBB0_28:
	leaq	L_.str.6(%rip), %rdi
	movq	-264(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_30
LBB0_29:
	leaq	L_.str.3(%rip), %rdi
LBB0_30:
	movq	-280(%rbp), %rsi                ## 8-byte Reload
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_31:
	movl	$-1, %r14d
LBB0_32:
	movq	%r13, %rdi
	callq	_os_free
	movq	%r12, %rdi
	callq	_fclose
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.34:
	movl	%r14d, %eax
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	xorl	%r13d, %r13d
	jmp	LBB0_31
LBB0_36:
	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 GSM triplet data file '%s'\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"%s:%d - Invalid IMSI\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s:%d - Invalid Kc\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s:%d - Invalid SRES\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s:%d - Invalid RAND\n"

	.comm	_gsm_db,8,3                     ## @gsm_db
	.no_dead_strip	_read_gsm_triplets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_gsm_triplets
_read_gsm_triplets:                     ; @read_gsm_triplets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #256]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	cbz	x0, LBB0_25
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_24
; %bb.2:
	mov	x19, x0
	add	x21, sp, #24
	add	x0, sp, #24
	mov	w1, #200
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_26
; %bb.3:
	mov	w25, #0
	add	x26, x21, #1
Lloh5:
	adrp	x23, l_.str.2@PAGE
Lloh6:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh7:
	adrp	x21, l_.str.3@PAGE
Lloh8:
	add	x21, x21, l_.str.3@PAGEOFF
Lloh9:
	adrp	x27, l_.str.4@PAGE
Lloh10:
	add	x27, x27, l_.str.4@PAGEOFF
Lloh11:
	adrp	x28, _gsm_db@GOTPAGE
Lloh12:
	ldr	x28, [x28, _gsm_db@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	mov	w1, #200
	mov	x2, x19
	bl	_fgets
	cbz	x0, LBB0_26
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	w25, w25, #1
	strb	wzr, [sp, #223]
	ldrb	w8, [sp, #24]
	cmp	w8, #35
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x26
	mov	x10, x8
	cbz	w10, LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, #10
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w10, [x9], #1
	cbnz	w10, LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w8, LBB0_11
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	sturb	wzr, [x9, #-1]
	ldrb	w8, [sp, #24]
	cbz	w8, LBB0_4
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #24
	bl	_os_zalloc
	mov	x22, x0
	cbz	x0, LBB0_31
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	str	xzr, [sp, #16]
	add	x0, sp, #24
	add	x2, sp, #16
	mov	x1, x23
	bl	_str_token
	cbz	x0, LBB0_30
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	bl	_os_strlen
	cmp	w0, #3
	b.hi	LBB0_30
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x22, #20]
	mov	x1, x24
	mov	w2, #4
	bl	_os_strlcpy
	add	x0, sp, #24
	add	x2, sp, #16
	mov	x1, x23
	bl	_str_token
	cbz	x0, LBB0_27
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	bl	_os_strlen
	cmp	w0, #16
	b.ne	LBB0_27
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x22, #16]
	mov	x0, x24
	mov	w2, #8
	bl	_hexstr2bin
	cbnz	x0, LBB0_27
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	add	x2, sp, #16
	mov	x1, x23
	bl	_str_token
	cbz	x0, LBB0_28
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	bl	_os_strlen
	cmp	w0, #8
	b.ne	LBB0_28
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x22, #12]
	mov	x0, x24
	mov	w2, #4
	bl	_hexstr2bin
	cbnz	x0, LBB0_28
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #24
	add	x2, sp, #16
	mov	x1, x23
	bl	_str_token
	cbz	x0, LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	bl	_os_strlen
	cmp	w0, #32
	b.ne	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x22, #8]
	mov	x0, x24
	mov	w2, #16
	bl	_hexstr2bin
	cbnz	x0, LBB0_29
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	str	x8, [x22]
	str	x22, [x28]
	b	LBB0_4
LBB0_24:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_printf
LBB0_25:
	mov	w20, #-1
	b	LBB0_33
LBB0_26:
	mov	x22, #0
	mov	w20, #0
	b	LBB0_32
LBB0_27:
	mov	x21, x27
	b	LBB0_30
LBB0_28:
Lloh15:
	adrp	x21, l_.str.5@PAGE
Lloh16:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_30
LBB0_29:
Lloh17:
	adrp	x21, l_.str.6@PAGE
Lloh18:
	add	x21, x21, l_.str.6@PAGEOFF
LBB0_30:
	str	x25, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_printf
LBB0_31:
	mov	w20, #-1
LBB0_32:
	mov	x0, x22
	bl	_os_free
	mov	x0, x19
	bl	_fclose
LBB0_33:
	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_35
; %bb.34:
	mov	x0, x20
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"%s:%d - Invalid IMSI\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s:%d - Invalid Kc\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s:%d - Invalid SRES\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s:%d - Invalid RAND\n"

	.comm	_gsm_db,8,3                     ; @gsm_db
	.no_dead_strip	_read_gsm_triplets
.subsections_via_symbols
