	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_core_pre_cal_download
_ath10k_core_pre_cal_download:          ## @ath10k_core_pre_cal_download
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %esi
	callq	_ath10k_download_cal_file
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_ath10k_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath10k_download_cal_dt
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_ath10k_dbg
	jmp	LBB0_5
LBB0_1:
	movq	_ATH10K_PRE_CAL_MODE_FILE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ATH10K_PRE_CAL_MODE_DT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	movl	%edi, (%r14)
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_ath10k_cal_mode_str
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_ath10k_dbg
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_PRE_CAL_MODE_FILE,4,2   ## @ATH10K_PRE_CAL_MODE_FILE
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"boot did not find a pre calibration file, try DT next: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"qcom,ath10k-pre-calibration-data"

L_.str.2:                               ## @.str.2
	.asciz	"unable to load pre cal data from DT: %d\n"

	.comm	_ATH10K_PRE_CAL_MODE_DT,4,2     ## @ATH10K_PRE_CAL_MODE_DT
L_.str.3:                               ## @.str.3
	.asciz	"boot using calibration mode %s\n"

	.no_dead_strip	_ath10k_core_pre_cal_download
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_core_pre_cal_download
_ath10k_core_pre_cal_download:          ; @ath10k_core_pre_cal_download
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	ldr	w1, [x0, #4]
	bl	_ath10k_download_cal_file
Lloh0:
	adrp	x21, _ATH10K_DBG_BOOT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATH10K_DBG_BOOT@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x3, x0
	ldr	w1, [x21]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_download_cal_dt
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	w1, [x21]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_ath10k_dbg
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _ATH10K_PRE_CAL_MODE_FILE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ATH10K_PRE_CAL_MODE_FILE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ATH10K_PRE_CAL_MODE_DT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH10K_PRE_CAL_MODE_DT@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	str	w0, [x19]
	ldr	w20, [x21]
	bl	_ath10k_cal_mode_str
	mov	x3, x0
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_ath10k_dbg
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_PRE_CAL_MODE_FILE,4,2   ; @ATH10K_PRE_CAL_MODE_FILE
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"boot did not find a pre calibration file, try DT next: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"qcom,ath10k-pre-calibration-data"

l_.str.2:                               ; @.str.2
	.asciz	"unable to load pre cal data from DT: %d\n"

	.comm	_ATH10K_PRE_CAL_MODE_DT,4,2     ; @ATH10K_PRE_CAL_MODE_DT
l_.str.3:                               ; @.str.3
	.asciz	"boot using calibration mode %s\n"

	.no_dead_strip	_ath10k_core_pre_cal_download
.subsections_via_symbols
