	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_tdls_ftie_mic
_wpa_tdls_ftie_mic:                     ## @wpa_tdls_ftie_mic
	.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, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	addl	4(%rdx), %eax
	addl	4(%rcx), %eax
	movl	4(%r9), %ecx
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	addl	4(%r8), %eax
	leal	(%rcx,%rax), %edi
	addl	$9, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	(%r15), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%rax, %rdi
	callq	_os_memcpy
	movslq	(%rbx), %rdx
	leaq	(%r12,%rdx,4), %rbx
	movq	8(%r15), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_os_memcpy
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%rax,4), %r13
	leaq	4(%rbx,%rax,4), %rdi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rbx,%rax,4)
	movl	4(%r15), %edx
	addl	$2, %edx
	movq	%r15, %rsi
	callq	_os_memcpy
	movslq	4(%r15), %rax
	leaq	4(,%rax,4), %r15
	addq	%r13, %r15
	leaq	12(,%rax,4), %rdi
	addq	%r13, %rdi
	movl	4(%r14), %edx
	addl	$2, %edx
	movq	%r14, %rsi
	callq	_os_memcpy
	movslq	4(%r14), %rax
	leaq	(%r15,%rax,4), %r14
	addq	$8, %r14
	leaq	(%r15,%rax,4), %rdi
	addq	$16, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edx
	addl	$2, %edx
	movq	%rbx, %rsi
	callq	_os_memcpy
	movslq	4(%rbx), %rbx
	leaq	(%r14,%rbx,4), %r15
	addq	$8, %r15
	leaq	(%r14,%rbx,4), %rdi
	addq	$16, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	4(%rsi), %edx
	addl	$2, %edx
	movq	%rsi, %r13
	callq	_os_memcpy
	movl	16(%r14,%rbx,4), %edi
	movq	_TDLS_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movl	4(%r13), %eax
	addl	$2, %eax
	leaq	(%r15,%rax,4), %rbx
	addq	$8, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	subq	%r12, %rbx
	shrq	$2, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	$16, %ecx
	callq	_wpa_hexdump_key
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	16(%rbp), %r15
	movq	%r15, %rcx
	callq	_omac1_aes_128
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_os_free
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	movl	$16, %ecx
	callq	_wpa_hexdump
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDLS: No memory for MIC calculation"

	.comm	_TDLS_MIC_LEN,4,2               ## @TDLS_MIC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"TDLS: Data for FTIE MIC"

L_.str.2:                               ## @.str.2
	.asciz	"TDLS: KCK"

L_.str.3:                               ## @.str.3
	.asciz	"TDLS: FTIE MIC"

	.no_dead_strip	_wpa_tdls_ftie_mic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_tdls_ftie_mic
_wpa_tdls_ftie_mic:                     ; @wpa_tdls_ftie_mic
	.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, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
Lloh0:
	adrp	x28, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x28, [x28, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x28]
	ldr	w9, [x2, #4]
	ldr	w10, [x3, #4]
	ldr	w11, [x4, #4]
	ldr	w12, [x5, #4]
	add	w8, w9, w8, lsl #1
	add	w8, w8, w10
	add	w8, w8, w11
	add	w8, w8, w12
	add	w0, w8, #9
	bl	_os_zalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x1, [x25]
	ldr	w2, [x28]
	bl	_os_memcpy
	ldrsw	x2, [x28]
	add	x27, x21, x2, lsl #2
	ldr	x1, [x25, #8]
	mov	x0, x27
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_os_memcpy
	ldrsw	x8, [x28]
	add	x27, x27, x8, lsl #2
	str	w26, [x27], #4
	ldr	w8, [x25, #4]
	add	w2, w8, #2
	mov	x0, x27
	mov	x1, x25
	bl	_os_memcpy
	ldrsw	x8, [x25, #4]
	add	x8, x27, x8, lsl #2
	add	x25, x8, #8
	ldr	w8, [x24, #4]
	add	w2, w8, #2
	mov	x0, x25
	mov	x1, x24
	bl	_os_memcpy
	ldrsw	x8, [x24, #4]
	add	x8, x25, x8, lsl #2
	add	x24, x8, #8
	ldr	w8, [x23, #4]
	add	w2, w8, #2
	mov	x0, x24
	mov	x1, x23
	bl	_os_memcpy
	ldrsw	x8, [x23, #4]
	add	x24, x24, x8, lsl #2
	add	x23, x24, #8
	ldr	w8, [x22, #4]
	add	w2, w8, #2
	mov	x0, x23
	mov	x1, x22
	bl	_os_memcpy
	ldr	w0, [x24, #8]
Lloh2:
	adrp	x8, _TDLS_MIC_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TDLS_MIC_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_os_memset
	ldr	w8, [x22, #4]
	add	w8, w8, #2
	add	x8, x23, w8, uxtw #2
Lloh5:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	sub	x8, x8, x21
	lsr	x22, x8, #2
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_wpa_hexdump
	ldr	w0, [x23]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	mov	w3, #16
	bl	_wpa_hexdump_key
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_omac1_aes_128
	mov	x20, x0
	mov	x0, x21
	bl	_os_free
	ldr	w0, [x23]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	mov	w3, #16
	bl	_wpa_hexdump
	mov	x0, x20
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
LBB0_3:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDLS: No memory for MIC calculation"

	.comm	_TDLS_MIC_LEN,4,2               ; @TDLS_MIC_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"TDLS: Data for FTIE MIC"

l_.str.2:                               ; @.str.2
	.asciz	"TDLS: KCK"

l_.str.3:                               ; @.str.3
	.asciz	"TDLS: FTIE MIC"

	.no_dead_strip	_wpa_tdls_ftie_mic
.subsections_via_symbols
