	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_decrypt_prot           ## -- Begin function eap_eke_decrypt_prot
	.p2align	4, 0x90
_eap_eke_decrypt_prot:                  ## @eap_eke_decrypt_prot
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EAP_EKE_MAX_HASH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r8
	movq	(%r15), %rax
	movq	_EAP_EKE_ENCR_AES128_CBC@GOTPCREL(%rip), %rcx
	movl	$-1, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.1:
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	8(%r15), %rdi
	movq	_EAP_EKE_PRF_HMAC_SHA1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_3
## %bb.2:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_SHA1_MAC_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_EAP_EKE_PRF_HMAC_SHA2_256@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_18
## %bb.4:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_SHA256_MAC_LEN@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %r12
	leaq	(%r12,%r9,2), %rax
	cmpq	%r14, %rax
	ja	LBB0_18
## %bb.6:
	movq	%r14, %rax
	subq	%r12, %rax
	movq	%rax, %rdx
	orq	%r9, %rdx
	shrq	$32, %rdx
	je	LBB0_8
## %bb.7:
	xorl	%edx, %edx
	divq	%r9
	testq	%rdx, %rdx
	jne	LBB0_18
	jmp	LBB0_9
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r9d
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_18
LBB0_9:
	movl	20(%r15), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r9,4), %rdx
	addq	%r12, %r9
	movq	%r14, %rcx
	subq	%r9, %rcx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%r8, %rbx
	callq	_eap_eke_mac
	testq	%rax, %rax
	js	LBB0_18
## %bb.10:
	movq	%r12, %rax
	negq	%rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r14,4), %rcx
	leaq	(%rcx,%rax,4), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_os_memcmp_const
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_17
LBB0_12:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, (%r14)
	jae	LBB0_14
## %bb.13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_14:
	movq	%rdx, (%r14)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movl	16(%r15), %edi
	movq	(%r14), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_aes_128_cbc_decrypt
	testq	%rax, %rax
	js	LBB0_16
## %bb.15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	callq	_wpa_hexdump_key
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_16:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	callq	_wpa_printf
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_EKE_MAX_HASH_LEN,4,2       ## @EAP_EKE_MAX_HASH_LEN
	.comm	_EAP_EKE_ENCR_AES128_CBC,8,3    ## @EAP_EKE_ENCR_AES128_CBC
	.comm	_AES_BLOCK_SIZE,8,3             ## @AES_BLOCK_SIZE
	.comm	_EAP_EKE_PRF_HMAC_SHA1,8,3      ## @EAP_EKE_PRF_HMAC_SHA1
	.comm	_SHA1_MAC_LEN,8,3               ## @SHA1_MAC_LEN
	.comm	_EAP_EKE_PRF_HMAC_SHA2_256,8,3  ## @EAP_EKE_PRF_HMAC_SHA2_256
	.comm	_SHA256_MAC_LEN,8,3             ## @SHA256_MAC_LEN
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-EKE: ICV mismatch in Prot() data"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-EKE: Not enough room for decrypted Prot() data"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-EKE: Failed to decrypt Prot() data"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"EAP-EKE: Decrypted Prot() data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_eke_decrypt_prot           ; -- Begin function eap_eke_decrypt_prot
	.p2align	2
_eap_eke_decrypt_prot:                  ; @eap_eke_decrypt_prot
	.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, #16
	mov	x20, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _EAP_EKE_MAX_HASH_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAP_EKE_MAX_HASH_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _EAP_EKE_ENCR_AES128_CBC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAP_EKE_ENCR_AES128_CBC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.1:
Lloh11:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x0, [x22, #8]
Lloh14:
	adrp	x9, _EAP_EKE_PRF_HMAC_SHA1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EAP_EKE_PRF_HMAC_SHA1@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_3
; %bb.2:
Lloh17:
	adrp	x9, _SHA1_MAC_LEN@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SHA1_MAC_LEN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh19:
	adrp	x9, _EAP_EKE_PRF_HMAC_SHA2_256@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EAP_EKE_PRF_HMAC_SHA2_256@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_16
; %bb.4:
Lloh22:
	adrp	x9, _SHA256_MAC_LEN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _SHA256_MAC_LEN@GOTPAGEOFF]
LBB0_5:
	ldr	x27, [x9]
	add	x9, x27, x8, lsl #1
	cmp	x9, x23
	b.hi	LBB0_16
; %bb.6:
	sub	x9, x23, x27
	udiv	x10, x9, x8
	msub	x9, x10, x8, x9
	cbnz	x9, LBB0_16
; %bb.7:
	ldr	w1, [x22, #20]
	add	x25, x21, x8, lsl #2
	add	x8, x8, x27
	sub	x26, x23, x8
	mov	x2, x25
	mov	x3, x26
	mov	x4, x24
	bl	_eap_eke_mac
	tbnz	x0, #63, LBB0_16
; %bb.8:
	neg	x8, x27
	add	x9, x21, x23, lsl #2
	add	x1, x9, x8, lsl #2
	mov	x0, x24
	mov	x2, x27
	bl	_os_memcmp_const
	cbz	x0, LBB0_10
; %bb.9:
Lloh24:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_10:
	ldr	x8, [x20]
	cmp	x8, x26
	b.hs	LBB0_12
; %bb.11:
Lloh29:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_12:
	str	x26, [x20]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	bl	_os_memcpy
	ldr	w0, [x22, #16]
	ldr	x3, [x20]
	mov	x1, x21
	mov	x2, x19
	bl	_aes_128_cbc_decrypt
	tbnz	x0, #63, LBB0_14
; %bb.13:
Lloh34:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	x3, [x20]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_17
LBB0_14:
Lloh39:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh40:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	bl	_wpa_printf
LBB0_16:
	mov	w0, #-1
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #80
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_EKE_MAX_HASH_LEN,4,2       ; @EAP_EKE_MAX_HASH_LEN
	.comm	_EAP_EKE_ENCR_AES128_CBC,8,3    ; @EAP_EKE_ENCR_AES128_CBC
	.comm	_AES_BLOCK_SIZE,8,3             ; @AES_BLOCK_SIZE
	.comm	_EAP_EKE_PRF_HMAC_SHA1,8,3      ; @EAP_EKE_PRF_HMAC_SHA1
	.comm	_SHA1_MAC_LEN,8,3               ; @SHA1_MAC_LEN
	.comm	_EAP_EKE_PRF_HMAC_SHA2_256,8,3  ; @EAP_EKE_PRF_HMAC_SHA2_256
	.comm	_SHA256_MAC_LEN,8,3             ; @SHA256_MAC_LEN
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-EKE: ICV mismatch in Prot() data"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-EKE: Not enough room for decrypted Prot() data"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-EKE: Failed to decrypt Prot() data"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"EAP-EKE: Decrypted Prot() data"

.subsections_via_symbols
