	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_event_diag_data
_ath10k_wmi_tlv_event_diag_data:        ## @ath10k_wmi_tlv_event_diag_data
	.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
	movq	%rdi, %r14
	movl	(%rsi), %edx
	movl	4(%rsi), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ath10k_wmi_tlv_parse_alloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_19
LBB0_2:
	movq	_WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_WMI_TLV_TAG_ARRAY_BYTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	___le32_to_cpu
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ath10k_wmi_tlv_len
	movl	%eax, %r13d
	movl	%r12d, %r15d
	subl	$1, %r15d
	jb	LBB0_16
## %bb.6:
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	negl	%r12d
	movl	%r12d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$20, %r13d
	jb	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	%r13d, %r14
	movl	(%rbx), %edi
	callq	___le16_to_cpu
	cltq
	addq	$20, %rax
	cmpq	%r14, %rax
	ja	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	12(%rbx), %edi
	movl	16(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	callq	___le32_to_cpu
	movl	%r15d, %r14d
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	___le32_to_cpu
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	___le16_to_cpu
	movl	4(%rbx), %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r14d, %r15d
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_trace_ath10k_wmi_diag_container
	movl	(%rbx), %edi
	callq	___le16_to_cpu
	movl	%eax, %edi
	movl	$4, %esi
	callq	_roundup
	subl	%eax, %r13d
	addl	$-20, %r13d
	movl	(%rbx), %edi
	callq	___le16_to_cpu
	movl	%eax, %edi
	movl	$4, %esi
	callq	_roundup
	incl	%r15d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	addq	%rax, %rbx
	addq	$20, %rbx
	testl	%r13d, %r13d
	jne	LBB0_8
LBB0_15:
	movl	%r15d, %r12d
	negl	%r12d
	notl	%r15d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_16:
	orl	%r13d, %r12d
	jne	LBB0_17
	jmp	LBB0_18
LBB0_4:
	movq	%r15, %rdi
	callq	_kfree
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	notl	%r15d
LBB0_17:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath10k_warn
LBB0_18:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to parse tlv: %d\n"

	.comm	_WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT,8,3 ## @WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT
	.comm	_WMI_TLV_TAG_ARRAY_BYTE,8,3     ## @WMI_TLV_TAG_ARRAY_BYTE
	.comm	_EPROTO,4,2                     ## @EPROTO
L_.str.1:                               ## @.str.1
	.asciz	"failed to parse diag data: can't fit item header\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to parse diag data: item is too long\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to parse diag data event: num_items %d len %d\n"

	.no_dead_strip	_ath10k_wmi_tlv_event_diag_data
.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_event_diag_data
_ath10k_wmi_tlv_event_diag_data:        ; @ath10k_wmi_tlv_event_diag_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	w2, w8, [x1]
Lloh0:
	adrp	x9, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x9]
	mov	x1, x8
	bl	_ath10k_wmi_tlv_parse_alloc
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x20, x0
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_16
LBB0_2:
Lloh5:
	adrp	x8, _WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x20, x8, lsl #3]
Lloh8:
	adrp	x9, _WMI_TLV_TAG_ARRAY_BYTE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WMI_TLV_TAG_ARRAY_BYTE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x22, [x20, x9, lsl #3]
	cmp	x8, #0
	ccmp	x22, #0, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_kfree
Lloh11:
	adrp	x8, _EPROTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_4:
	ldr	w0, [x8]
	bl	___le32_to_cpu
	mov	x23, x0
	mov	x0, x22
	bl	_ath10k_wmi_tlv_len
	mov	x21, x0
	sub	w27, w23, #1
	cmp	w23, #0
	ccmp	w0, #0, #4, ne
	b.eq	LBB0_11
; %bb.5:
Lloh14:
	adrp	x23, l_.str.1@PAGE
Lloh15:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh16:
	adrp	x28, l_.str.2@PAGE
Lloh17:
	add	x28, x28, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w21, #20
	b.lo	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x22]
	bl	___le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x8, x8, #20
	cmp	x8, w21, sxtw
	b.hi	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w0, w24, [x22, #12]
	bl	___le32_to_cpu
	mov	x25, x0
	ldr	w0, [x22, #8]
	bl	___le32_to_cpu
	mov	x26, x0
	ldr	w0, [x22]
	bl	___le16_to_cpu
	mov	x4, x0
	ldr	w5, [x22, #4]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	x3, x26
	bl	_trace_ath10k_wmi_diag_container
	ldr	w0, [x22]
	bl	___le16_to_cpu
	mov	w1, #4
	bl	_roundup
	sub	w8, w21, w0
	sub	w21, w8, #20
	ldr	w0, [x22]
	bl	___le16_to_cpu
	mov	w1, #4
	bl	_roundup
	sub	w8, w27, #1
	cbz	w27, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x22, x0
	add	x22, x9, #20
	mov	x27, x8
	cbnz	w21, LBB0_6
LBB0_10:
	add	w23, w8, #1
	mov	x27, x8
LBB0_11:
	orr	w8, w23, w21
	cbnz	w8, LBB0_14
	b	LBB0_15
LBB0_12:
	mov	x23, x28
LBB0_13:
	mov	x0, x19
	mov	x1, x23
	bl	_ath10k_warn
LBB0_14:
	stp	x27, x21, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_15:
	mov	x0, x20
	bl	_kfree
	mov	w20, #0
LBB0_16:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to parse tlv: %d\n"

	.comm	_WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT,8,3 ; @WMI_TLV_TAG_STRUCT_DIAG_DATA_CONTAINER_EVENT
	.comm	_WMI_TLV_TAG_ARRAY_BYTE,8,3     ; @WMI_TLV_TAG_ARRAY_BYTE
	.comm	_EPROTO,4,2                     ; @EPROTO
l_.str.1:                               ; @.str.1
	.asciz	"failed to parse diag data: can't fit item header\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to parse diag data: item is too long\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to parse diag data event: num_items %d len %d\n"

	.no_dead_strip	_ath10k_wmi_tlv_event_diag_data
.subsections_via_symbols
