	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_compute_rtscts_dur     ## -- Begin function brcms_c_compute_rtscts_dur
	.p2align	4, 0x90
_brcms_c_compute_rtscts_dur:            ## @brcms_c_compute_rtscts_dur
	.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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_get_sifs
	movl	%eax, %ebx
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	addl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	leal	(%rbx,%rbx,2), %r15d
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_brcms_c_calc_cts_time
	movq	%rax, %rbx
	addl	%r15d, %ebx
LBB0_3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edx
	movl	16(%rbp), %ecx
	callq	_brcms_c_calc_frame_time
	movq	%rax, %r13
	cmpl	$0, 24(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_BRCMS_SHORT_PREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_brcms_c_calc_ba_time
	jmp	LBB0_6
LBB0_5:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_brcms_c_calc_ack_time
LBB0_6:
	addl	%r13d, %ebx
	addl	%ebx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMS_SHORT_PREAMBLE,4,2       ## @BRCMS_SHORT_PREAMBLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brcms_c_compute_rtscts_dur     ; -- Begin function brcms_c_compute_rtscts_dur
	.p2align	2
_brcms_c_compute_rtscts_dur:            ; @brcms_c_compute_rtscts_dur
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x7
	mov	x23, x6
	mov	x20, x5
	mov	x24, x4
	mov	x19, x3
	mov	x25, x2
	mov	x26, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_get_sifs
	cbz	w26, LBB0_2
; %bb.1:
	lsl	w24, w0, #1
	b	LBB0_3
LBB0_2:
	add	w26, w0, w0, lsl #1
	mov	x0, x21
	mov	x1, x25
	mov	x2, x24
	bl	_brcms_c_calc_cts_time
	add	w24, w26, w0
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x23
	bl	_brcms_c_calc_frame_time
	mov	x23, x0
	cbz	w22, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _BRCMS_SHORT_PREAMBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRCMS_SHORT_PREAMBLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_brcms_c_calc_ba_time
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_brcms_c_calc_ack_time
LBB0_6:
	add	w8, w24, w23
	add	w0, w8, w0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMS_SHORT_PREAMBLE,4,2       ; @BRCMS_SHORT_PREAMBLE
.subsections_via_symbols
