	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_qmi_bdf_dnld_send_sync
_ath10k_qmi_bdf_dnld_send_sync:         ## @ath10k_qmi_bdf_dnld_send_sync
	.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
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	movq	8(%rbx), %rsi
	movl	%eax, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, (%r15)
	movq	$0, 48(%r15)
	movl	$1, 8(%r15)
	movl	%eax, 12(%r15)
	movq	%rcx, 16(%r15)
	movl	$1, 24(%r15)
	movq	_QMI_WLFW_MAX_DATA_SIZE_V01@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %r13d
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, 28(%r15)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, 28(%r15)
	movl	$1, 32(%r15)
	movl	%r13d, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	40(%r15), %edi
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	callq	_memcpy
	movq	_wlfw_bdf_download_resp_msg_v01_ei@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	-48(%rbp), %r12
	movq	%r12, %rsi
	leaq	-80(%rbp), %rcx
	callq	_qmi_txn_init
	testl	%eax, %eax
	js	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_QMI_WLFW_BDF_DOWNLOAD_REQ_V01@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_wlfw_bdf_download_req_msg_v01_ei@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, (%rsp)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_qmi_send_request
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ATH10K_QMI_TIMEOUT@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movq	%r12, %rdi
	callq	_qmi_txn_wait
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rax
	movq	_QMI_RESULT_SUCCESS_V01@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	28(%r15), %eax
	incl	36(%r15)
	subl	%eax, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rsi,%rax,4), %rsi
	movl	(%rbx), %eax
	jmp	LBB0_3
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_19
LBB0_13:
	movq	_ATH10K_DBG_QMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_ath10k_dbg
	movq	%r15, %rdi
	callq	_kfree
	xorl	%r14d, %r14d
	jmp	LBB0_19
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_18
LBB0_15:
	movl	%eax, %r14d
	leaq	-48(%rbp), %rdi
	callq	_qmi_txn_cancel
	jmp	LBB0_18
LBB0_17:
	movl	-72(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath10k_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_18:
	movq	%r15, %rdi
	callq	_kfree
LBB0_19:
	movl	%r14d, %eax
	addq	$72, %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	_QMI_WLFW_MAX_DATA_SIZE_V01,4,2 ## @QMI_WLFW_MAX_DATA_SIZE_V01
	.comm	_wlfw_bdf_download_resp_msg_v01_ei,4,2 ## @wlfw_bdf_download_resp_msg_v01_ei
	.comm	_QMI_WLFW_BDF_DOWNLOAD_REQ_V01,4,2 ## @QMI_WLFW_BDF_DOWNLOAD_REQ_V01
	.comm	_WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN,4,2 ## @WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_wlfw_bdf_download_req_msg_v01_ei,4,2 ## @wlfw_bdf_download_req_msg_v01_ei
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to download board data file: %d\n"

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

	.no_dead_strip	_ath10k_qmi_bdf_dnld_send_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_qmi_bdf_dnld_send_sync
_ath10k_qmi_bdf_dnld_send_sync:         ; @ath10k_qmi_bdf_dnld_send_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x0
	stp	xzr, xzr, [sp, #16]
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
	cbz	w8, LBB0_13
; %bb.2:
	ldr	x22, [x20, #8]
	movi.2s	v8, #1
Lloh3:
	adrp	x27, _WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGEOFF]
Lloh5:
	adrp	x28, _wlfw_bdf_download_req_msg_v01_ei@GOTPAGE
Lloh6:
	ldr	x28, [x28, _wlfw_bdf_download_req_msg_v01_ei@GOTPAGEOFF]
	mov	w24, #1
	mov	x26, x8
Lloh7:
	adrp	x25, _QMI_RESULT_SUCCESS_V01@GOTPAGE
Lloh8:
	ldr	x25, [x25, _QMI_RESULT_SUCCESS_V01@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	d8, [x19]
	str	xzr, [x19, #48]
	stp	w24, w8, [x19, #8]
	str	d8, [x19, #16]
	str	w24, [x19, #24]
Lloh9:
	adrp	x8, _QMI_WLFW_MAX_DATA_SIZE_V01@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QMI_WLFW_MAX_DATA_SIZE_V01@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	cmp	w26, w2
	b.ls	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w2, [x19, #28]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	stp	w26, w24, [x19, #28]
	mov	x2, x26
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #40]
	mov	x1, x22
	bl	_memcpy
Lloh12:
	adrp	x8, _wlfw_bdf_download_resp_msg_v01_ei@GOTPAGE
Lloh13:
	ldr	x8, [x8, _wlfw_bdf_download_resp_msg_v01_ei@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x1, sp, #8
	add	x3, sp, #16
	mov	x0, x21
	bl	_qmi_txn_init
	tbnz	w0, #31, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh15:
	adrp	x8, _QMI_WLFW_BDF_DOWNLOAD_REQ_V01@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QMI_WLFW_BDF_DOWNLOAD_REQ_V01@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	ldr	w4, [x27]
	ldr	w5, [x28]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, #0
	mov	x6, x19
	bl	_qmi_send_request
	tbnz	w0, #31, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh18:
	adrp	x8, _ATH10K_QMI_TIMEOUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ATH10K_QMI_TIMEOUT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _HZ@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	mul	w1, w9, w8
	add	x0, sp, #8
	bl	_qmi_txn_wait
	tbnz	w0, #31, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #28]
	ldr	w9, [x19, #36]
	add	w9, w9, #1
	str	w9, [x19, #36]
	subs	w26, w26, w8
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, x8, lsl #2
	ldr	w8, [x20]
	b	LBB0_3
LBB0_12:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_13:
Lloh27:
	adrp	x8, _ATH10K_DBG_QMI@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ATH10K_DBG_QMI@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath10k_dbg
	mov	x0, x19
	bl	_kfree
	mov	w23, #0
	b	LBB0_18
LBB0_14:
	mov	x23, x0
	b	LBB0_17
LBB0_15:
	mov	x23, x0
	add	x0, sp, #8
	bl	_qmi_txn_cancel
	b	LBB0_17
LBB0_16:
	ldr	w2, [sp, #24]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ath10k_err
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_17:
	mov	x0, x19
	bl	_kfree
LBB0_18:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QMI_WLFW_MAX_DATA_SIZE_V01,4,2 ; @QMI_WLFW_MAX_DATA_SIZE_V01
	.comm	_wlfw_bdf_download_resp_msg_v01_ei,4,2 ; @wlfw_bdf_download_resp_msg_v01_ei
	.comm	_QMI_WLFW_BDF_DOWNLOAD_REQ_V01,4,2 ; @QMI_WLFW_BDF_DOWNLOAD_REQ_V01
	.comm	_WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN,4,2 ; @WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_wlfw_bdf_download_req_msg_v01_ei,4,2 ; @wlfw_bdf_download_req_msg_v01_ei
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to download board data file: %d\n"

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

	.no_dead_strip	_ath10k_qmi_bdf_dnld_send_sync
.subsections_via_symbols
