	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_coex_tdma
_rtw_coex_tdma:                         ## @rtw_coex_tdma
	.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
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	_TDMA_4SLOT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%edx, %eax
	setne	%cl
	leal	(%rcx,%rcx,2), %esi
	callq	_rtw_coex_tdma_timer_base
	movl	%ebx, %r14d
	andl	$255, %r14d
	setne	%al
	cmpl	$100, %r14d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
	testl	%r12d, %r12d
	jne	LBB0_3
## %bb.1:
	cmpl	%eax, 16(%r15)
	jne	LBB0_3
## %bb.2:
	cmpl	20(%r15), %r14d
	jne	LBB0_3
## %bb.13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%edx, %edx
	movl	%eax, %r12d
	testb	%bl, %bl
	je	LBB0_6
## %bb.4:
	cmpb	$100, %bl
	je	LBB0_6
## %bb.5:
	movq	_REG_BCN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_EN_BCN_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_rtw_write8_set
	movl	$1, %edx
LBB0_6:
	movq	_COEX_SCBD_TDMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_rtw_coex_write_scbd
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.7:
	cmpl	(%r13), %r14d
	jge	LBB0_12
## %bb.8:
	movl	%r14d, %eax
	shlq	$3, %rax
	addq	16(%r13), %rax
	jmp	LBB0_11
LBB0_9:
	leal	-100(%r14), %eax
	cmpl	4(%r13), %eax
	jge	LBB0_12
## %bb.10:
	cltq
	shlq	$3, %rax
	addq	8(%r13), %rax
LBB0_11:
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	movl	12(%rax), %r8d
	movl	16(%rax), %r9d
	movq	%r15, %rdi
	callq	_rtw_coex_set_tdma
LBB0_12:
	movl	%r12d, 16(%r15)
	movl	%r14d, 20(%r15)
	movq	_RTW_DBG_COEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TDMA_4SLOT,4,2                 ## @TDMA_4SLOT
	.comm	_REG_BCN_CTRL,4,2               ## @REG_BCN_CTRL
	.comm	_BIT_EN_BCN_FUNCTION,4,2        ## @BIT_EN_BCN_FUNCTION
	.comm	_COEX_SCBD_TDMA,4,2             ## @COEX_SCBD_TDMA
	.comm	_RTW_DBG_COEX,4,2               ## @RTW_DBG_COEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"coex: coex tdma type (%d)\n"

	.no_dead_strip	_rtw_coex_tdma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_coex_tdma
_rtw_coex_tdma:                         ; @rtw_coex_tdma
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x8, _TDMA_4SLOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDMA_4SLOT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	mov	w8, #3
	csel	w1, wzr, w8, eq
	bl	_rtw_coex_tdma_timer_base
	and	x20, x21, #0xff
	cmp	w20, #0
	mov	w8, #100
	ccmp	w20, w8, #4, ne
	cset	w23, ne
	cbnz	w22, LBB0_4
; %bb.1:
	ldr	w8, [x19, #16]
	cmp	w8, w23
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19, #20]
	cmp	w20, w8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	w2, #0
	ands	w8, w21, #0xff
	b.eq	LBB0_7
; %bb.5:
	cmp	w8, #100
	b.eq	LBB0_7
; %bb.6:
Lloh3:
	adrp	x8, _REG_BCN_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_BCN_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _BIT_EN_BCN_FUNCTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BIT_EN_BCN_FUNCTION@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtw_write8_set
	mov	w2, #1
LBB0_7:
Lloh9:
	adrp	x8, _COEX_SCBD_TDMA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COEX_SCBD_TDMA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtw_coex_write_scbd
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.8:
	ldr	w8, [x24]
	cmp	w20, w8
	b.ge	LBB0_13
; %bb.9:
	ldr	x8, [x24, #16]
	add	x8, x8, w20, uxtw #3
	b	LBB0_12
LBB0_10:
	sub	x8, x20, #100
	ldr	w9, [x24, #4]
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.11:
	ldr	x9, [x24, #8]
	add	x8, x9, x8, lsl #3
LBB0_12:
	ldr	x8, [x8]
	ldp	w1, w2, [x8]
	ldp	w3, w4, [x8, #8]
	ldr	w5, [x8, #16]
	mov	x0, x19
	bl	_rtw_coex_set_tdma
LBB0_13:
	stp	w23, w20, [x19, #16]
Lloh12:
	adrp	x8, _RTW_DBG_COEX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RTW_DBG_COEX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rtw_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TDMA_4SLOT,4,2                 ; @TDMA_4SLOT
	.comm	_REG_BCN_CTRL,4,2               ; @REG_BCN_CTRL
	.comm	_BIT_EN_BCN_FUNCTION,4,2        ; @BIT_EN_BCN_FUNCTION
	.comm	_COEX_SCBD_TDMA,4,2             ; @COEX_SCBD_TDMA
	.comm	_RTW_DBG_COEX,4,2               ; @RTW_DBG_COEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"coex: coex tdma type (%d)\n"

	.no_dead_strip	_rtw_coex_tdma
.subsections_via_symbols
