	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_teap_compound_mac          ## -- Begin function eap_teap_compound_mac
	.p2align	4, 0x90
_eap_teap_compound_mac:                 ## @eap_teap_compound_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	8(%rsi), %edi
	callq	_be_to_host16
	movslq	%eax, %r12
	leaq	5(%r12), %rbx
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_wpabuf_len
	addq	%rax, %rbx
LBB0_2:
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_wpabuf_len
	addq	%rax, %rbx
LBB0_4:
	movq	%rbx, %rdi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	addq	$4, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_os_memcpy
	movl	4(%rbx), %edi
	movq	_EAP_TEAP_COMPOUND_MAC_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movl	(%rbx), %edi
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movq	_EAP_TYPE_TEAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%rbx,%r12,4), %r15
	addq	$4, %r15
	movl	%eax, (%rbx,%r12,4)
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_wpabuf_head
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_wpabuf_len
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_os_memcpy
	movq	%r14, %rdi
	callq	_wpabuf_len
	leaq	(%r15,%rax,4), %r15
LBB0_7:
	testq	%r13, %r13
	je	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_wpabuf_head
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_wpabuf_len
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_os_memcpy
	movq	%r13, %rdi
	callq	_wpabuf_len
	leaq	(%r15,%rax,4), %r15
LBB0_9:
	subq	%rbx, %r15
	sarq	$2, %r15
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_EAP_TEAP_CMK_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_wpa_hexdump_key
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_wpa_hexdump
	movl	(%r12), %edx
	movq	_EAP_TEAP_COMPOUND_MAC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rcx
	movq	%r15, %r8
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_eap_teap_tls_mac
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_os_free
	movl	%r14d, %eax
	jmp	LBB0_11
LBB0_10:
	movl	$-1, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_TEAP_COMPOUND_MAC_LEN,4,2  ## @EAP_TEAP_COMPOUND_MAC_LEN
	.comm	_EAP_TYPE_TEAP,4,2              ## @EAP_TYPE_TEAP
	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: CMK for Compound MAC calculation"

	.comm	_EAP_TEAP_CMK_LEN,4,2           ## @EAP_TEAP_CMK_LEN
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: BUFFER for Compound MAC calculation"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_teap_compound_mac          ; -- Begin function eap_teap_compound_mac
	.p2align	2
_eap_teap_compound_mac:                 ; @eap_teap_compound_mac
	.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	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	ldr	w0, [x1, #8]
	bl	_be_to_host16
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x26, w0
	add	x22, x26, #5
	cbz	x24, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_wpabuf_len
	add	x22, x0, x22
LBB0_2:
	cbz	x23, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_wpabuf_len
	add	x22, x0, x22
LBB0_4:
	mov	x0, x22
	bl	_os_malloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x22, x0
	add	x26, x26, #4
	mov	x1, x25
	mov	x2, x26
	bl	_os_memcpy
	add	x25, x22, x26, lsl #2
	ldr	w0, [x22, #4]
Lloh0:
	adrp	x27, _EAP_TEAP_COMPOUND_MAC_LEN@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EAP_TEAP_COMPOUND_MAC_LEN@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_os_memset
	ldr	w0, [x22]
	ldr	w2, [x27]
	mov	w1, #0
	bl	_os_memset
Lloh2:
	adrp	x8, _EAP_TYPE_TEAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAP_TYPE_TEAP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x25], #4
	cbz	x24, LBB0_7
; %bb.6:
	mov	x0, x24
	bl	_wpabuf_head
	mov	x26, x0
	mov	x0, x24
	bl	_wpabuf_len
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_os_memcpy
	mov	x0, x24
	bl	_wpabuf_len
	add	x25, x25, x0, lsl #2
LBB0_7:
	cbz	x23, LBB0_9
; %bb.8:
	mov	x0, x23
	bl	_wpabuf_head
	mov	x24, x0
	mov	x0, x23
	bl	_wpabuf_len
	mov	x2, x0
	mov	x0, x25
	mov	x1, x24
	bl	_os_memcpy
	mov	x0, x23
	bl	_wpabuf_len
	add	x25, x25, x0, lsl #2
LBB0_9:
	sub	x8, x25, x22
	asr	x23, x8, #2
Lloh5:
	adrp	x24, _MSG_MSGDUMP@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh7:
	adrp	x25, _EAP_TEAP_CMK_LEN@GOTPAGE
Lloh8:
	ldr	x25, [x25, _EAP_TEAP_CMK_LEN@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_key
	ldr	w0, [x24]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_wpa_hexdump
	ldr	w2, [x25]
	ldr	w6, [x27]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	mov	x4, x23
	mov	x5, x19
	bl	_eap_teap_tls_mac
	mov	x19, x0
	mov	x0, x22
	bl	_os_free
	mov	x0, x19
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_TEAP_COMPOUND_MAC_LEN,4,2  ; @EAP_TEAP_COMPOUND_MAC_LEN
	.comm	_EAP_TYPE_TEAP,4,2              ; @EAP_TYPE_TEAP
	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: CMK for Compound MAC calculation"

	.comm	_EAP_TEAP_CMK_LEN,4,2           ; @EAP_TEAP_CMK_LEN
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: BUFFER for Compound MAC calculation"

.subsections_via_symbols
