	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_tdls_send_tpk_m3
_wpa_tdls_send_tpk_m3:                  ## @wpa_tdls_send_tpk_m3
	.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, %r12
	movq	%rcx, %r13
	movl	%edx, %r14d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_wpa_tdls_get_privacy
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	56(%r12), %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	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_wpa_tdls_get_privacy
	movq	%r15, %r13
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	32(%r12), %esi
	movl	52(%r12), %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	48(%r12), %esi
	movq	_WPA_NONCE_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_os_memcpy
	movl	16(%r14), %edi
	movl	44(%r12), %esi
	movl	(%rbx), %edx
	callq	_os_memcpy
	movl	$30, (%r14)
	leaq	32(%r14), %rdi
	movl	40(%r12), %ebx
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	movl	%ebx, %ecx
	callq	_wpa_add_tdls_timeoutie
	movq	%rax, %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	32(%r12), %ecx
	movl	36(%r12), %edi
	subq	$8, %rsp
	movl	$3, %esi
	movq	-64(%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:
	cmpq	$0, 24(%r12)
	movl	$0, %eax
	je	LBB0_9
## %bb.8:
	movq	_TDLS_PEER_VHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	cmpq	$0, 16(%r12)
	movl	$0, %r9d
	je	LBB0_11
## %bb.10:
	movq	_TDLS_PEER_HT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
LBB0_11:
	orl	%eax, %r9d
	cmpq	$0, 8(%r12)
	movl	$0, %eax
	je	LBB0_13
## %bb.12:
	movq	_TDLS_PEER_WMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	orl	%eax, %r9d
	movq	_WLAN_TDLS_SETUP_CONFIRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %eax
	subq	%r15, %r13
	shrq	$2, %r13
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	pushq	%r13
	pushq	%r15
	pushq	%rax
	callq	_wpa_tdls_tpk_send
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_os_free
	jmp	LBB0_14
LBB0_4:
	movl	$-1, %ebx
LBB0_14:
	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: TPK lifetime %u seconds"

	.comm	_TDLS_PEER_VHT,4,2              ## @TDLS_PEER_VHT
	.comm	_TDLS_PEER_HT,4,2               ## @TDLS_PEER_HT
	.comm	_TDLS_PEER_WMM,4,2              ## @TDLS_PEER_WMM
	.comm	_WLAN_TDLS_SETUP_CONFIRM,4,2    ## @WLAN_TDLS_SETUP_CONFIRM
	.comm	_TDLS_TESTING_LONG_FRAME,4,2    ## @TDLS_TESTING_LONG_FRAME
	.comm	_TDLS_TESTING_WRONG_LIFETIME_CONF,4,2 ## @TDLS_TESTING_WRONG_LIFETIME_CONF
	.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_m3
.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_m3
_wpa_tdls_send_tpk_m3:                  ; @wpa_tdls_send_tpk_m3
	.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, #56]
	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, #32]
	ldr	w2, [x22, #52]
	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, #48]
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, #44]
	ldr	w2, [x26]
	bl	_os_memcpy
	mov	w8, #30
	str	w8, [x25]
	add	x0, x25, #32
	ldr	w27, [x22, #40]
	add	x1, sp, #8
	mov	w2, #4
	mov	x3, x27
	bl	_wpa_add_tdls_timeoutie
	mov	x26, x0
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	str	x27, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldp	w3, w0, [x22, #32]
	ldr	x6, [x25, #8]
	add	x4, sp, #8
	mov	w1, #3
	mov	x2, x24
	mov	x5, x25
	bl	_wpa_tdls_ftie_mic
LBB0_4:
Lloh10:
	adrp	x8, _TDLS_PEER_VHT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TDLS_PEER_VHT@GOTPAGEOFF]
	ldr	x9, [x22, #24]
Lloh12:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	ldp	x10, x9, [x22, #8]
	cmp	x9, #0
Lloh13:
	adrp	x9, _TDLS_PEER_HT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TDLS_PEER_HT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _TDLS_PEER_WMM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TDLS_PEER_WMM@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w5, w8, w9
Lloh19:
	adrp	x8, _WLAN_TDLS_SETUP_CONFIRM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WLAN_TDLS_SETUP_CONFIRM@GOTPAGEOFF]
Lloh21:
	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	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.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: TPK lifetime %u seconds"

	.comm	_TDLS_PEER_VHT,4,2              ; @TDLS_PEER_VHT
	.comm	_TDLS_PEER_HT,4,2               ; @TDLS_PEER_HT
	.comm	_TDLS_PEER_WMM,4,2              ; @TDLS_PEER_WMM
	.comm	_WLAN_TDLS_SETUP_CONFIRM,4,2    ; @WLAN_TDLS_SETUP_CONFIRM
	.comm	_TDLS_TESTING_LONG_FRAME,4,2    ; @TDLS_TESTING_LONG_FRAME
	.comm	_TDLS_TESTING_WRONG_LIFETIME_CONF,4,2 ; @TDLS_TESTING_WRONG_LIFETIME_CONF
	.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_m3
.subsections_via_symbols
