	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_tlv_put_host_mem_chunks
_ath10k_wmi_tlv_put_host_mem_chunks:    ## @ath10k_wmi_tlv_put_host_mem_chunks
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	_WMI_TLV_TAG_STRUCT_WLAN_HOST_MEMORY_CHUNK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movq	%rax, %rbx
	movl	$24, %edi
	callq	___cpu_to_le16
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, 16(%r12,%r15,2)
	movq	%rax, 8(%r12,%r15,2)
	movq	%r12, %rbx
	movq	(%r12,%r15,2), %r12
	movq	8(%r14), %rax
	movq	8(%rax,%r15), %rdi
	callq	___cpu_to_le32
	movq	%rax, 16(%r12)
	movq	8(%r14), %rax
	movq	16(%rax,%r15), %rdi
	callq	___cpu_to_le32
	movq	%rax, 8(%r12)
	movq	8(%r14), %rax
	movq	(%rax,%r15), %rdi
	callq	___cpu_to_le32
	movq	%rax, (%r12)
	movq	%rbx, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rax
	movq	16(%rax,%r15), %r8
	movq	(%rax,%r15), %rcx
	movq	8(%rax,%r15), %r9
	movq	%rcx, (%rsp)
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %ecx
	callq	_ath10k_dbg
	incq	%r13
	movslq	(%r14), %rax
	addq	$24, %r15
	cmpq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jl	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_TLV_TAG_STRUCT_WLAN_HOST_MEMORY_CHUNK,4,2 ## @WMI_TLV_TAG_STRUCT_WLAN_HOST_MEMORY_CHUNK
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wmi-tlv chunk %d len %d, addr 0x%llx, id 0x%x\n"

	.no_dead_strip	_ath10k_wmi_tlv_put_host_mem_chunks
.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_put_host_mem_chunks
_ath10k_wmi_tlv_put_host_mem_chunks:    ; @ath10k_wmi_tlv_put_host_mem_chunks
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WMI_TLV_TAG_STRUCT_WLAN_HOST_MEMORY_CHUNK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_TLV_TAG_STRUCT_WLAN_HOST_MEMORY_CHUNK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	mov	x20, x0
	mov	w0, #24
	bl	___cpu_to_le16
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x24, #0
	mov	x22, #0
	add	x25, x23, #16
Lloh3:
	adrp	x26, _ATH10K_DBG_WMI@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh5:
	adrp	x23, l_.str@PAGE
Lloh6:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	stp	x21, x20, [x25, #-8]
	ldur	x27, [x25, #-16]
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	ldr	x0, [x8, #8]
	bl	___cpu_to_le32
	str	x0, [x27, #16]
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	ldr	x0, [x8, #16]
	bl	___cpu_to_le32
	str	x0, [x27, #8]
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x24]
	bl	___cpu_to_le32
	str	x0, [x27]
	ldr	w1, [x26]
	ldr	x8, [x19, #8]
	add	x8, x8, x24
	ldp	x5, x4, [x8, #8]
	ldr	x6, [x8]
	mov	x0, x19
	mov	x2, x23
	mov	x3, x22
	bl	_ath10k_dbg
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x24, x24, #24
	add	x25, x25, #48
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_TLV_TAG_STRUCT_WLAN_HOST_MEMORY_CHUNK,4,2 ; @WMI_TLV_TAG_STRUCT_WLAN_HOST_MEMORY_CHUNK
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wmi-tlv chunk %d len %d, addr 0x%llx, id 0x%x\n"

	.no_dead_strip	_ath10k_wmi_tlv_put_host_mem_chunks
.subsections_via_symbols
