	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_tdls_start                 ## -- Begin function wpa_tdls_start
	.p2align	4, 0x90
_wpa_tdls_start:                        ## @wpa_tdls_start
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r14d
	cmpq	$0, 8(%rdi)
	jne	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_11
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_10:
	movl	$-1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wpa_tdls_add_peer
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %r15
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_7:
	movl	$1, 4(%r15)
	movl	8(%r15), %esi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsp)
	movl	$0, 80(%rsp)
	movq	$0, 72(%rsp)
	movl	$0, 64(%rsp)
	movq	$0, 56(%rsp)
	movl	$0, 48(%rsp)
	movq	$0, 40(%rsp)
	movl	$0, 32(%rsp)
	movl	$0, 24(%rsp)
	movl	$0, (%rsp)
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_wpa_sm_tdls_peer_addset
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	$1, (%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wpa_tdls_send_tpk_m1
	testq	%rax, %rax
	jns	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wpa_tdls_disable_peer_link
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDLS: TDLS is prohibited in this BSS - reject request to start setup"

L_.str.1:                               ## @.str.1
	.asciz	"TDLS: Setup is already in progress with the peer"

	.comm	_TDLS_TESTING_IGNORE_AP_PROHIBIT,4,2 ## @TDLS_TESTING_IGNORE_AP_PROHIBIT
	.comm	_tdls_testing,4,2               ## @tdls_testing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_tdls_start                 ; -- Begin function wpa_tdls_start
	.p2align	2
_wpa_tdls_start:                        ; @wpa_tdls_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	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
	add	sp, sp, #112
	ret
LBB0_3:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_1
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	b	LBB0_1
LBB0_6:
	mov	x0, x19
	mov	x2, #0
	bl	_wpa_tdls_add_peer
	cbz	x0, LBB0_1
; %bb.7:
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.8:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_2
LBB0_9:
	mov	w21, #1
	str	w21, [x20, #4]
	ldr	w1, [x20, #8]
	stp	xzr, xzr, [sp]
	str	wzr, [sp, #56]
	str	xzr, [sp, #48]
	str	wzr, [sp, #40]
	str	xzr, [sp, #32]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_wpa_sm_tdls_peer_addset
	cbz	x0, LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_wpa_tdls_disable_peer_link
	b	LBB0_1
LBB0_11:
	str	w21, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_wpa_tdls_send_tpk_m1
	tbnz	x0, #63, LBB0_10
; %bb.12:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDLS: TDLS is prohibited in this BSS - reject request to start setup"

l_.str.1:                               ; @.str.1
	.asciz	"TDLS: Setup is already in progress with the peer"

	.comm	_TDLS_TESTING_IGNORE_AP_PROHIBIT,4,2 ; @TDLS_TESTING_IGNORE_AP_PROHIBIT
	.comm	_tdls_testing,4,2               ; @tdls_testing
.subsections_via_symbols
