	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_coex_action_freerun
_rtw_coex_action_freerun:               ## @rtw_coex_action_freerun
	.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
	cmpq	$0, 8(%rdi)
	je	LBB0_1
## %bb.7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	$1, 16(%rdi)
	cmpq	$0, 40(%rdi)
	je	LBB0_3
## %bb.2:
	movq	_COEX_MEDIA_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtw_coex_update_wl_ch_info
LBB0_3:
	movq	_COEX_SET_ANT_2G_FREERUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rtw_coex_set_ant_path
	movq	_COEX_SCBD_FIX2M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtw_coex_write_scbd
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_COEX_RSSI_HIGH
	movl	$2, %ecx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	24(%rbx), %rax
	movl	4(%rax), %edi
	callq	_COEX_RSSI_HIGH
	movl	$3, %ecx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	24(%rbx), %rax
	movl	8(%rax), %edi
	callq	_COEX_RSSI_HIGH
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	orl	$4, %ecx
LBB0_6:
	movl	(%r14), %eax
	leal	-1(%rax), %edx
	cmpl	%eax, %ecx
	cmovll	%ecx, %edx
	movq	32(%rbx), %rax
	movq	_COEX_WL_TPUT_TX@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpq	(%rcx), %rax
	sete	%sil
	movq	8(%r14,%rsi,8), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	callq	_rtw_coex_set_rf_para
	movq	%rbx, %rdi
	movl	$100, %esi
	callq	_rtw_coex_table
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$100, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtw_coex_tdma                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COEX_MEDIA_CONNECT,4,2         ## @COEX_MEDIA_CONNECT
	.comm	_COEX_SET_ANT_2G_FREERUN,4,2    ## @COEX_SET_ANT_2G_FREERUN
	.comm	_COEX_SCBD_FIX2M,4,2            ## @COEX_SCBD_FIX2M
	.comm	_COEX_WL_TPUT_TX,8,3            ## @COEX_WL_TPUT_TX
	.no_dead_strip	_rtw_coex_action_freerun
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_coex_action_freerun
_rtw_coex_action_freerun:               ; @rtw_coex_action_freerun
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0]
	mov	w8, #1
	str	w8, [x0, #16]
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _COEX_MEDIA_CONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COEX_MEDIA_CONNECT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtw_coex_update_wl_ch_info
LBB0_4:
Lloh3:
	adrp	x8, _COEX_SET_ANT_2G_FREERUN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COEX_SET_ANT_2G_FREERUN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_rtw_coex_set_ant_path
Lloh6:
	adrp	x8, _COEX_SCBD_FIX2M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COEX_SCBD_FIX2M@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_rtw_coex_write_scbd
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_COEX_RSSI_HIGH
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #2
	b	LBB0_9
LBB0_6:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #4]
	bl	_COEX_RSSI_HIGH
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #3
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_COEX_RSSI_HIGH
	cmp	x0, #0
	mov	w8, #4
	cinc	w8, w8, eq
LBB0_9:
	ldr	w9, [x20]
	sub	w10, w9, #1
	cmp	w8, w9
	csel	w8, w8, w10, lt
	ldr	x9, [x19, #32]
Lloh9:
	adrp	x10, _COEX_WL_TPUT_TX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _COEX_WL_TPUT_TX@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	mov	w11, #8
	mov	w12, #16
	cmp	x9, x10
	csel	x9, x12, x11, eq
	ldr	x9, [x20, x9]
	ldr	w1, [x9, w8, sxtw #2]
	mov	x0, x19
	bl	_rtw_coex_set_rf_para
	mov	x0, x19
	mov	w1, #100
	bl	_rtw_coex_table
	mov	x0, x19
	mov	w1, #0
	mov	w2, #100
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtw_coex_tdma
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_COEX_MEDIA_CONNECT,4,2         ; @COEX_MEDIA_CONNECT
	.comm	_COEX_SET_ANT_2G_FREERUN,4,2    ; @COEX_SET_ANT_2G_FREERUN
	.comm	_COEX_SCBD_FIX2M,4,2            ; @COEX_SCBD_FIX2M
	.comm	_COEX_WL_TPUT_TX,8,3            ; @COEX_WL_TPUT_TX
	.no_dead_strip	_rtw_coex_action_freerun
.subsections_via_symbols
