	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_coex_run_coex
_rtw_coex_run_coex:                     ## @rtw_coex_run_coex
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_lockdep_assert_held
	movl	%ebx, 136(%r14)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rtw_coex_update_wl_link_info
	movq	%r14, %rdi
	callq	_rtw_coex_monitor_bt_enable
	cmpq	$0, 32(%r14)
	jne	LBB0_27
## %bb.1:
	cmpq	$0, 120(%r14)
	je	LBB0_2
LBB0_27:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 24(%r14)
	je	LBB0_4
## %bb.3:
	cmpq	$0, 64(%r14)
	je	LBB0_27
LBB0_4:
	movq	112(%r14), %rax
	movq	_COEX_CNT_WL_COEXRUN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
	movl	$0, 8(%r14)
	cmpq	$0, 16(%r14)
	je	LBB0_6
## %bb.5:
	movq	_COEX_WLINK_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r14)
	movq	%r14, %rdi
	callq	_rtw_coex_action_wl_under5g
	jmp	LBB0_26
LBB0_6:
	movq	_COEX_WLINK_2G1PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r14)
	movq	_COEX_SCBD_FIX2M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_rtw_coex_write_scbd
	cmpq	$0, 96(%r14)
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_rtw_coex_action_wl_only
	jmp	LBB0_26
LBB0_8:
	cmpq	$0, 88(%r14)
	je	LBB0_11
## %bb.9:
	cmpl	$0, 80(%r14)
	je	LBB0_10
LBB0_11:
	cmpq	$0, 72(%r14)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_rtw_coex_action_bt_whql_test
	jmp	LBB0_26
LBB0_13:
	cmpq	$0, 64(%r14)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_rtw_coex_action_bt_relink
	jmp	LBB0_26
LBB0_10:
	movq	%r14, %rdi
	callq	_rtw_coex_action_wl_native_lps
	jmp	LBB0_26
LBB0_15:
	cmpq	$0, 56(%r14)
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_rtw_coex_action_bt_inquiry
	jmp	LBB0_26
LBB0_17:
	movq	128(%r14), %rax
	movq	_COEX_BTSTATUS_NCON_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:
	movq	_COEX_BTSTATUS_CON_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
LBB0_19:
	cmpq	$0, 40(%r14)
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	callq	_rtw_coex_action_bt_idle
	jmp	LBB0_26
LBB0_21:
	cmpq	$0, 48(%r14)
	je	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	callq	_rtw_coex_action_wl_linkscan
	jmp	LBB0_26
LBB0_23:
	cmpq	$0, 40(%r14)
	je	LBB0_25
## %bb.24:
	movq	%r14, %rdi
	callq	_rtw_coex_action_wl_connected
	jmp	LBB0_26
LBB0_25:
	movq	%r14, %rdi
	callq	_rtw_coex_action_wl_not_connected
LBB0_26:
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_fix
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtw_coex_limited_wl            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COEX_CNT_WL_COEXRUN,8,3        ## @COEX_CNT_WL_COEXRUN
	.comm	_COEX_WLINK_5G,4,2              ## @COEX_WLINK_5G
	.comm	_COEX_WLINK_2G1PORT,4,2         ## @COEX_WLINK_2G1PORT
	.comm	_COEX_SCBD_FIX2M,4,2            ## @COEX_SCBD_FIX2M
	.comm	_COEX_BTSTATUS_NCON_IDLE,8,3    ## @COEX_BTSTATUS_NCON_IDLE
	.comm	_COEX_BTSTATUS_CON_IDLE,8,3     ## @COEX_BTSTATUS_CON_IDLE
	.no_dead_strip	_rtw_coex_run_coex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_coex_run_coex
_rtw_coex_run_coex:                     ; @rtw_coex_run_coex
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_lockdep_assert_held
	str	w20, [x19, #136]
	mov	x0, x19
	mov	x1, x20
	bl	_rtw_coex_update_wl_link_info
	mov	x0, x19
	bl	_rtw_coex_monitor_bt_enable
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_2
LBB0_5:
	ldr	x8, [x19, #112]
Lloh0:
	adrp	x9, _COEX_CNT_WL_COEXRUN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COEX_CNT_WL_COEXRUN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	str	wzr, [x19, #8]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _COEX_WLINK_5G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COEX_WLINK_5G@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #104]
	mov	x0, x19
	bl	_rtw_coex_action_wl_under5g
	b	LBB0_27
LBB0_7:
Lloh6:
	adrp	x8, _COEX_WLINK_2G1PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COEX_WLINK_2G1PORT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #104]
Lloh9:
	adrp	x8, _COEX_SCBD_FIX2M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COEX_SCBD_FIX2M@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtw_coex_write_scbd
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_rtw_coex_action_wl_only
	b	LBB0_27
LBB0_9:
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	w8, [x19, #80]
	cbz	w8, LBB0_15
LBB0_11:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_rtw_coex_action_bt_whql_test
	b	LBB0_27
LBB0_13:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_rtw_coex_action_bt_relink
	b	LBB0_27
LBB0_15:
	mov	x0, x19
	bl	_rtw_coex_action_wl_native_lps
	b	LBB0_27
LBB0_16:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_rtw_coex_action_bt_inquiry
	b	LBB0_27
LBB0_18:
	ldr	x8, [x19, #128]
Lloh12:
	adrp	x9, _COEX_BTSTATUS_NCON_IDLE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _COEX_BTSTATUS_NCON_IDLE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.19:
Lloh15:
	adrp	x9, _COEX_BTSTATUS_CON_IDLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _COEX_BTSTATUS_CON_IDLE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_22
LBB0_20:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x19
	bl	_rtw_coex_action_bt_idle
	b	LBB0_27
LBB0_22:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_rtw_coex_action_wl_linkscan
	b	LBB0_27
LBB0_24:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_26
; %bb.25:
	mov	x0, x19
	bl	_rtw_coex_action_wl_connected
	b	LBB0_27
LBB0_26:
	mov	x0, x19
	bl	_rtw_coex_action_wl_not_connected
LBB0_27:
	mov	x0, x19
	bl	_rtw_coex_set_gnt_fix
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtw_coex_limited_wl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_COEX_CNT_WL_COEXRUN,8,3        ; @COEX_CNT_WL_COEXRUN
	.comm	_COEX_WLINK_5G,4,2              ; @COEX_WLINK_5G
	.comm	_COEX_WLINK_2G1PORT,4,2         ; @COEX_WLINK_2G1PORT
	.comm	_COEX_SCBD_FIX2M,4,2            ; @COEX_SCBD_FIX2M
	.comm	_COEX_BTSTATUS_NCON_IDLE,8,3    ; @COEX_BTSTATUS_NCON_IDLE
	.comm	_COEX_BTSTATUS_CON_IDLE,8,3     ; @COEX_BTSTATUS_CON_IDLE
	.no_dead_strip	_rtw_coex_run_coex
.subsections_via_symbols
