	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_tdls_key_mic_teardown
_wpa_tdls_key_mic_teardown:             ## @wpa_tdls_key_mic_teardown
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%r8, %r8
	je	LBB0_3
## %bb.1:
	movq	%r9, %r12
	movq	%r8, %r14
	movl	%edx, %r15d
	movl	%esi, %ebx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r8), %eax
	movl	4(%r9), %ecx
	leal	(%rax,%rcx), %edi
	addl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %r13
	movl	4(%r14), %edx
	addl	$2, %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_os_memcpy
	movslq	4(%r14), %r14
	leaq	(,%r14,4), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(,%r14,4), %rdi
	addq	%r13, %rdi
	movl	%r15d, %esi
	callq	_WPA_PUT_LE16
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%r13,%r14,4)
	leaq	32(,%r14,4), %rdi
	addq	%r13, %rdi
	movl	%ebx, 28(%r13,%r14,4)
	movl	4(%r12), %edx
	addl	$2, %edx
	movq	%r12, %rsi
	callq	_os_memcpy
	movl	32(%r13,%r14,4), %edi
	movq	_TDLS_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movl	4(%r12), %eax
	addl	$2, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	addq	$32, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	subq	%r13, %rbx
	shrq	$2, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	callq	_wpa_hexdump
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	$16, %ecx
	callq	_wpa_hexdump_key
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	16(%rbp), %r15
	movq	%r15, %rcx
	callq	_omac1_aes_128
	movl	%eax, %ebx
	movq	%r13, %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_4
LBB0_2:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_3:
	movl	$-1, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_key_mic_teardown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_tdls_key_mic_teardown
_wpa_tdls_key_mic_teardown:             ; @wpa_tdls_key_mic_teardown
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x4, LBB0_4
; %bb.1:
	mov	x19, x6
	mov	x22, x5
	mov	x26, x4
	mov	x23, x3
	mov	x25, x2
	mov	x24, x1
	mov	x20, x0
	ldr	w8, [x4, #4]
	ldr	w9, [x5, #4]
	add	w8, w8, w9
	add	w0, w8, #16
	bl	_os_zalloc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	w8, [x26, #4]
	add	w2, w8, #2
	mov	x1, x26
	bl	_os_memcpy
	ldrsw	x8, [x26, #4]
	add	x26, x21, x8, lsl #2
	add	x0, x26, #8
	mov	x1, x25
	bl	_WPA_PUT_LE16
	add	x25, x26, #32
	stp	w23, w24, [x26, #24]
	ldr	w8, [x22, #4]
	add	w2, w8, #2
	mov	x0, x25
	mov	x1, x22
	bl	_os_memcpy
	ldr	w0, [x26, #32]
Lloh0:
	adrp	x8, _TDLS_MIC_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDLS_MIC_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_os_memset
	ldr	w8, [x22, #4]
	add	w8, w8, #2
	add	x8, x25, w8, uxtw #2
Lloh3:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	sub	x8, x8, x21
	lsr	x22, x8, #2
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_wpa_hexdump
	ldr	w0, [x23]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	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]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	mov	w3, #16
	bl	_wpa_hexdump
	mov	x0, x20
	b	LBB0_5
LBB0_3:
Lloh11:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.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_key_mic_teardown
.subsections_via_symbols
