	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_coex_check_rfk
_rtw_coex_check_rfk:                    ## @rtw_coex_check_rfk
	.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
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.2:
	cmpl	$255, 8(%r15)
	je	LBB0_8
## %bb.3:
	movq	_COEX_RFK_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_COEX_MIN_DELAY@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	cmpl	$2, %eax
	movl	$1, %r13d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmovgel	%eax, %r13d
	xorl	%r14d, %r14d
	movq	_BIT_WL_RFK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_rtw_coex_read_scbd
	movl	%eax, %ebx
	movq	_COEX_SCBD_BT_RFK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_REG_ARFR4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rtw_read8
	andl	(%r12), %eax
	orl	%ebx, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_COEX_MIN_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	incl	%r14d
	cmpl	%r14d, %r13d
	jne	LBB0_4
	jmp	LBB0_7
LBB0_6:
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jl	LBB0_8
LBB0_7:
	movl	$255, 8(%r15)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COEX_RFK_TIMEOUT,4,2           ## @COEX_RFK_TIMEOUT
	.comm	_COEX_MIN_DELAY,4,2             ## @COEX_MIN_DELAY
	.comm	_COEX_SCBD_BT_RFK,4,2           ## @COEX_SCBD_BT_RFK
	.comm	_REG_ARFR4,4,2                  ## @REG_ARFR4
	.comm	_BIT_WL_RFK,4,2                 ## @BIT_WL_RFK
	.no_dead_strip	_rtw_coex_check_rfk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_coex_check_rfk
_rtw_coex_check_rfk:                    ; @rtw_coex_check_rfk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, #255
	b.eq	LBB0_8
; %bb.3:
	mov	w20, #0
Lloh0:
	adrp	x8, _COEX_RFK_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COEX_RFK_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _COEX_MIN_DELAY@GOTPAGE
Lloh4:
	ldr	x21, [x21, _COEX_MIN_DELAY@GOTPAGEOFF]
	ldr	w9, [x21]
	sdiv	w22, w8, w9
	cmp	w22, #1
	csinc	w23, w22, wzr, gt
Lloh5:
	adrp	x24, _COEX_SCBD_BT_RFK@GOTPAGE
Lloh6:
	ldr	x24, [x24, _COEX_SCBD_BT_RFK@GOTPAGEOFF]
Lloh7:
	adrp	x25, _REG_ARFR4@GOTPAGE
Lloh8:
	ldr	x25, [x25, _REG_ARFR4@GOTPAGEOFF]
Lloh9:
	adrp	x26, _BIT_WL_RFK@GOTPAGE
Lloh10:
	ldr	x26, [x26, _BIT_WL_RFK@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_rtw_coex_read_scbd
	ldr	w8, [x24]
	and	w27, w8, w0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_rtw_read8
	ldr	w8, [x26]
	and	w8, w8, w0
	orr	w8, w27, w8
	cbz	w8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	bl	_mdelay
	add	w20, w20, #1
	cmp	w23, w20
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	cmp	w20, w22
	b.lt	LBB0_8
LBB0_7:
	mov	w8, #255
	str	w8, [x19, #8]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COEX_RFK_TIMEOUT,4,2           ; @COEX_RFK_TIMEOUT
	.comm	_COEX_MIN_DELAY,4,2             ; @COEX_MIN_DELAY
	.comm	_COEX_SCBD_BT_RFK,4,2           ; @COEX_SCBD_BT_RFK
	.comm	_REG_ARFR4,4,2                  ; @REG_ARFR4
	.comm	_BIT_WL_RFK,4,2                 ; @BIT_WL_RFK
	.no_dead_strip	_rtw_coex_check_rfk
.subsections_via_symbols
