	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_core_pre_cal_config
_ath10k_core_pre_cal_config:            ## @ath10k_core_pre_cal_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_ath10k_core_pre_cal_download
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_ath10k_dbg
	jmp	LBB0_8
LBB0_2:
	movq	%r14, %rdi
	callq	_ath10k_core_get_board_id_from_otp
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_ath10k_download_and_run_otp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_err
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to load pre cal data: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get board id: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to run otp: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"pre cal configuration done successfully\n"

	.no_dead_strip	_ath10k_core_pre_cal_config
.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_config
_ath10k_core_pre_cal_config:            ; @ath10k_core_pre_cal_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	bl	_ath10k_core_pre_cal_download
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ATH10K_DBG_BOOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	x19, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x20
	bl	_ath10k_dbg
	b	LBB0_8
LBB0_3:
	mov	x0, x20
	bl	_ath10k_core_get_board_id_from_otp
	cbz	w0, LBB0_5
; %bb.4:
	mov	x19, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_ath10k_download_and_run_otp
	mov	x19, x0
	cbz	w0, LBB0_9
; %bb.6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x20
	mov	x2, x19
	bl	_ath10k_err
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh9:
	adrp	x8, _ATH10K_DBG_BOOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH10K_DBG_BOOT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to load pre cal data: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get board id: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to run otp: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"pre cal configuration done successfully\n"

	.no_dead_strip	_ath10k_core_pre_cal_config
.subsections_via_symbols
