	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sim_ext_sim_result
_eap_sim_ext_sim_result:                ## @eap_sim_ext_sim_result
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	(%rbx), %r14
	movq	$0, (%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$9, %edx
	callq	_os_strncmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_2:
	xorl	%ebx, %ebx
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	9(%r14), %r13
	movl	$1, %r14d
	movq	_EAP_SIM_KC_LEN@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	24(%r12), %rax
	movl	-4(%rax,%r14,4), %edx
	movq	_GSM_RAND_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rsi
	callq	_wpa_hexdump
	movq	16(%r12), %rax
	movl	-4(%rax,%r14,4), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_hexstr2bin
	testq	%rax, %rax
	js	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movq	16(%r12), %rax
	movl	-4(%rax,%r14,4), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_hexdump_key
	movslq	(%rbx), %rax
	cmpb	$58, (%r13,%rax,2)
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(,%rax,2), %rbx
	addq	%r13, %rbx
	incq	%rbx
	movq	8(%r12), %rax
	movl	-4(%rax,%r14,4), %esi
	movq	_EAP_SIM_SRES_LEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_hexstr2bin
	testq	%rax, %rax
	js	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movq	8(%r12), %rax
	movl	-4(%rax,%r14,4), %edx
	movl	(%r13), %ecx
	leaq	L_.str.5(%rip), %rsi
	callq	_wpa_hexdump_key
	cmpq	(%r12), %r14
	jae	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rcx
	movslq	(%r13), %rax
	incq	%r14
	cmpb	$58, (%rbx,%rax,2)
	leaq	1(%rbx,%rax,2), %r13
	movq	_EAP_SIM_KC_LEN@GOTPCREL(%rip), %rbx
	je	LBB0_4
LBB0_10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	L_.str.6(%rip), %rsi
LBB0_11:
	movl	(%r15), %edi
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_12:
	movq	%r14, %rdi
	callq	_os_free
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM: Use result from external SIM processing"

L_.str.1:                               ## @.str.1
	.asciz	"GSM-AUTH:"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-SIM: Unrecognized external SIM processing response"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-SIM: RAND"

	.comm	_GSM_RAND_LEN,4,2               ## @GSM_RAND_LEN
	.comm	_EAP_SIM_KC_LEN,4,2             ## @EAP_SIM_KC_LEN
L_.str.4:                               ## @.str.4
	.asciz	"EAP-SIM: Kc"

	.comm	_EAP_SIM_SRES_LEN,4,2           ## @EAP_SIM_SRES_LEN
L_.str.5:                               ## @.str.5
	.asciz	"EAP-SIM: SRES"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-SIM: Invalid external SIM processing GSM-AUTH response"

	.no_dead_strip	_eap_sim_ext_sim_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sim_ext_sim_result
_eap_sim_ext_sim_result:                ; @eap_sim_ext_sim_result
	.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
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x26, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x19, [x21]
	str	xzr, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #9
	bl	_os_strncmp
	cbz	x0, LBB0_4
; %bb.1:
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_2:
	ldr	w0, [x26]
	mov	x1, x21
	bl	_wpa_printf
	mov	w20, #-1
LBB0_3:
	mov	x0, x19
	bl	_os_free
	mov	x0, x20
	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_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.5:
	mov	x27, #0
	add	x25, x19, #9
Lloh8:
	adrp	x22, l_.str.3@PAGE
Lloh9:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh10:
	adrp	x24, _EAP_SIM_KC_LEN@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EAP_SIM_KC_LEN@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str.6@PAGE
Lloh13:
	add	x21, x21, l_.str.6@PAGEOFF
Lloh14:
	adrp	x28, _EAP_SIM_SRES_LEN@GOTPAGE
Lloh15:
	ldr	x28, [x28, _EAP_SIM_SRES_LEN@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	ldr	x8, [x20, #24]
	lsl	x23, x27, #2
	ldr	w2, [x8, x23]
Lloh16:
	adrp	x8, _GSM_RAND_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GSM_RAND_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x1, x22
	bl	_wpa_hexdump
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x23]
	ldr	w2, [x24]
	mov	x0, x25
	bl	_hexstr2bin
	tbnz	x0, #63, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x27, lsl #2]
	ldr	w3, [x24]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_hexdump_key
	ldrsw	x8, [x24]
	add	x8, x25, x8, lsl #1
	ldrb	w9, [x8]
	cmp	w9, #58
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x8, #1
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x27, lsl #2]
	ldr	w2, [x28]
	mov	x0, x25
	bl	_hexstr2bin
	tbnz	x0, #63, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x27, lsl #2]
	ldr	w3, [x28]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_wpa_hexdump_key
	add	x27, x27, #1
	ldr	x8, [x20]
	cmp	x27, x8
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x28]
	add	x25, x25, x8, lsl #1
	ldrb	w8, [x25], #1
	cmp	w8, #58
	b.eq	LBB0_6
	b	LBB0_2
LBB0_11:
	mov	w20, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM: Use result from external SIM processing"

l_.str.1:                               ; @.str.1
	.asciz	"GSM-AUTH:"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-SIM: Unrecognized external SIM processing response"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-SIM: RAND"

	.comm	_GSM_RAND_LEN,4,2               ; @GSM_RAND_LEN
	.comm	_EAP_SIM_KC_LEN,4,2             ; @EAP_SIM_KC_LEN
l_.str.4:                               ; @.str.4
	.asciz	"EAP-SIM: Kc"

	.comm	_EAP_SIM_SRES_LEN,4,2           ; @EAP_SIM_SRES_LEN
l_.str.5:                               ; @.str.5
	.asciz	"EAP-SIM: SRES"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-SIM: Invalid external SIM processing GSM-AUTH response"

	.no_dead_strip	_eap_sim_ext_sim_result
.subsections_via_symbols
