	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_op_gen_update_fw_tdls_state
_ath10k_wmi_tlv_op_gen_update_fw_tdls_state: ## @ath10k_wmi_tlv_op_gen_update_fw_tdls_state
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	_WMI_SERVICE_TDLS_UAPSD_BUFFER_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_test_bit
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_WMI_TLV_TDLS_BUFFER_STA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_WMI_TDLS_ENABLE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_WMI_TDLS_ENABLE_ACTIVE_EXTERNAL_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$128, %esi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_ath10k_wmi_alloc_skb
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpl	%r14d, %ebx
	movl	%r15d, %r13d
	cmovnel	%r14d, %r13d
	xorl	%ecx, %ecx
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	cmovel	%ecx, %r12d
	movq	(%rax), %rbx
	movq	_WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %r15
	callq	___cpu_to_le16
	movq	%rax, 16(%rbx)
	movl	$104, %edi
	callq	___cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rbx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	___cpu_to_le32
	movq	%rax, 96(%rbx)
	movl	%r13d, %edi
	callq	___cpu_to_le32
	movq	%rax, 88(%rbx)
	movl	$5000, %edi                     ## imm = 0x1388
	callq	___cpu_to_le32
	movq	%rax, 80(%rbx)
	movl	$100, %edi
	callq	___cpu_to_le32
	movq	%rax, 72(%rbx)
	movl	$5, %edi
	callq	___cpu_to_le32
	movq	%rax, 64(%rbx)
	movl	$-75, %edi
	callq	___cpu_to_le32
	movq	%rax, 56(%rbx)
	movl	$-20, %edi
	callq	___cpu_to_le32
	movq	%rax, 48(%rbx)
	movl	%r12d, %edi
	callq	___cpu_to_le32
	movq	%rax, 40(%rbx)
	movl	$2, %edi
	callq	___cpu_to_le32
	movq	%rax, 32(%rbx)
	movl	$5000, %edi                     ## imm = 0x1388
	callq	___cpu_to_le32
	movq	%rax, 24(%rbx)
	movl	$15, %edi
	callq	___cpu_to_le32
	movq	%rax, 16(%rbx)
	xorl	%edi, %edi
	callq	___cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	$10, %edi
	callq	___cpu_to_le32
	movq	%rax, (%rbx)
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	callq	_ath10k_dbg
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_SERVICE_TDLS_UAPSD_BUFFER_STA,4,2 ## @WMI_SERVICE_TDLS_UAPSD_BUFFER_STA
	.comm	_WMI_TLV_TDLS_BUFFER_STA_EN,4,2 ## @WMI_TLV_TDLS_BUFFER_STA_EN
	.comm	_WMI_TDLS_ENABLE_ACTIVE,4,2     ## @WMI_TDLS_ENABLE_ACTIVE
	.comm	_WMI_TDLS_ENABLE_ACTIVE_EXTERNAL_CONTROL,4,2 ## @WMI_TDLS_ENABLE_ACTIVE_EXTERNAL_CONTROL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD,4,2 ## @WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv update fw tdls state %d for vdev %i\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_update_fw_tdls_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_tlv_op_gen_update_fw_tdls_state
_ath10k_wmi_tlv_op_gen_update_fw_tdls_state: ; @ath10k_wmi_tlv_op_gen_update_fw_tdls_state
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _WMI_SERVICE_TDLS_UAPSD_BUFFER_STA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_SERVICE_TDLS_UAPSD_BUFFER_STA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_test_bit
	mov	x23, x0
Lloh3:
	adrp	x8, _WMI_TLV_TDLS_BUFFER_STA_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_TLV_TDLS_BUFFER_STA_EN@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _WMI_TDLS_ENABLE_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WMI_TDLS_ENABLE_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _WMI_TDLS_ENABLE_ACTIVE_EXTERNAL_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMI_TDLS_ENABLE_ACTIVE_EXTERNAL_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w26, [x8]
	mov	x0, x20
	mov	w1, #128
	bl	_ath10k_wmi_alloc_skb
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	cmp	w25, w22
	csel	w22, w26, w22, eq
	cmp	x23, #0
	csel	w23, wzr, w24, eq
	ldr	x24, [x0]
Lloh12:
	adrp	x8, _WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	x0, [x24, #16]
	mov	w0, #104
	bl	___cpu_to_le16
	str	x0, [x24, #8]
	ldr	x24, [x24]
	mov	x0, x19
	bl	___cpu_to_le32
	str	x0, [x24, #96]
	mov	x0, x22
	bl	___cpu_to_le32
	str	x0, [x24, #88]
	mov	w0, #5000
	bl	___cpu_to_le32
	str	x0, [x24, #80]
	mov	w0, #100
	bl	___cpu_to_le32
	str	x0, [x24, #72]
	mov	w0, #5
	bl	___cpu_to_le32
	str	x0, [x24, #64]
	mov	w0, #-75
	bl	___cpu_to_le32
	str	x0, [x24, #56]
	mov	w0, #-20
	bl	___cpu_to_le32
	str	x0, [x24, #48]
	mov	x0, x23
	bl	___cpu_to_le32
	str	x0, [x24, #40]
	mov	w0, #2
	bl	___cpu_to_le32
	str	x0, [x24, #32]
	mov	w0, #5000
	bl	___cpu_to_le32
	str	x0, [x24, #24]
	mov	w0, #15
	bl	___cpu_to_le32
	str	x0, [x24, #16]
	mov	w0, #0
	bl	___cpu_to_le32
	str	x0, [x24, #8]
	mov	w0, #10
	bl	___cpu_to_le32
	str	x0, [x24]
Lloh15:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	mov	x4, x19
	bl	_ath10k_dbg
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_SERVICE_TDLS_UAPSD_BUFFER_STA,4,2 ; @WMI_SERVICE_TDLS_UAPSD_BUFFER_STA
	.comm	_WMI_TLV_TDLS_BUFFER_STA_EN,4,2 ; @WMI_TLV_TDLS_BUFFER_STA_EN
	.comm	_WMI_TDLS_ENABLE_ACTIVE,4,2     ; @WMI_TDLS_ENABLE_ACTIVE
	.comm	_WMI_TDLS_ENABLE_ACTIVE_EXTERNAL_CONTROL,4,2 ; @WMI_TDLS_ENABLE_ACTIVE_EXTERNAL_CONTROL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD,4,2 ; @WMI_TLV_TAG_STRUCT_TDLS_SET_STATE_CMD
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv update fw tdls state %d for vdev %i\n"

	.no_dead_strip	_ath10k_wmi_tlv_op_gen_update_fw_tdls_state
.subsections_via_symbols
