	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_sim_db_receive
_eap_sim_db_receive:                    ## @eap_sim_db_receive
	.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	%r12
	pushq	%rbx
	subq	$1008, %rsp                     ## imm = 0x3F0
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-1040(%rbp), %rsi
	movl	$999, %edx                      ## imm = 0x3E7
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movl	%eax, %ebx
	movl	%eax, %eax
	movb	$0, -1040(%rbp,%rax)
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-1040(%rbp), %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump_ascii_key
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.4:
	leaq	-1040(%rbp), %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	movb	$0, (%rax)
	incq	%rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %r15
	movb	$0, (%rax)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	leaq	-1040(%rbp), %r12
	movq	%r12, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	leaq	-1040(%rbp), %rdi
	callq	_os_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-1040(%rbp), %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_13
LBB0_11:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_12
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	addq	$1008, %rsp                     ## imm = 0x3F0
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	incq	%r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_eap_sim_db_sim_resp_auth
	jmp	LBB0_13
LBB0_9:
	incq	%r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_eap_sim_db_aka_resp_auth
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-SIM DB: Received from an external source"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"EAP-SIM DB: No get_complete_cb registered"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-SIM DB: External response=%s for IMSI %s"

L_.str.3:                               ## @.str.3
	.asciz	"SIM-RESP-AUTH"

L_.str.4:                               ## @.str.4
	.asciz	"AKA-RESP-AUTH"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.5:                               ## @.str.5
	.asciz	"EAP-SIM DB: Unknown external response '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"EAP-SIM DB: Failed to parse response string"

	.no_dead_strip	_eap_sim_db_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_sim_db_receive
_eap_sim_db_receive:                    ; @eap_sim_db_receive
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1024
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x21, sp, #16
	add	x1, sp, #16
	mov	w2, #999
	mov	w3, #0
	bl	_recv
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	x20, x0
	strb	wzr, [x21, w0, uxtw]
Lloh3:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #16
	mov	x3, x20
	bl	_wpa_hexdump_ascii_key
	cbz	w20, LBB0_11
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.3:
	add	x0, sp, #16
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_8
; %bb.4:
	mov	x20, x0
	strb	wzr, [x20], #1
	mov	x0, x20
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	strb	wzr, [x0]
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x8, sp, #16
	stp	x8, x20, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #16
	bl	_os_strcmp
	cbz	x0, LBB0_13
; %bb.6:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x22, sp, #16
	add	x0, sp, #16
	bl	_os_strcmp
	cbz	x0, LBB0_14
; %bb.7:
Lloh17:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh22:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh27:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	bl	_wpa_printf
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.12:
	add	sp, sp, #1024
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	add	x2, x21, #1
	mov	x0, x19
	mov	x1, x20
	bl	_eap_sim_db_sim_resp_auth
	b	LBB0_11
LBB0_14:
	add	x2, x21, #1
	mov	x0, x19
	mov	x1, x20
	bl	_eap_sim_db_aka_resp_auth
	b	LBB0_11
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-SIM DB: Received from an external source"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"EAP-SIM DB: No get_complete_cb registered"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-SIM DB: External response=%s for IMSI %s"

l_.str.3:                               ; @.str.3
	.asciz	"SIM-RESP-AUTH"

l_.str.4:                               ; @.str.4
	.asciz	"AKA-RESP-AUTH"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.5:                               ; @.str.5
	.asciz	"EAP-SIM DB: Unknown external response '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"EAP-SIM DB: Failed to parse response string"

	.no_dead_strip	_eap_sim_db_receive
.subsections_via_symbols
