	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_tdls_enable_link
_wpa_tdls_enable_link:                  ## @wpa_tdls_enable_link
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$1, (%rsi)
	movq	$0, 32(%rsi)
	movq	_wpa_tdls_tpk_timeout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_eloop_cancel_timeout
	movq	%r14, %rdi
	callq	_wpa_tdls_get_privacy
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	4(%rbx), %edi
	cmpl	$4, %edi
	jl	LBB0_3
## %bb.2:
	leal	-3(%rdi), %eax
	cmpq	$0, 24(%rbx)
	cmovel	%edi, %eax
	movl	%eax, %edi
LBB0_3:
	movl	(%r15), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_eloop_register_timeout
LBB0_4:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpa_tdls_set_key
	testq	%rax, %rax
	js	LBB0_6
LBB0_7:
	movq	$0, 16(%rbx)
	movq	_TDLS_ENABLE_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_sm_tdls_oper               ## TAILCALL
LBB0_6:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wpa_tdls_tpk_timeout,4,2       ## @wpa_tdls_tpk_timeout
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDLS: Could not configure key to the driver"

	.comm	_TDLS_ENABLE_LINK,4,2           ## @TDLS_ENABLE_LINK
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.comm	_TDLS_TESTING_NO_TPK_EXPIRATION,4,2 ## @TDLS_TESTING_NO_TPK_EXPIRATION
	.comm	_tdls_testing,4,2               ## @tdls_testing
	.no_dead_strip	_wpa_tdls_enable_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_tdls_enable_link
_wpa_tdls_enable_link:                  ; @wpa_tdls_enable_link
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	mov	w8, #1
	str	w8, [x1]
	str	xzr, [x1, #32]
Lloh0:
	adrp	x21, _wpa_tdls_tpk_timeout@GOTPAGE
Lloh1:
	ldr	x21, [x21, _wpa_tdls_tpk_timeout@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	mov	x2, x20
	bl	_eloop_cancel_timeout
	mov	x0, x19
	bl	_wpa_tdls_get_privacy
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x20, #4]
	cmp	w0, #4
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x20, #24]
	sub	w9, w0, #3
	cmp	x8, #0
	csel	w0, w0, w9, eq
LBB0_3:
	ldr	w2, [x21]
	mov	w1, #0
	mov	x3, x19
	mov	x4, x20
	bl	_eloop_register_timeout
LBB0_4:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_wpa_tdls_set_key
	tbnz	x0, #63, LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _TDLS_ENABLE_LINK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TDLS_ENABLE_LINK@GOTPAGEOFF]
	str	xzr, [x20, #16]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_wpa_sm_tdls_oper
LBB0_7:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_wpa_tdls_tpk_timeout,4,2       ; @wpa_tdls_tpk_timeout
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDLS: Could not configure key to the driver"

	.comm	_TDLS_ENABLE_LINK,4,2           ; @TDLS_ENABLE_LINK
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.comm	_TDLS_TESTING_NO_TPK_EXPIRATION,4,2 ; @TDLS_TESTING_NO_TPK_EXPIRATION
	.comm	_tdls_testing,4,2               ; @tdls_testing
	.no_dead_strip	_wpa_tdls_enable_link
.subsections_via_symbols
