	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_set_coalesce
_rtl_set_coalesce:                      ## @rtl_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r12
	movl	12(%rbx), %r14d
	movl	8(%rbx), %r15d
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %ebx
	movq	%r12, %rdi
	callq	_rtl_is_8125
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
LBB0_10:
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_2:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r14d
	movl	%r15d, %edi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	callq	_max
	imull	$1000, %eax, %esi               ## imm = 0x3E8
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	callq	_rtl_coalesce_choose_scale
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_PTR_ERR
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_RTL_COALESCE_FRAME_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	$1, %edi
	cmovel	%eax, %edi
	cmpl	%ecx, %edi
	jg	LBB0_9
## %bb.5:
	movl	%edi, %edx
	andl	$3, %edx
	jne	LBB0_9
## %bb.6:
	xorl	%esi, %esi
	cmpl	$1, %ebx
	cmovnel	%ebx, %esi
	cmpl	%ecx, %esi
	jg	LBB0_9
## %bb.7:
	movl	%esi, %ecx
	andl	$3, %ecx
	jne	LBB0_9
## %bb.8:
	movq	_RTL_COALESCE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	imull	$1000, %r14d, %eax              ## imm = 0x3E8
	movq	(%r13), %r8
	cltd
	idivl	(%r8)
	movl	%eax, %ebx
	shll	%cl, %ebx
	sarl	$2, %edi
	imull	$1000, %r15d, %eax              ## imm = 0x3E8
	cltd
	idivl	4(%r8)
	orl	%ebx, %edi
	shll	%cl, %edi
	orl	%eax, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	sarl	$2, %esi
	orl	%edi, %esi
	movq	%r12, %rdi
	movl	%esi, %r15d
	callq	_rtl_lock_work
	movq	_IntrMitigate@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_swab16
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_RTL_W16
	movq	_INTT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%r12), %edx
	orl	-52(%rbp), %edx
	movl	%edx, (%r12)
	movq	_CPlusCmd@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_RTL_W16
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_RTL_R16
	movq	%r12, %rdi
	callq	_rtl_unlock_work
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_RTL_COALESCE_FRAME_MAX,4,2     ## @RTL_COALESCE_FRAME_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RTL_COALESCE_SHIFT,4,2         ## @RTL_COALESCE_SHIFT
	.comm	_IntrMitigate,4,2               ## @IntrMitigate
	.comm	_INTT_MASK,4,2                  ## @INTT_MASK
	.comm	_CPlusCmd,4,2                   ## @CPlusCmd
	.no_dead_strip	_rtl_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_set_coalesce
_rtl_set_coalesce:                      ; @rtl_set_coalesce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	ldp	w21, w24, [x20, #8]
	ldp	w20, w23, [x20]
	bl	_rtl_is_8125
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_max
	mov	w8, #1000
	mul	w1, w0, w8
	add	x2, sp, #12
	mov	x0, x22
	bl	_rtl_coalesce_choose_scale
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x22
	bl	_PTR_ERR
LBB0_5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
Lloh2:
	adrp	x8, _RTL_COALESCE_FRAME_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTL_COALESCE_FRAME_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
	cmp	w24, #1
	csel	w8, wzr, w24, eq
	and	w9, w8, #0x3
	cmp	w8, w10
	ccmp	w9, #0, #0, le
	b.ne	LBB0_8
; %bb.7:
	cmp	w23, #1
	csel	w9, wzr, w23, eq
	and	w11, w9, #0x3
	cmp	w9, w10
	ccmp	w11, #0, #0, le
	b.eq	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
Lloh7:
	adrp	x10, _RTL_COALESCE_SHIFT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _RTL_COALESCE_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	mov	w11, #1000
	mul	w12, w21, w11
	ldr	x13, [x22]
	ldp	w14, w13, [x13]
	sdiv	w12, w12, w14
	lsl	w12, w12, w10
	orr	w8, w12, w8, asr #2
	mul	w11, w20, w11
	sdiv	w11, w11, w13
	lsl	w8, w8, w10
	orr	w8, w8, w11
	lsl	w8, w8, w10
	orr	w20, w8, w9, asr #2
	mov	x0, x19
	bl	_rtl_lock_work
Lloh10:
	adrp	x8, _IntrMitigate@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IntrMitigate@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_swab16
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_RTL_W16
	ldr	w8, [x19]
Lloh13:
	adrp	x9, _INTT_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INTT_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	bic	w8, w8, w9
	ldr	w9, [sp, #12]
	orr	w2, w8, w9
	str	w2, [x19]
Lloh16:
	adrp	x20, _CPlusCmd@GOTPAGE
Lloh17:
	ldr	x20, [x20, _CPlusCmd@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_RTL_W16
	ldr	w1, [x20]
	mov	x0, x19
	bl	_RTL_R16
	mov	x0, x19
	bl	_rtl_unlock_work
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_RTL_COALESCE_FRAME_MAX,4,2     ; @RTL_COALESCE_FRAME_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RTL_COALESCE_SHIFT,4,2         ; @RTL_COALESCE_SHIFT
	.comm	_IntrMitigate,4,2               ; @IntrMitigate
	.comm	_INTT_MASK,4,2                  ; @INTT_MASK
	.comm	_CPlusCmd,4,2                   ; @CPlusCmd
	.no_dead_strip	_rtl_set_coalesce
.subsections_via_symbols
