	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_tdls_send_tpk_m2
_wpa_tdls_send_tpk_m2:                  ## @wpa_tdls_send_tpk_m2
	.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	%r8, %r13
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_wpa_tdls_get_privacy
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	32(%r13), %rdi
	addq	$37, %rdi
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_wpa_tdls_get_privacy
	movq	%r15, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	4(%r13), %esi
	movl	24(%r13), %edx
	movq	%r15, %rdi
	callq	_wpa_add_ie
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	%rax, %r14
	movq	_WLAN_EID_FAST_BSS_TRANSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	20(%r14), %edi
	movl	20(%r13), %esi
	movq	_WPA_NONCE_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_os_memcpy
	movl	16(%r14), %edi
	movl	16(%r13), %esi
	movl	(%rbx), %edx
	callq	_os_memcpy
	movl	$30, (%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	$32, %ecx
	callq	_wpa_hexdump
	leaq	32(%r14), %rdi
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %r12d
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	movl	%r12d, %ecx
	callq	_wpa_add_tdls_timeoutie
	movq	%rax, %rbx
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	4(%r13), %ecx
	movl	8(%r13), %edi
	subq	$8, %rsp
	movl	$2, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	-48(%rbp), %r8
	movq	%r14, %r9
	pushq	8(%r14)
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	callq	_wpa_tdls_ftie_mic
	addq	$16, %rsp
LBB0_7:
	movq	_WLAN_TDLS_SETUP_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %eax
	subq	%r15, %rbx
	shrq	$2, %rbx
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%r15
	pushq	%rax
	callq	_wpa_tdls_tpk_send
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_8
LBB0_4:
	movl	$-1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_FAST_BSS_TRANSITION,4,2 ## @WLAN_EID_FAST_BSS_TRANSITION
	.comm	_WPA_NONCE_LEN,4,2              ## @WPA_NONCE_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDLS: FTIE for TPK M2"

L_.str.1:                               ## @.str.1
	.asciz	"TDLS: TPK lifetime %u seconds from initiator"

	.comm	_WLAN_TDLS_SETUP_RESPONSE,4,2   ## @WLAN_TDLS_SETUP_RESPONSE
	.comm	_TDLS_TESTING_LONG_FRAME,4,2    ## @TDLS_TESTING_LONG_FRAME
	.comm	_TDLS_TESTING_WRONG_LIFETIME_RESP,4,2 ## @TDLS_TESTING_WRONG_LIFETIME_RESP
	.comm	_TDLS_TESTING_WRONG_MIC,4,2     ## @TDLS_TESTING_WRONG_MIC
	.comm	_tdls_testing,4,2               ## @tdls_testing
	.no_dead_strip	_wpa_tdls_send_tpk_m2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_tdls_send_tpk_m2
_wpa_tdls_send_tpk_m2:                  ; @wpa_tdls_send_tpk_m2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_wpa_tdls_get_privacy
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x22, #32]
	add	x0, x8, #37
	bl	_os_zalloc
	cbz	x0, LBB0_6
LBB0_2:
	mov	x23, x0
	mov	x0, x21
	bl	_wpa_tdls_get_privacy
	mov	x26, x23
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x22, #4]
	ldr	w2, [x22, #24]
	mov	x0, x23
	bl	_wpa_add_ie
	mov	x25, x0
Lloh0:
	adrp	x8, _WLAN_EID_FAST_BSS_TRANSITION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_FAST_BSS_TRANSITION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	ldr	w0, [x0, #20]
	ldr	w1, [x22, #20]
Lloh3:
	adrp	x26, _WPA_NONCE_LEN@GOTPAGE
Lloh4:
	ldr	x26, [x26, _WPA_NONCE_LEN@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_os_memcpy
	ldr	w0, [x25, #16]
	ldr	w1, [x22, #16]
	ldr	w2, [x26]
	bl	_os_memcpy
	mov	w8, #30
	str	w8, [x25]
Lloh5:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	mov	w3, #32
	bl	_wpa_hexdump
	add	x0, x25, #32
	ldr	w27, [x22, #12]
	add	x1, sp, #8
	mov	w2, #4
	mov	x3, x27
	bl	_wpa_add_tdls_timeoutie
	mov	x26, x0
	ldr	w0, [x28]
	str	x27, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldp	w3, w0, [x22, #4]
	ldr	x6, [x25, #8]
	add	x4, sp, #8
	mov	w1, #2
	mov	x2, x24
	mov	x5, x25
	bl	_wpa_tdls_ftie_mic
LBB0_4:
Lloh11:
	adrp	x8, _WLAN_TDLS_SETUP_RESPONSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLAN_TDLS_SETUP_RESPONSE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w6, [x22]
	sub	x8, x26, x23
	lsr	x8, x8, #2
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	w4, #0
	mov	w5, #0
	mov	x7, x23
	bl	_wpa_tdls_tpk_send
	mov	x19, x0
	mov	x0, x23
	bl	_os_free
	b	LBB0_7
LBB0_5:
	mov	w0, #1
	bl	_os_zalloc
	cbnz	x0, LBB0_2
LBB0_6:
	mov	w19, #-1
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_FAST_BSS_TRANSITION,4,2 ; @WLAN_EID_FAST_BSS_TRANSITION
	.comm	_WPA_NONCE_LEN,4,2              ; @WPA_NONCE_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDLS: FTIE for TPK M2"

l_.str.1:                               ; @.str.1
	.asciz	"TDLS: TPK lifetime %u seconds from initiator"

	.comm	_WLAN_TDLS_SETUP_RESPONSE,4,2   ; @WLAN_TDLS_SETUP_RESPONSE
	.comm	_TDLS_TESTING_LONG_FRAME,4,2    ; @TDLS_TESTING_LONG_FRAME
	.comm	_TDLS_TESTING_WRONG_LIFETIME_RESP,4,2 ; @TDLS_TESTING_WRONG_LIFETIME_RESP
	.comm	_TDLS_TESTING_WRONG_MIC,4,2     ; @TDLS_TESTING_WRONG_MIC
	.comm	_tdls_testing,4,2               ; @tdls_testing
	.no_dead_strip	_wpa_tdls_send_tpk_m2
.subsections_via_symbols
