	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_core_get_ext_board_id_from_otp
_ath10k_core_get_ext_board_id_from_otp: ## @ath10k_core_get_ext_board_id_from_otp
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %r8d
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.3:
	movl	12(%r14), %r15d
	movq	_ATH10K_DBG_BOOT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ath10k_bmi_fast_download
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath10k_warn
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	movq	_BMI_PARAM_GET_EXT_BOARD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_ath10k_bmi_execute
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_err
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-36(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.10:
	movq	_ATH10K_BMI_EBOARD_ID_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%ecx, %r15d
	movl	(%r12), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movl	%r15d, (%r14)
	jmp	LBB0_11
LBB0_9:
	movl	(%r12), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_dbg
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to retrieve extended board id due to otp binary missing\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_ATH10K_DBG_BOOT,4,2            ## @ATH10K_DBG_BOOT
L_.str.1:                               ## @.str.1
	.asciz	"boot upload otp to 0x%x len %zd for ext board id\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not write otp for ext board id check: %d\n"

	.comm	_BMI_PARAM_GET_EXT_BOARD_ID,4,2 ## @BMI_PARAM_GET_EXT_BOARD_ID
L_.str.3:                               ## @.str.3
	.asciz	"could not execute otp for ext board id check: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"ext board id does not exist in otp, ignore it\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ATH10K_BMI_EBOARD_ID_STATUS_MASK,4,2 ## @ATH10K_BMI_EBOARD_ID_STATUS_MASK
L_.str.5:                               ## @.str.5
	.asciz	"boot get otp ext board id result 0x%08x ext_board_id %d\n"

	.no_dead_strip	_ath10k_core_get_ext_board_id_from_otp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_core_get_ext_board_id_from_otp
_ath10k_core_get_ext_board_id_from_otp: ; @ath10k_core_get_ext_board_id_from_otp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w21, [x19, #12]
Lloh0:
	adrp	x22, _ATH10K_DBG_BOOT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ATH10K_DBG_BOOT@GOTPAGEOFF]
	ldr	w1, [x22]
	stp	x21, x8, [sp]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	ldp	w3, w2, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_ath10k_bmi_fast_download
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh8:
	adrp	x8, _ENODATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _BMI_PARAM_GET_EXT_BOARD_ID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BMI_PARAM_GET_EXT_BOARD_ID@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #28
	mov	x0, x19
	mov	x1, x21
	bl	_ath10k_bmi_execute
	cbz	w0, LBB0_10
; %bb.7:
	mov	x20, x0
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_err
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	ldr	w8, [sp, #28]
	cbz	w8, LBB0_12
; %bb.11:
Lloh15:
	adrp	x9, _ATH10K_BMI_EBOARD_ID_STATUS_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ATH10K_BMI_EBOARD_ID_STATUS_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w21, w9, w8
	ldr	w1, [x22]
	stp	x8, x21, [sp]
Lloh18:
	adrp	x2, l_.str.5@PAGE
Lloh19:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
	mov	w20, #0
	str	w21, [x19]
	b	LBB0_9
LBB0_12:
	ldr	w1, [x22]
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
Lloh22:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to retrieve extended board id due to otp binary missing\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_ATH10K_DBG_BOOT,4,2            ; @ATH10K_DBG_BOOT
l_.str.1:                               ; @.str.1
	.asciz	"boot upload otp to 0x%x len %zd for ext board id\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not write otp for ext board id check: %d\n"

	.comm	_BMI_PARAM_GET_EXT_BOARD_ID,4,2 ; @BMI_PARAM_GET_EXT_BOARD_ID
l_.str.3:                               ; @.str.3
	.asciz	"could not execute otp for ext board id check: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"ext board id does not exist in otp, ignore it\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ATH10K_BMI_EBOARD_ID_STATUS_MASK,4,2 ; @ATH10K_BMI_EBOARD_ID_STATUS_MASK
l_.str.5:                               ; @.str.5
	.asciz	"boot get otp ext board id result 0x%08x ext_board_id %d\n"

	.no_dead_strip	_ath10k_core_get_ext_board_id_from_otp
.subsections_via_symbols
