	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sim_req_auth
_sim_req_auth:                          ## @sim_req_auth
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	$0, (%rsi)
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rdi
	incq	%rdi
	movb	$0, (%rax)
	callq	_atoi
	movq	_EAP_SIM_MAX_CHAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	movl	%eax, %r14d
	cmovgl	%ecx, %r14d
	testl	%eax, %eax
	cmovlel	%ecx, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_EAP_SIM_MAX_CHAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_snprintf
	movl	$-1, %ecx
	testl	%eax, %eax
	js	LBB0_30
## %bb.4:
	movl	%eax, %r15d
	cmpq	%r13, %r15
	jge	LBB0_30
## %bb.5:
	addq	%rbx, %r13
	movq	%r13, -176(%rbp)                ## 8-byte Spill
	addq	%rbx, %r15
	movq	%r12, %rdi
	callq	_get_milenage
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.7:
	leaq	-112(%rbp), %rbx
	movq	-176(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	js	LBB0_32
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-184(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	%rbx, %rdx
	movl	%r14d, -164(%rbp)               ## 4-byte Spill
	leaq	-128(%rbp), %r14
	movq	%r14, %rcx
	leaq	-160(%rbp), %r12
	movq	%r12, %r8
	callq	_gsm_milenage
	leaq	1(%r15), %rdi
	movb	$32, (%r15)
	movl	%r13d, %esi
	subl	%edi, %esi
	movq	%r12, %rdx
	movl	$8, %ecx
	callq	_wpa_snprintf_hex
	cltq
	leaq	(%r15,%rax), %r12
	incq	%r12
	leaq	(%r15,%rax), %rdi
	addq	$2, %rdi
	movb	$58, 1(%r15,%rax)
	movl	%r13d, %esi
	subl	%edi, %esi
	movq	%r14, %rdx
	movl	-164(%rbp), %r14d               ## 4-byte Reload
	movl	$4, %ecx
	callq	_wpa_snprintf_hex
	cltq
	leaq	(%rax,%r12), %r15
	incq	%r15
	leaq	(%rax,%r12), %rdi
	addq	$2, %rdi
	movb	$58, 1(%rax,%r12)
	movl	%r13d, %esi
	subl	%edi, %esi
	movq	%rbx, %rdx
	movl	$16, %ecx
	callq	_wpa_snprintf_hex
	cltq
	addq	%rax, %r15
	incq	%r15
	decl	%r14d
	jne	LBB0_8
LBB0_10:
	movb	$0, (%r15)
	jmp	LBB0_29
LBB0_11:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	cmovlel	%eax, %r14d
	jle	LBB0_26
## %bb.12:
	movq	-176(%rbp), %r13                ## 8-byte Reload
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movl	%eax, -164(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_get_gsm_triplet
	testq	%rax, %rax
	je	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movq	%rax, %rbx
	movl	24(%rax), %edi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpq	%r13, %r15
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movb	$32, (%r15)
	incq	%r15
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%r13d, %esi
	subl	%r15d, %esi
	movq	16(%rbx), %rdx
	movq	%r15, %rdi
	movl	$8, %ecx
	callq	_wpa_snprintf_hex
	movq	%r13, %rcx
	movslq	%eax, %r13
	addq	%r15, %r13
	cmpq	%rcx, %r13
	jae	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movb	$58, (%r13)
	incq	%r13
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-176(%rbp), %r15                ## 8-byte Reload
	movl	%r15d, %esi
	subl	%r13d, %esi
	movq	8(%rbx), %rdx
	movq	%r13, %rdi
	movl	$4, %ecx
	callq	_wpa_snprintf_hex
	cltq
	addq	%r13, %rax
	movq	%r15, %r13
	cmpq	%r15, %rax
	jae	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movb	$58, (%rax)
	incq	%rax
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%r13d, %esi
	subl	%eax, %esi
	movq	(%rbx), %rdx
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$16, %ecx
	callq	_wpa_snprintf_hex
	movslq	%eax, %r15
	addq	%rbx, %r15
	movl	-164(%rbp), %eax                ## 4-byte Reload
	incl	%eax
	cmpl	%r14d, %eax
	jne	LBB0_13
	jmp	LBB0_24
LBB0_23:
	movl	-164(%rbp), %r14d               ## 4-byte Reload
LBB0_24:
	testl	%r14d, %r14d
	jne	LBB0_29
	jmp	LBB0_27
LBB0_26:
	movq	-176(%rbp), %r13                ## 8-byte Reload
	testl	%r14d, %r14d
	jne	LBB0_29
LBB0_27:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	callq	_printf
	subq	%r15, %r13
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_snprintf
	testl	%eax, %eax
	js	LBB0_32
## %bb.28:
	cltq
	cmpq	%rax, %r13
	movl	$-1, %ecx
	jle	LBB0_30
LBB0_29:
	xorl	%ecx, %ecx
	jmp	LBB0_30
LBB0_32:
	movl	$-1, %ecx
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.31:
	movl	%ecx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_SIM_MAX_CHAL,4,2           ## @EAP_SIM_MAX_CHAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIM-RESP-AUTH %s"

L_.str.1:                               ## @.str.1
	.asciz	"No GSM triplets found for %s\n"

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

	.no_dead_strip	_sim_req_auth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sim_req_auth
_sim_req_auth:                          ; @sim_req_auth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	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
	mov	x21, x2
	mov	x20, x1
	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, #-72]
	strb	wzr, [x1]
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_2
; %bb.1:
	strb	wzr, [x0], #1
	bl	_atoi
Lloh3:
	adrp	x8, _EAP_SIM_MAX_CHAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_SIM_MAX_CHAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	ccmp	w0, #1, #8, le
	csel	w24, w8, w0, lt
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EAP_SIM_MAX_CHAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAP_SIM_MAX_CHAL@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
LBB0_3:
	str	x19, [sp]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_snprintf
	tbnz	w0, #31, LBB0_11
; %bb.4:
	mov	w8, w0
	cmp	x8, x21
	b.ge	LBB0_11
; %bb.5:
	add	x22, x20, x21
	add	x20, x20, x8
	mov	x0, x19
	bl	_get_milenage
	cbz	x0, LBB0_14
; %bb.6:
	cmp	w24, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x21, x0
	mov	w23, #32
	mov	w25, #58
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #56
	mov	w1, #16
	bl	_random_get_bytes
	tbnz	x0, #63, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldp	w1, w0, [x21]
	add	x2, sp, #56
	add	x3, sp, #40
	add	x4, sp, #8
	bl	_gsm_milenage
	strb	w23, [x20], #1
	sub	w1, w22, w20
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #8
	bl	_wpa_snprintf_hex
	add	x19, x20, w0, sxtw
	strb	w25, [x19], #1
	sub	w1, w22, w19
	add	x2, sp, #40
	mov	x0, x19
	mov	w3, #4
	bl	_wpa_snprintf_hex
	add	x19, x19, w0, sxtw
	strb	w25, [x19], #1
	sub	w1, w22, w19
	add	x2, sp, #56
	mov	x0, x19
	mov	w3, #16
	bl	_wpa_snprintf_hex
	add	x20, x19, w0, sxtw
	subs	w24, w24, #1
	b.ne	LBB0_8
LBB0_10:
	mov	w0, #0
	strb	wzr, [x20]
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.13:
	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
	add	sp, sp, #208
	ret
LBB0_14:
	cmp	w24, #0
	csel	w23, w24, wzr, gt
	cmp	w24, #1
	b.lt	LBB0_26
; %bb.15:
	mov	w24, #0
	mov	w25, #32
	mov	w26, #58
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_gsm_triplet
	cbz	x0, LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x21, x0
	ldr	w0, [x0, #24]
	mov	x1, x19
	bl	_strcmp
	cbnz	x0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	x20, x22
	b.hs	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	strb	w25, [x20], #1
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w1, w22, w20
	ldr	x2, [x21, #16]
	mov	x0, x20
	mov	w3, #8
	bl	_wpa_snprintf_hex
	add	x20, x20, w0, sxtw
	cmp	x20, x22
	b.hs	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_16 Depth=1
	strb	w26, [x20], #1
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w1, w22, w20
	ldr	x2, [x21, #8]
	mov	x0, x20
	mov	w3, #4
	bl	_wpa_snprintf_hex
	add	x20, x20, w0, sxtw
	cmp	x20, x22
	b.hs	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_16 Depth=1
	strb	w26, [x20], #1
LBB0_24:                                ;   in Loop: Header=BB0_16 Depth=1
	sub	w1, w22, w20
	ldr	x2, [x21]
	mov	x0, x20
	mov	w3, #16
	bl	_wpa_snprintf_hex
	add	x20, x20, w0, sxtw
	add	w24, w24, #1
	cmp	w24, w23
	b.ne	LBB0_16
	b	LBB0_26
LBB0_25:
	mov	x23, x24
LBB0_26:
	cbnz	w23, LBB0_29
; %bb.27:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
	sub	x19, x22, x20
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
	mov	x8, x0
	mov	w0, #-1
	tbnz	w8, #31, LBB0_12
; %bb.28:
	sxtw	x8, w8
	cmp	x19, x8
	b.le	LBB0_12
LBB0_29:
	mov	w0, #0
	b	LBB0_12
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_SIM_MAX_CHAL,4,2           ; @EAP_SIM_MAX_CHAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIM-RESP-AUTH %s"

l_.str.1:                               ; @.str.1
	.asciz	"No GSM triplets found for %s\n"

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

	.no_dead_strip	_sim_req_auth
.subsections_via_symbols
