	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_set_coalesce
_bcm_sysport_set_coalesce:              ## @bcm_sysport_set_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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	_RING_INTR_THRESH_MASK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_4
## %bb.1:
	movl	8(%r12), %ecx
	movq	_RING_TIMEOUT_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leal	1(,%rdx,8), %edx
	cmpl	%edx, %ecx
	jg	LBB0_4
## %bb.2:
	movq	16(%r12), %rdx
	movq	_RDMA_INTR_THRESH_MASK@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jg	LBB0_4
## %bb.3:
	movl	24(%r12), %esi
	movq	_RDMA_TIMEOUT_MASK@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	leal	1(,%rdi,8), %edi
	cmpl	%edi, %esi
	jg	LBB0_4
## %bb.5:
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.6:
	testq	%rax, %rax
	je	LBB0_4
LBB0_7:
	testl	%esi, %esi
	jne	LBB0_9
## %bb.8:
	testq	%rdx, %rdx
	je	LBB0_4
LBB0_9:
	cmpq	$0, 40(%r12)
	je	LBB0_10
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, (%r15)
	je	LBB0_14
## %bb.11:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	addq	%r13, %rdi
	movq	%r12, %rsi
	callq	_bcm_sysport_set_tx_coalesce
	incq	%rbx
	movl	(%r15), %eax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jb	LBB0_12
## %bb.13:
	movl	24(%r12), %esi
	movq	16(%r12), %rdx
LBB0_14:
	movl	%esi, (%r14)
	movl	%edx, 4(%r14)
	movq	32(%r12), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	cmpq	$0, 8(%r14)
	jne	LBB0_18
## %bb.17:
	movl	16(%r14), %edi
	callq	_net_dim_get_def_rx_moderation
	movq	%rax, %rsi
	movq	%rax, %rdx
	shrq	$32, %rdx
	movq	32(%r12), %rax
	jmp	LBB0_18
LBB0_15:
	xorl	%eax, %eax
LBB0_18:
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_bcm_sysport_set_rx_coalesce
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_INTR_THRESH_MASK,8,3      ## @RING_INTR_THRESH_MASK
	.comm	_RING_TIMEOUT_MASK,4,2          ## @RING_TIMEOUT_MASK
	.comm	_RDMA_INTR_THRESH_MASK,8,3      ## @RDMA_INTR_THRESH_MASK
	.comm	_RDMA_TIMEOUT_MASK,4,2          ## @RDMA_TIMEOUT_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bcm_sysport_set_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_coalesce
_bcm_sysport_set_coalesce:              ; @bcm_sysport_set_coalesce
	.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	x20, x1
	mov	x21, x0
	bl	_netdev_priv
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _RING_INTR_THRESH_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RING_INTR_THRESH_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_9
; %bb.1:
	ldr	w9, [x20, #8]
Lloh3:
	adrp	x10, _RING_TIMEOUT_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RING_TIMEOUT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mov	w11, #1
	bfi	w11, w10, #3, #29
	cmp	w9, w11
	b.gt	LBB0_9
; %bb.2:
	ldr	x2, [x20, #16]
Lloh6:
	adrp	x10, _RDMA_INTR_THRESH_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RDMA_INTR_THRESH_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x2, x10
	b.gt	LBB0_9
; %bb.3:
	ldr	w1, [x20, #24]
Lloh9:
	adrp	x10, _RDMA_TIMEOUT_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RDMA_TIMEOUT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	mov	w11, #1
	bfi	w11, w10, #3, #29
	cmp	w1, w11
	b.gt	LBB0_9
; %bb.4:
	mov	x19, x0
	cbnz	w9, LBB0_6
; %bb.5:
	cbz	x8, LBB0_9
LBB0_6:
	cbnz	w1, LBB0_8
; %bb.7:
	cbz	x2, LBB0_9
LBB0_8:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	ldr	w8, [x21]
	cbz	w8, LBB0_15
; %bb.12:
	mov	x22, #0
	mov	x23, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x22
	mov	x1, x20
	bl	_bcm_sysport_set_tx_coalesce
	add	x23, x23, #1
	ldr	w8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lo	LBB0_13
; %bb.14:
	ldr	w1, [x20, #24]
	ldr	x2, [x20, #16]
LBB0_15:
	stp	w1, w2, [x19]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_18
; %bb.16:
	ldr	x9, [x19, #8]
	cbnz	x9, LBB0_18
; %bb.17:
	ldr	w0, [x19, #16]
	bl	_net_dim_get_def_rx_moderation
	mov	x1, x0
	lsr	x2, x0, #32
	ldr	x8, [x20, #32]
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
LBB0_18:
	str	x8, [x19, #8]
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_bcm_sysport_set_rx_coalesce
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_INTR_THRESH_MASK,8,3      ; @RING_INTR_THRESH_MASK
	.comm	_RING_TIMEOUT_MASK,4,2          ; @RING_TIMEOUT_MASK
	.comm	_RDMA_INTR_THRESH_MASK,8,3      ; @RDMA_INTR_THRESH_MASK
	.comm	_RDMA_TIMEOUT_MASK,4,2          ; @RDMA_TIMEOUT_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bcm_sysport_set_coalesce
.subsections_via_symbols
