	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_qmi_msa_mem_info_send_sync_msg
_ath10k_qmi_msa_mem_info_send_sync_msg: ## @ath10k_qmi_msa_mem_info_send_sync_msg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	32(%rdi), %r14
	movl	24(%rdi), %eax
	movl	%eax, -52(%rbp)
	movl	20(%rdi), %eax
	movl	%eax, -56(%rbp)
	leaq	16(%rdi), %r12
	movq	_wlfw_msa_info_resp_msg_v01_ei@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	leaq	-96(%rbp), %rcx
	movq	%r12, %rdi
	callq	_qmi_txn_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_QMI_WLFW_MSA_INFO_REQ_V01@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_wlfw_msa_info_req_msg_v01_ei@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_qmi_send_request
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	_ATH10K_QMI_TIMEOUT@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	leaq	-48(%rbp), %rdi
	callq	_qmi_txn_wait
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	-80(%rbp), %rax
	movq	_QMI_RESULT_SUCCESS_V01@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.4:
	movl	-96(%rbp), %edx
	movq	_QMI_WLFW_MAX_MEM_REG_V01@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_11
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_7:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rdi
	callq	_qmi_txn_cancel
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_err
	jmp	LBB0_15
LBB0_9:
	movl	-72(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	callq	_ath10k_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_11:
	movl	%edx, (%r15)
	testl	%edx, %edx
	jle	LBB0_14
## %bb.12:
	movl	$8, %ebx
	leaq	L_.str.3(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax
	movl	(%rax,%rbx), %ecx
	movq	8(%r15), %rdx
	leaq	(%rdx,%rbx), %r8
	movl	%ecx, (%rdx,%rbx)
	movl	-4(%rax,%rbx), %r9d
	movl	%r9d, -4(%rdx,%rbx)
	movl	-8(%rax,%rbx), %eax
	movl	%eax, -8(%rdx,%rbx)
	movq	_ATH10K_DBG_QMI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_ath10k_dbg
	incq	%r13
	movslq	-96(%rbp), %rax
	addq	$12, %rbx
	cmpq	%rax, %r13
	jl	LBB0_13
LBB0_14:
	movq	_ATH10K_DBG_QMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
LBB0_15:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wlfw_msa_info_resp_msg_v01_ei,4,2 ## @wlfw_msa_info_resp_msg_v01_ei
	.comm	_QMI_WLFW_MSA_INFO_REQ_V01,4,2  ## @QMI_WLFW_MSA_INFO_REQ_V01
	.comm	_WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN,4,2 ## @WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_wlfw_msa_info_req_msg_v01_ei,4,2 ## @wlfw_msa_info_req_msg_v01_ei
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to send msa mem info req: %d\n"

	.comm	_ATH10K_QMI_TIMEOUT,4,2         ## @ATH10K_QMI_TIMEOUT
	.comm	_HZ,4,2                         ## @HZ
	.comm	_QMI_RESULT_SUCCESS_V01,8,3     ## @QMI_RESULT_SUCCESS_V01
L_.str.1:                               ## @.str.1
	.asciz	"msa info req rejected: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QMI_WLFW_MAX_MEM_REG_V01,4,2   ## @QMI_WLFW_MAX_MEM_REG_V01
L_.str.2:                               ## @.str.2
	.asciz	"invalid memory region length received: %d\n"

	.comm	_ATH10K_DBG_QMI,4,2             ## @ATH10K_DBG_QMI
L_.str.3:                               ## @.str.3
	.asciz	"qmi msa mem region %d addr 0x%pa size 0x%x flag 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"qmi msa mem info request completed\n"

	.no_dead_strip	_ath10k_qmi_msa_mem_info_send_sync_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_qmi_msa_mem_info_send_sync_msg
_ath10k_qmi_msa_mem_info_send_sync_msg: ; @ath10k_qmi_msa_mem_info_send_sync_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	ldr	x19, [x0, #32]
	ldur	d0, [x0, #20]
	str	d0, [sp, #40]
	add	x22, x0, #16
Lloh0:
	adrp	x8, _wlfw_msa_info_resp_msg_v01_ei@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wlfw_msa_info_resp_msg_v01_ei@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #32
	add	x3, sp, #48
	mov	x0, x22
	bl	_qmi_txn_init
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _QMI_WLFW_MSA_INFO_REQ_V01@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QMI_WLFW_MSA_INFO_REQ_V01@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _wlfw_msa_info_req_msg_v01_ei@GOTPAGE
Lloh10:
	ldr	x8, [x8, _wlfw_msa_info_req_msg_v01_ei@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	add	x2, sp, #32
	add	x6, sp, #40
	mov	x0, x22
	mov	x1, #0
	bl	_qmi_send_request
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh12:
	adrp	x8, _ATH10K_QMI_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ATH10K_QMI_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _HZ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mul	w1, w9, w8
	add	x0, sp, #32
	bl	_qmi_txn_wait
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	x8, [sp, #64]
Lloh18:
	adrp	x9, _QMI_RESULT_SUCCESS_V01@GOTPAGE
Lloh19:
	ldr	x9, [x9, _QMI_RESULT_SUCCESS_V01@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	w2, [sp, #48]
Lloh21:
	adrp	x8, _QMI_WLFW_MAX_MEM_REG_V01@GOTPAGE
Lloh22:
	ldr	x8, [x8, _QMI_WLFW_MAX_MEM_REG_V01@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w2, w8
	b.le	LBB0_10
; %bb.5:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	x21, x0
	b	LBB0_14
LBB0_7:
	mov	x21, x0
	add	x0, sp, #32
	bl	_qmi_txn_cancel
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_err
	b	LBB0_14
LBB0_8:
	ldr	w2, [sp, #72]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_ath10k_err
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_10:
	str	w2, [x20]
Lloh33:
	adrp	x22, _ATH10K_DBG_QMI@GOTPAGE
Lloh34:
	ldr	x22, [x22, _ATH10K_DBG_QMI@GOTPAGEOFF]
	cmp	w2, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x23, #0
	mov	x24, #0
Lloh35:
	adrp	x21, l_.str.3@PAGE
Lloh36:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #56]
	ldr	x9, [x20, #8]
	add	x9, x9, x23
	add	x10, x9, #8
	add	x8, x8, x23
	ldur	d0, [x8, #4]
	stur	d0, [x9, #4]
	ldr	w8, [x8]
	str	w8, [x9]
	ldr	w1, [x22]
	fmov	w9, s0
	stp	x9, x8, [sp, #16]
	stp	x24, x10, [sp]
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_dbg
	add	x24, x24, #1
	ldrsw	x8, [sp, #48]
	add	x23, x23, #12
	cmp	x24, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	w1, [x22]
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	w21, #0
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_wlfw_msa_info_resp_msg_v01_ei,4,2 ; @wlfw_msa_info_resp_msg_v01_ei
	.comm	_QMI_WLFW_MSA_INFO_REQ_V01,4,2  ; @QMI_WLFW_MSA_INFO_REQ_V01
	.comm	_WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN,4,2 ; @WLFW_MSA_INFO_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_wlfw_msa_info_req_msg_v01_ei,4,2 ; @wlfw_msa_info_req_msg_v01_ei
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to send msa mem info req: %d\n"

	.comm	_ATH10K_QMI_TIMEOUT,4,2         ; @ATH10K_QMI_TIMEOUT
	.comm	_HZ,4,2                         ; @HZ
	.comm	_QMI_RESULT_SUCCESS_V01,8,3     ; @QMI_RESULT_SUCCESS_V01
l_.str.1:                               ; @.str.1
	.asciz	"msa info req rejected: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QMI_WLFW_MAX_MEM_REG_V01,4,2   ; @QMI_WLFW_MAX_MEM_REG_V01
l_.str.2:                               ; @.str.2
	.asciz	"invalid memory region length received: %d\n"

	.comm	_ATH10K_DBG_QMI,4,2             ; @ATH10K_DBG_QMI
l_.str.3:                               ; @.str.3
	.asciz	"qmi msa mem region %d addr 0x%pa size 0x%x flag 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"qmi msa mem info request completed\n"

	.no_dead_strip	_ath10k_qmi_msa_mem_info_send_sync_msg
.subsections_via_symbols
