	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ath10k_qmi_ind_register_send_sync_msg
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ath10k_qmi_ind_register_send_sync_msg: ## @ath10k_qmi_ind_register_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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	8(%rdi), %r14
	movq	_ATH10K_QMI_CLIENT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,1,1]
	movaps	%xmm0, -112(%rbp)
	movl	$1, -96(%rbp)
	leaq	4(%rdi), %r12
	movq	_wlfw_ind_register_resp_msg_v01_ei@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	leaq	-80(%rbp), %rcx
	movq	%r12, %rdi
	callq	_qmi_txn_init
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	_QMI_WLFW_IND_REGISTER_REQ_V01@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_wlfw_ind_register_req_msg_v01_ei@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-112(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_qmi_send_request
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movq	_ATH10K_QMI_TIMEOUT@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	leaq	-40(%rbp), %rdi
	callq	_qmi_txn_wait
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	-64(%rbp), %rax
	movq	_QMI_RESULT_SUCCESS_V01@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	cmpq	$0, -72(%rbp)
	je	LBB0_7
## %bb.5:
	movq	_QMI_WLFW_FW_READY_V01@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -80(%rbp)
	je	LBB0_7
## %bb.6:
	movl	$1, (%r15)
LBB0_7:
	movq	_ATH10K_DBG_QMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath10k_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %ebx
	leaq	-40(%rbp), %rdi
	callq	_qmi_txn_cancel
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_err
	jmp	LBB0_12
LBB0_11:
	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_12:
	movl	%ebx, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_QMI_CLIENT_ID,4,2       ## @ATH10K_QMI_CLIENT_ID
	.comm	_wlfw_ind_register_resp_msg_v01_ei,4,2 ## @wlfw_ind_register_resp_msg_v01_ei
	.comm	_QMI_WLFW_IND_REGISTER_REQ_V01,4,2 ## @QMI_WLFW_IND_REGISTER_REQ_V01
	.comm	_WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN,4,2 ## @WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_wlfw_ind_register_req_msg_v01_ei,4,2 ## @wlfw_ind_register_req_msg_v01_ei
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to send indication registered 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	"indication request rejected: %d\n"

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

	.no_dead_strip	_ath10k_qmi_ind_register_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_ind_register_send_sync_msg
_ath10k_qmi_ind_register_send_sync_msg: ; @ath10k_qmi_ind_register_send_sync_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _ATH10K_QMI_CLIENT_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_QMI_CLIENT_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	movi.4s	v0, #1
	str	q0, [sp, #16]
	mov	w9, #1
	stp	w9, w8, [sp, #32]
	add	x22, x0, #4
Lloh3:
	adrp	x8, _wlfw_ind_register_resp_msg_v01_ei@GOTPAGE
Lloh4:
	ldr	x8, [x8, _wlfw_ind_register_resp_msg_v01_ei@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x3, sp, #48
	mov	x0, x22
	bl	_qmi_txn_init
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh6:
	adrp	x8, _QMI_WLFW_IND_REGISTER_REQ_V01@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QMI_WLFW_IND_REGISTER_REQ_V01@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _wlfw_ind_register_req_msg_v01_ei@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wlfw_ind_register_req_msg_v01_ei@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	add	x2, sp, #8
	add	x6, sp, #16
	mov	x0, x22
	mov	x1, #0
	bl	_qmi_send_request
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh15:
	adrp	x8, _ATH10K_QMI_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ATH10K_QMI_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _HZ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	mul	w1, w9, w8
	add	x0, sp, #8
	bl	_qmi_txn_wait
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldr	x8, [sp, #64]
Lloh21:
	adrp	x9, _QMI_RESULT_SUCCESS_V01@GOTPAGE
Lloh22:
	ldr	x9, [x9, _QMI_RESULT_SUCCESS_V01@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w8, [sp, #48]
Lloh24:
	adrp	x9, _QMI_WLFW_FW_READY_V01@GOTPAGE
Lloh25:
	ldr	x9, [x9, _QMI_WLFW_FW_READY_V01@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	w8, #1
	str	w8, [x20]
LBB0_7:
Lloh27:
	adrp	x8, _ATH10K_DBG_QMI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATH10K_DBG_QMI@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	w21, #0
	b	LBB0_11
LBB0_8:
	mov	x21, x0
	b	LBB0_11
LBB0_9:
	mov	x21, x0
	add	x0, sp, #8
	bl	_qmi_txn_cancel
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_err
	b	LBB0_11
LBB0_10:
	ldr	w2, [sp, #72]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_err
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_QMI_CLIENT_ID,4,2       ; @ATH10K_QMI_CLIENT_ID
	.comm	_wlfw_ind_register_resp_msg_v01_ei,4,2 ; @wlfw_ind_register_resp_msg_v01_ei
	.comm	_QMI_WLFW_IND_REGISTER_REQ_V01,4,2 ; @QMI_WLFW_IND_REGISTER_REQ_V01
	.comm	_WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN,4,2 ; @WLFW_IND_REGISTER_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_wlfw_ind_register_req_msg_v01_ei,4,2 ; @wlfw_ind_register_req_msg_v01_ei
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to send indication registered 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	"indication request rejected: %d\n"

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

	.no_dead_strip	_ath10k_qmi_ind_register_send_sync_msg
.subsections_via_symbols
