	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_set_tx_coalesce
_bcm_sysport_set_tx_coalesce:           ## @bcm_sysport_set_tx_coalesce
	.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
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movl	(%rdi), %edi
	callq	_TDMA_DESC_RING_INTR_CONTROL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_tdma_readl
	movq	_RING_INTR_THRESH_MASK@GOTPCREL(%rip), %rdx
	movq	_RING_TIMEOUT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_RING_TIMEOUT_SHIFT@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	shll	%cl, %ebx
	orl	(%rdx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	orl	(%r12), %ebx
	imull	$1000, 4(%r12), %edi            ## imm = 0x3E8
	movl	$8192, %esi                     ## imm = 0x2000
	callq	_DIV_ROUND_UP
	movb	(%r13), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movl	(%r15), %edi
	callq	_TDMA_DESC_RING_INTR_CONTROL
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tdma_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_INTR_THRESH_MASK,4,2      ## @RING_INTR_THRESH_MASK
	.comm	_RING_TIMEOUT_MASK,4,2          ## @RING_TIMEOUT_MASK
	.comm	_RING_TIMEOUT_SHIFT,4,2         ## @RING_TIMEOUT_SHIFT
	.no_dead_strip	_bcm_sysport_set_tx_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sysport_set_tx_coalesce
_bcm_sysport_set_tx_coalesce:           ; @bcm_sysport_set_tx_coalesce
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
	bl	_TDMA_DESC_RING_INTR_CONTROL
	mov	x1, x0
	mov	x0, x21
	bl	_tdma_readl
Lloh0:
	adrp	x8, _RING_INTR_THRESH_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RING_INTR_THRESH_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RING_TIMEOUT_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RING_TIMEOUT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x22, _RING_TIMEOUT_SHIFT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _RING_TIMEOUT_SHIFT@GOTPAGEOFF]
	ldr	w10, [x22]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldp	w9, w10, [x19]
	orr	w19, w8, w9
	mov	w8, #1000
	mul	w0, w10, w8
	mov	w1, #8192
	bl	_DIV_ROUND_UP
	ldr	w8, [x22]
	lsl	w8, w0, w8
	orr	w19, w19, w8
	ldr	w0, [x20]
	bl	_TDMA_DESC_RING_INTR_CONTROL
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tdma_writel
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_INTR_THRESH_MASK,4,2      ; @RING_INTR_THRESH_MASK
	.comm	_RING_TIMEOUT_MASK,4,2          ; @RING_TIMEOUT_MASK
	.comm	_RING_TIMEOUT_SHIFT,4,2         ; @RING_TIMEOUT_SHIFT
	.no_dead_strip	_bcm_sysport_set_tx_coalesce
.subsections_via_symbols
