	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_tls_mac
_eap_teap_tls_mac:                      ## @eap_teap_tls_mac
	.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	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -256(%rbp)                 ## 8-byte Spill
	movq	%rcx, -248(%rbp)                ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	16(%rbp), %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-240(%rbp), %rdi
	movl	$192, %edx
	xorl	%esi, %esi
	callq	_os_memset
	movq	%r13, -264(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_os_memset
	movl	%r15d, %edi
	callq	_tls_cipher_suite_mac_sha1
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-240(%rbp), %r8
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	-248(%rbp), %rdx                ## 8-byte Reload
	movq	-256(%rbp), %rcx                ## 8-byte Reload
	callq	_hmac_sha1
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_8
LBB0_2:
	movq	%r14, %rbx
	movq	%r12, %r13
	movq	-248(%rbp), %r14                ## 8-byte Reload
	movq	-256(%rbp), %r12                ## 8-byte Reload
	movl	%r15d, %edi
	callq	_tls_cipher_suite_mac_sha256
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-240(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_hmac_sha256
	testl	%eax, %eax
	jns	LBB0_7
	jmp	LBB0_8
LBB0_4:
	movl	%r15d, %edi
	callq	_tls_cipher_suite_mac_sha384
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	-240(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_hmac_sha384
	testl	%eax, %eax
	js	LBB0_8
LBB0_7:
	movq	16(%rbp), %rax
	cmpq	$192, %rax
	movl	$192, %edx
	cmovbq	%rax, %rdx
	leaq	-240(%rbp), %rsi
	movq	-264(%rbp), %rdi                ## 8-byte Reload
	callq	_os_memcpy
	xorl	%eax, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.9:
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	$-1, %eax
	jmp	LBB0_8
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: MAC algorithm: HMAC-SHA1"

L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: MAC algorithm: HMAC-SHA256"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: MAC algorithm: HMAC-SHA384"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.3:                               ## @.str.3
	.asciz	"EAP-TEAP: Unsupported TLS cipher suite 0x%04x"

	.no_dead_strip	_eap_teap_tls_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_tls_mac
_eap_teap_tls_mac:                      ; @eap_teap_tls_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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	x20, x6
	mov	x19, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #192
	bl	_os_memset
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_os_memset
	mov	x0, x25
	bl	_tls_cipher_suite_mac_sha1
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	add	x4, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_hmac_sha1
	tbz	w0, #31, LBB0_6
	b	LBB0_7
LBB0_2:
	mov	x0, x25
	bl	_tls_cipher_suite_mac_sha256
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	add	x4, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_hmac_sha256
	tbz	w0, #31, LBB0_6
	b	LBB0_7
LBB0_4:
	mov	x0, x25
	bl	_tls_cipher_suite_mac_sha384
	cbz	x0, LBB0_9
; %bb.5:
Lloh13:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	add	x4, sp, #8
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_hmac_sha384
	tbnz	w0, #31, LBB0_7
LBB0_6:
	mov	w8, #192
	cmp	x20, #192
	csel	x2, x20, x8, lo
	add	x1, sp, #8
	mov	x0, x19
	bl	_os_memcpy
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_9:
Lloh21:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x25, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: MAC algorithm: HMAC-SHA1"

l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: MAC algorithm: HMAC-SHA256"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: MAC algorithm: HMAC-SHA384"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.3:                               ; @.str.3
	.asciz	"EAP-TEAP: Unsupported TLS cipher suite 0x%04x"

	.no_dead_strip	_eap_teap_tls_mac
.subsections_via_symbols
