	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_qmi_cfg_send_sync_msg
_ath10k_qmi_cfg_send_sync_msg:          ## @ath10k_qmi_cfg_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	$40, %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
	callq	_ath10k_snoc_priv
	movq	(%rax), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r13
	movq	_wlfw_wlan_cfg_resp_msg_v01_ei@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	callq	_qmi_txn_init
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	$0, 72(%r13)
	movl	$1, (%r13)
	movq	(%r12), %rcx
	movq	_QMI_WLFW_MAX_NUM_CE_V01@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %rcx
	cmovlq	%rcx, %r8
	movq	%r8, 8(%r13)
	testq	%r8, %r8
	je	LBB0_11
## %bb.3:
	movq	40(%r12), %rcx
	movq	64(%r13), %rdx
	cmpq	$1, %r8
	jne	LBB0_7
## %bb.4:
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_7:
	movq	%r8, %rdi
	andq	$-2, %rdi
	movl	$36, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-20(%rcx,%rbx), %eax
	movl	%eax, -20(%rdx,%rbx)
	movups	-36(%rcx,%rbx), %xmm0
	movups	%xmm0, -36(%rdx,%rbx)
	movl	(%rcx,%rbx), %eax
	movl	%eax, (%rdx,%rbx)
	movups	-16(%rcx,%rbx), %xmm0
	movups	%xmm0, -16(%rdx,%rbx)
	addq	$2, %rsi
	addq	$40, %rbx
	cmpq	%rsi, %rdi
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	shlq	$2, %rsi
	leaq	(%rsi,%rsi,4), %rax
	movl	16(%rcx,%rax), %esi
	movl	%esi, 16(%rdx,%rax)
	movups	(%rcx,%rax), %xmm0
	movups	%xmm0, (%rdx,%rax)
LBB0_11:
	movl	$1, 16(%r13)
	movq	8(%r12), %rcx
	movq	_QMI_WLFW_MAX_NUM_SVC_V01@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	32(%r12), %rcx
	movq	56(%r13), %rdx
	movl	$8, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi), %edi
	movl	%edi, (%rdx,%rsi)
	movl	-4(%rcx,%rsi), %edi
	movl	%edi, -4(%rdx,%rsi)
	movl	-8(%rcx,%rsi), %edi
	movl	%edi, -8(%rdx,%rsi)
	addq	$12, %rsi
	decq	%rax
	jne	LBB0_13
LBB0_14:
	movl	$1, 32(%r13)
	movq	16(%r12), %rax
	movq	_QMI_WLFW_MAX_NUM_SHADOW_REG_V01@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	cmovlq	%rax, %rdx
	movq	%rdx, 40(%r13)
	movl	48(%r13), %edi
	movl	24(%r12), %esi
	shll	$2, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	_QMI_WLFW_WLAN_CFG_REQ_V01@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_wlfw_wlan_cfg_req_msg_v01_ei@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, (%rsp)
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_qmi_send_request
	testl	%eax, %eax
	js	LBB0_18
## %bb.15:
	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.16:
	movq	-64(%rbp), %rax
	movq	_QMI_RESULT_SUCCESS_V01@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.17:
	movq	_ATH10K_DBG_QMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath10k_dbg
	movq	%r13, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_21
LBB0_18:
	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_21
LBB0_20:
	movl	-56(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath10k_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movq	%r13, %rdi
	callq	_kfree
LBB0_22:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_wlfw_wlan_cfg_resp_msg_v01_ei,4,2 ## @wlfw_wlan_cfg_resp_msg_v01_ei
	.comm	_QMI_WLFW_MAX_NUM_CE_V01,8,3    ## @QMI_WLFW_MAX_NUM_CE_V01
	.comm	_QMI_WLFW_MAX_NUM_SVC_V01,8,3   ## @QMI_WLFW_MAX_NUM_SVC_V01
	.comm	_QMI_WLFW_MAX_NUM_SHADOW_REG_V01,8,3 ## @QMI_WLFW_MAX_NUM_SHADOW_REG_V01
	.comm	_QMI_WLFW_WLAN_CFG_REQ_V01,4,2  ## @QMI_WLFW_WLAN_CFG_REQ_V01
	.comm	_WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN,4,2 ## @WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_wlfw_wlan_cfg_req_msg_v01_ei,4,2 ## @wlfw_wlan_cfg_req_msg_v01_ei
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to send config request: %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	"config request rejected: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ATH10K_DBG_QMI,4,2             ## @ATH10K_DBG_QMI
L_.str.2:                               ## @.str.2
	.asciz	"qmi config request completed\n"

	.no_dead_strip	_ath10k_qmi_cfg_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_cfg_send_sync_msg
_ath10k_qmi_cfg_send_sync_msg:          ; @ath10k_qmi_cfg_send_sync_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x1
	mov	x20, x0
	bl	_ath10k_snoc_priv
	ldr	x21, [x0]
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _wlfw_wlan_cfg_resp_msg_v01_ei@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wlfw_wlan_cfg_resp_msg_v01_ei@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x3, sp, #16
	mov	x0, x21
	bl	_qmi_txn_init
	tbnz	w0, #31, LBB0_18
; %bb.2:
	str	xzr, [x19, #72]
	mov	w8, #1
	str	w8, [x19]
	ldr	x9, [x22]
Lloh6:
	adrp	x10, _QMI_WLFW_MAX_NUM_CE_V01@GOTPAGE
Lloh7:
	ldr	x10, [x10, _QMI_WLFW_MAX_NUM_CE_V01@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	csel	x9, x9, x10, lt
	str	x9, [x19, #8]
	cbz	x9, LBB0_5
; %bb.3:
	ldr	x10, [x22, #40]
	ldr	x11, [x19, #64]
	add	x10, x10, #16
	add	x11, x11, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10]
	str	w12, [x11]
	ldur	q0, [x10, #-16]
	stur	q0, [x11, #-16]
	add	x10, x10, #20
	add	x11, x11, #20
	subs	x9, x9, #1
	b.ne	LBB0_4
LBB0_5:
	str	w8, [x19, #16]
	ldr	x8, [x22, #8]
Lloh9:
	adrp	x9, _QMI_WLFW_MAX_NUM_SVC_V01@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QMI_WLFW_MAX_NUM_SVC_V01@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x9, x8, x9, lt
	str	x9, [x19, #24]
	cbz	x9, LBB0_14
; %bb.6:
	ldr	x10, [x22, #32]
	ldr	x8, [x19, #56]
	cmp	x9, #8
	b.hs	LBB0_9
; %bb.7:
	mov	x11, #0
	b	LBB0_12
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_22
LBB0_9:
	and	x11, x9, #0xfffffffffffffff8
	mov	x12, x11
	mov	x13, x8
	mov	x14, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q0, [x14]
	ldp	q3, q2, [x14, #64]
	ldp	q4, q5, [x14, #32]
	stp	q1, q0, [x13]
	stp	q4, q5, [x13, #32]
	add	x14, x14, #96
	stp	q3, q2, [x13, #64]
	add	x13, x13, #96
	subs	x12, x12, #8
	b.ne	LBB0_10
; %bb.11:
	cmp	x9, x11
	b.eq	LBB0_14
LBB0_12:
	sub	x9, x9, x11
	add	x11, x11, x11, lsl #1
	lsl	x11, x11, #2
	add	x10, x10, x11
	add	x10, x10, #8
	add	x8, x8, x11
	add	x8, x8, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	str	w11, [x8]
	ldur	d0, [x10, #-8]
	stur	d0, [x8, #-8]
	add	x10, x10, #12
	add	x8, x8, #12
	subs	x9, x9, #1
	b.ne	LBB0_13
LBB0_14:
	mov	w8, #1
	str	w8, [x19, #32]
	ldr	x8, [x22, #16]
Lloh15:
	adrp	x9, _QMI_WLFW_MAX_NUM_SHADOW_REG_V01@GOTPAGE
Lloh16:
	ldr	x9, [x9, _QMI_WLFW_MAX_NUM_SHADOW_REG_V01@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x8, x9, lt
	str	x8, [x19, #40]
	ldr	w0, [x19, #48]
	ldr	w1, [x22, #24]
	lsl	w2, w8, #2
	bl	_memcpy
Lloh18:
	adrp	x8, _QMI_WLFW_WLAN_CFG_REQ_V01@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QMI_WLFW_WLAN_CFG_REQ_V01@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
Lloh24:
	adrp	x8, _wlfw_wlan_cfg_req_msg_v01_ei@GOTPAGE
Lloh25:
	ldr	x8, [x8, _wlfw_wlan_cfg_req_msg_v01_ei@GOTPAGEOFF]
Lloh26:
	ldr	w5, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, #0
	mov	x6, x19
	bl	_qmi_send_request
	tbnz	w0, #31, LBB0_19
; %bb.15:
Lloh27:
	adrp	x8, _ATH10K_QMI_TIMEOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATH10K_QMI_TIMEOUT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _HZ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	mul	w1, w9, w8
	add	x0, sp, #8
	bl	_qmi_txn_wait
	tbnz	w0, #31, LBB0_18
; %bb.16:
	ldr	x8, [sp, #16]
Lloh33:
	adrp	x9, _QMI_RESULT_SUCCESS_V01@GOTPAGE
Lloh34:
	ldr	x9, [x9, _QMI_RESULT_SUCCESS_V01@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:
Lloh36:
	adrp	x8, _ATH10K_DBG_QMI@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ATH10K_DBG_QMI@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.2@PAGE
Lloh40:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_ath10k_dbg
	mov	x0, x19
	bl	_kfree
	mov	w23, #0
	b	LBB0_22
LBB0_18:
	mov	x23, x0
	b	LBB0_21
LBB0_19:
	mov	x23, x0
	add	x0, sp, #8
	bl	_qmi_txn_cancel
Lloh41:
	adrp	x1, l_.str@PAGE
Lloh42:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_ath10k_err
	b	LBB0_21
LBB0_20:
	ldr	w2, [sp, #24]
Lloh43:
	adrp	x1, l_.str.1@PAGE
Lloh44:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath10k_err
Lloh45:
	adrp	x8, _EINVAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_21:
	mov	x0, x19
	bl	_kfree
LBB0_22:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_wlfw_wlan_cfg_resp_msg_v01_ei,4,2 ; @wlfw_wlan_cfg_resp_msg_v01_ei
	.comm	_QMI_WLFW_MAX_NUM_CE_V01,8,3    ; @QMI_WLFW_MAX_NUM_CE_V01
	.comm	_QMI_WLFW_MAX_NUM_SVC_V01,8,3   ; @QMI_WLFW_MAX_NUM_SVC_V01
	.comm	_QMI_WLFW_MAX_NUM_SHADOW_REG_V01,8,3 ; @QMI_WLFW_MAX_NUM_SHADOW_REG_V01
	.comm	_QMI_WLFW_WLAN_CFG_REQ_V01,4,2  ; @QMI_WLFW_WLAN_CFG_REQ_V01
	.comm	_WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN,4,2 ; @WLFW_WLAN_CFG_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_wlfw_wlan_cfg_req_msg_v01_ei,4,2 ; @wlfw_wlan_cfg_req_msg_v01_ei
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to send config request: %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	"config request rejected: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ATH10K_DBG_QMI,4,2             ; @ATH10K_DBG_QMI
l_.str.2:                               ; @.str.2
	.asciz	"qmi config request completed\n"

	.no_dead_strip	_ath10k_qmi_cfg_send_sync_msg
.subsections_via_symbols
