	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_btcoex_is_sco_active
_brcmf_btcoex_is_sco_active:            ## @brcmf_btcoex_is_sco_active
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_BRCMF_BT_SCO_SAMPLES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	leaq	-44(%rbp), %r12
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$27, %esi
	movq	%r12, %rdx
	callq	_brcmf_btcoex_params_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	-44(%rbp), %eax
	andl	$6, %eax
	xorl	%ecx, %ecx
	cmpl	$2, %eax
	sete	%cl
	addl	%ecx, %r15d
	cmpl	$3, %r15d
	jae	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	(%r13), %ebx
	jl	LBB0_2
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_brcmf_err
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	$1, %ebx
LBB0_8:
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMF_BT_SCO_SAMPLES,4,2       ## @BRCMF_BT_SCO_SAMPLES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioc read btc params error\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"sample[%d], btc_params 27:%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"sco/esco detected, pkt id_cnt:%d samples:%d\n"

	.comm	_TRACE,4,2                      ## @TRACE
L_.str.3:                               ## @.str.3
	.asciz	"exit: result=%d\n"

	.no_dead_strip	_brcmf_btcoex_is_sco_active
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_btcoex_is_sco_active
_brcmf_btcoex_is_sco_active:            ; @brcmf_btcoex_is_sco_active
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x23, _BRCMF_BT_SCO_SAMPLES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BRCMF_BT_SCO_SAMPLES@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x20, x0
	mov	w21, #0
	mov	w19, #0
Lloh2:
	adrp	x24, _INFO@GOTPAGE
Lloh3:
	ldr	x24, [x24, _INFO@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.1@PAGE
Lloh5:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #27
	bl	_brcmf_btcoex_params_read
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	ldr	w8, [sp, #12]
	str	x8, [sp]
	mov	x1, x22
	mov	x2, x21
	bl	_brcmf_dbg
	ldr	w8, [sp, #12]
	and	w8, w8, #0x6
	cmp	w8, #2
	cinc	w19, w19, eq
	cmp	w19, #3
	b.hs	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	ldr	w8, [x23]
	cmp	w21, w8
	b.lt	LBB0_2
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_brcmf_err
LBB0_6:
	mov	w19, #0
	b	LBB0_8
LBB0_7:
	ldr	w0, [x24]
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_brcmf_dbg
	mov	w19, #1
LBB0_8:
Lloh10:
	adrp	x8, _TRACE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_brcmf_dbg
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_BT_SCO_SAMPLES,4,2       ; @BRCMF_BT_SCO_SAMPLES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioc read btc params error\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"sample[%d], btc_params 27:%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"sco/esco detected, pkt id_cnt:%d samples:%d\n"

	.comm	_TRACE,4,2                      ; @TRACE
l_.str.3:                               ; @.str.3
	.asciz	"exit: result=%d\n"

	.no_dead_strip	_brcmf_btcoex_is_sco_active
.subsections_via_symbols
