	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_tdls_tpk_retry_timeout
_wpa_tdls_tpk_retry_timeout:            ## @wpa_tdls_tpk_retry_timeout
	.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
	movq	40(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	decq	%rax
	movq	%rax, 40(%rbx)
	movq	_MSG_INFO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	28(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	32(%rbx), %esi
	movl	28(%rbx), %edx
	movl	24(%rbx), %ecx
	movl	20(%rbx), %r8d
	movl	4(%rbx), %r10d
	movl	16(%rbx), %r9d
	movl	48(%rbx), %r11d
	subq	$8, %rsp
	movq	%r14, %rdi
	pushq	%r10
	pushq	%rax
	pushq	%r11
	callq	_wpa_tdls_send_tpk_msg
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_4:
	leaq	_wpa_tdls_tpk_retry_timeout(%rip), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_eloop_cancel_timeout
	movslq	(%rbx), %rax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$38, %rdi
	addl	%ecx, %edi
	imull	$1000, %edi, %ecx               ## imm = 0x3E8
	subl	%ecx, %eax
	imull	$1000, %eax, %esi               ## imm = 0x3E8
                                        ## kill: def $edi killed $edi killed $rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%rbx, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eloop_register_timeout         ## TAILCALL
LBB0_5:
	leaq	_wpa_tdls_tpk_retry_timeout(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_eloop_cancel_timeout
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_tdls_do_teardown           ## TAILCALL
LBB0_6:
	movl	(%r15), %edi
	movl	28(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	leaq	_wpa_tdls_tpk_retry_timeout(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_eloop_cancel_timeout           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TDLS: Retrying sending of message (action_code=%u)"

L_.str.1:                               ## @.str.1
	.asciz	"TDLS: No retry buffer available for action_code=%u"

L_.str.2:                               ## @.str.2
	.asciz	"TDLS: Failed to retry transmission"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"TDLS: Sending Teardown Request"

	.comm	_WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED,4,2 ## @WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED
	.no_dead_strip	_wpa_tdls_tpk_retry_timeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_tdls_tpk_retry_timeout
_wpa_tdls_tpk_retry_timeout:            ; @wpa_tdls_tpk_retry_timeout
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_5
; %bb.1:
	sub	x8, x8, #1
	str	x8, [x19, #40]
Lloh0:
	adrp	x21, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSG_INFO@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w8, [x19, #28]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x7, [x19, #8]
	cbz	x7, LBB0_6
; %bb.2:
	ldp	w2, w1, [x19, #28]
	ldp	w4, w3, [x19, #20]
	ldr	w5, [x19, #16]
	ldr	w6, [x19, #48]
	ldr	w8, [x19, #4]
	str	w8, [sp]
	mov	x0, x20
	bl	_wpa_tdls_send_tpk_msg
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
LBB0_4:
Lloh6:
	adrp	x21, _wpa_tdls_tpk_retry_timeout@PAGE
Lloh7:
	add	x21, x21, _wpa_tdls_tpk_retry_timeout@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_eloop_cancel_timeout
	ldr	w8, [x19]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w0, w9, w10
	mov	w9, #1000
	msub	w8, w0, w9, w8
	mul	w1, w8, w9
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	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
	b	_eloop_register_timeout
LBB0_5:
Lloh8:
	adrp	x0, _wpa_tdls_tpk_retry_timeout@PAGE
Lloh9:
	add	x0, x0, _wpa_tdls_tpk_retry_timeout@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_eloop_cancel_timeout
Lloh10:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh15:
	adrp	x8, _WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_wpa_tdls_do_teardown
LBB0_6:
	ldr	w0, [x21]
	ldr	w8, [x19, #28]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh20:
	adrp	x0, _wpa_tdls_tpk_retry_timeout@PAGE
Lloh21:
	add	x0, x0, _wpa_tdls_tpk_retry_timeout@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	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
	b	_eloop_cancel_timeout
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TDLS: Retrying sending of message (action_code=%u)"

l_.str.1:                               ; @.str.1
	.asciz	"TDLS: No retry buffer available for action_code=%u"

l_.str.2:                               ; @.str.2
	.asciz	"TDLS: Failed to retry transmission"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"TDLS: Sending Teardown Request"

	.comm	_WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED,4,2 ; @WLAN_REASON_TDLS_TEARDOWN_UNSPECIFIED
	.no_dead_strip	_wpa_tdls_tpk_retry_timeout
.subsections_via_symbols
