	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_iter
_ath10k_wmi_tlv_iter:                   ## @ath10k_wmi_tlv_iter
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.1:
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$7, %r12
	jbe	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %edi
	callq	___le16_to_cpu
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	___le16_to_cpu
	movq	%rax, %r15
	addq	$8, %rbx
	addq	$-8, %r12
	cmpq	%rax, %r12
	jb	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_wmi_tlv_policies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r13
	jae	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_wmi_tlv_policies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r15, %rax
	ja	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	*%r14
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	%r15, %rbx
	subq	%r15, %r12
	jne	LBB0_2
## %bb.14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_3:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	leaq	L_.str(%rip), %rdx
	movl	$8, %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	movl	%r12d, %r8d
	jmp	LBB0_4
LBB0_6:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%r15, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%ebx, %r8d
	xorl	%ebx, %ebx
	movq	%r12, %r9
	jmp	LBB0_4
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_10:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	subl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	%rax, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%ebx, %r8d
	xorl	%ebx, %ebx
	movq	%r15, %r9
LBB0_4:
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi tlv parse failure at byte %zd (%zu bytes left, %zu expected)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"wmi tlv parse failure of tag %hhu at byte %zd (%zu bytes left, %hhu expected)\n"

	.comm	_wmi_tlv_policies,8,3           ## @wmi_tlv_policies
L_.str.2:                               ## @.str.2
	.asciz	"wmi tlv parse failure of tag %hhu at byte %zd (%hhu bytes is less than min length %zu)\n"

	.no_dead_strip	_ath10k_wmi_tlv_iter
.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_iter
_ath10k_wmi_tlv_iter:                   ; @ath10k_wmi_tlv_iter
	.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
	cbz	x2, LBB0_8
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	mov	x25, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _wmi_tlv_policies@GOTPAGE
Lloh1:
	ldr	x27, [x27, _wmi_tlv_policies@GOTPAGEOFF]
	mov	x26, x1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x25, #7
	b.ls	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26, #4]
	bl	___le16_to_cpu
	mov	x24, x0
	ldr	w0, [x26], #8
	bl	___le16_to_cpu
	mov	x23, x0
	sub	x25, x25, #8
	cmp	x25, x0
	b.lo	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	x24, x0
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, x24, lsl #3]
	cmp	x8, #0
	ccmp	x8, x23, #0, ne
	b.hi	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x26
	mov	x4, x21
	blr	x22
	cbnz	w0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, x23
	subs	x25, x25, x23
	b.ne	LBB0_2
LBB0_8:
	mov	w0, #0
	b	LBB0_13
LBB0_9:
Lloh2:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	sub	x3, x26, x20
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x25
	mov	w5, #8
	b	LBB0_12
LBB0_10:
Lloh7:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	sub	w4, w26, w20
	str	x23, [sp]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	mov	x5, x25
	b	LBB0_12
LBB0_11:
Lloh12:
	adrp	x9, _ATH10K_DBG_WMI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	sub	w4, w26, w20
	str	x8, [sp]
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	mov	x5, x23
LBB0_12:
	bl	_ath10k_dbg
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi tlv parse failure at byte %zd (%zu bytes left, %zu expected)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"wmi tlv parse failure of tag %hhu at byte %zd (%zu bytes left, %hhu expected)\n"

	.comm	_wmi_tlv_policies,8,3           ; @wmi_tlv_policies
l_.str.2:                               ; @.str.2
	.asciz	"wmi tlv parse failure of tag %hhu at byte %zd (%hhu bytes is less than min length %zu)\n"

	.no_dead_strip	_ath10k_wmi_tlv_iter
.subsections_via_symbols
