	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_tdls_init                  ## -- Begin function wpa_tdls_init
	.p2align	4, 0x90
_wpa_tdls_init:                         ## @wpa_tdls_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r15d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.2:
	movq	40(%rbx), %rdi
LBB0_3:
	movl	32(%rbx), %esi
	movq	_ETH_P_80211_ENCAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wpa_supplicant_rx_tdls@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_l2_packet_init
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	16(%rbx), %r12
	leaq	8(%rbx), %r14
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_wpa_sm_tdls_get_capa
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	cmpl	$0, (%rbx)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	jmp	LBB0_8
LBB0_4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_9
LBB0_7:
	movl	$1, (%rbx)
	movq	$0, 16(%rbx)
	leaq	L_.str.2(%rip), %rdx
LBB0_8:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%rbx), %edi
	cmpq	$0, (%r12)
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%rbx), %edi
	cmpq	$0, (%r14)
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.8(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_P_80211_ENCAP,4,2          ## @ETH_P_80211_ENCAP
	.comm	_wpa_supplicant_rx_tdls,4,2     ## @wpa_supplicant_rx_tdls
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDLS: Failed to open l2_packet connection"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"TDLS: TDLS operation%s supported by driver"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	" not"

L_.str.4:                               ## @.str.4
	.asciz	"TDLS: Driver uses %s link setup"

L_.str.5:                               ## @.str.5
	.asciz	"external"

L_.str.6:                               ## @.str.6
	.asciz	"internal"

L_.str.7:                               ## @.str.7
	.asciz	"TDLS: Driver %s TDLS channel switching"

L_.str.8:                               ## @.str.8
	.asciz	"supports"

L_.str.9:                               ## @.str.9
	.asciz	"does not support"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_tdls_init                  ; -- Begin function wpa_tdls_init
	.p2align	2
_wpa_tdls_init:                         ; @wpa_tdls_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0, #48]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20, #40]
LBB0_3:
	ldr	w1, [x20, #32]
Lloh0:
	adrp	x8, _ETH_P_80211_ENCAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_80211_ENCAP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _wpa_supplicant_rx_tdls@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wpa_supplicant_rx_tdls@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x4, x20
	mov	w5, #0
	bl	_l2_packet_init
	str	x0, [x20, #24]
	cbz	x0, LBB0_7
; %bb.4:
	add	x21, x20, #16
	add	x19, x20, #8
	mov	x0, x20
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_wpa_sm_tdls_get_capa
	tbnz	x0, #63, LBB0_8
; %bb.5:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh8:
	adrp	x10, l_.str.3@PAGE
Lloh9:
	add	x10, x10, l_.str.3@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, eq
	b	LBB0_9
LBB0_6:
	mov	w0, #-1
	b	LBB0_10
LBB0_7:
Lloh10:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	mov	w8, #1
	str	w8, [x20]
	str	xzr, [x20, #16]
Lloh15:
	adrp	x8, l_.str.2@PAGE
Lloh16:
	add	x8, x8, l_.str.2@PAGEOFF
LBB0_9:
Lloh17:
	adrp	x20, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x20, [x20, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x20]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x20]
	ldr	x8, [x21]
Lloh21:
	adrp	x9, l_.str.5@PAGE
Lloh22:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh23:
	adrp	x10, l_.str.6@PAGE
Lloh24:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_printf
	ldr	w0, [x20]
	ldr	x8, [x19]
Lloh27:
	adrp	x9, l_.str.8@PAGE
Lloh28:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh29:
	adrp	x10, l_.str.9@PAGE
Lloh30:
	add	x10, x10, l_.str.9@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_P_80211_ENCAP,4,2          ; @ETH_P_80211_ENCAP
	.comm	_wpa_supplicant_rx_tdls,4,2     ; @wpa_supplicant_rx_tdls
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDLS: Failed to open l2_packet connection"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"TDLS: TDLS operation%s supported by driver"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	" not"

l_.str.4:                               ; @.str.4
	.asciz	"TDLS: Driver uses %s link setup"

l_.str.5:                               ; @.str.5
	.asciz	"external"

l_.str.6:                               ; @.str.6
	.asciz	"internal"

l_.str.7:                               ; @.str.7
	.asciz	"TDLS: Driver %s TDLS channel switching"

l_.str.8:                               ; @.str.8
	.asciz	"supports"

l_.str.9:                               ; @.str.9
	.asciz	"does not support"

.subsections_via_symbols
