	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fec_enet_set_coalesce
_fec_enet_set_coalesce:                 ## @fec_enet_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_FEC_QUIRK_HAS_COALESCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.3:
	movq	24(%rbx), %r15
	cmpl	$256, (%r14)                    ## imm = 0x100
	jl	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	cmpl	$256, 4(%r14)                   ## imm = 0x100
	jl	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	movl	16(%rbx), %esi
	movq	%r12, %rdi
	callq	_fec_enet_us_to_itr_clock
	cmpl	$65536, %eax                    ## imm = 0x10000
	jae	LBB0_9
## %bb.10:
	movl	12(%rbx), %esi
	movq	%r12, %rdi
	callq	_fec_enet_us_to_itr_clock
	cmpl	$65536, %eax                    ## imm = 0x10000
	jb	LBB0_11
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movups	(%r14), %xmm0
	movups	%xmm0, 4(%rbx)
	movq	%r12, %rdi
	callq	_fec_enet_itr_coal_set
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_QUIRK_HAS_COALESCE,4,2     ## @FEC_QUIRK_HAS_COALESCE
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rx coalesced frames exceed hardware limitation\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Tx coalesced frame exceed hardware limitation\n"

L_.str.2:                               ## @.str.2
	.asciz	"Rx coalesced usec exceed hardware limitation\n"

	.no_dead_strip	_fec_enet_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fec_enet_set_coalesce
_fec_enet_set_coalesce:                 ; @fec_enet_set_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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FEC_QUIRK_HAS_COALESCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FEC_QUIRK_HAS_COALESCE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x21, [x0, #24]
	ldr	w8, [x20]
	cmp	w8, #256
	b.lt	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	w8, [x20, #4]
	cmp	w8, #256
	b.lt	LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldr	w1, [x22, #16]
	mov	x0, x19
	bl	_fec_enet_us_to_itr_clock
	cmp	w0, #16, lsl #12                ; =65536
	b.hs	LBB0_8
; %bb.7:
	ldr	w1, [x22, #12]
	mov	x0, x19
	bl	_fec_enet_us_to_itr_clock
	cmp	w0, #16, lsl #12                ; =65536
	b.lo	LBB0_12
LBB0_8:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x21
	bl	_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	ret
LBB0_12:
	ldr	q0, [x20]
	stur	q0, [x22, #4]
	mov	x0, x19
	bl	_fec_enet_itr_coal_set
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_QUIRK_HAS_COALESCE,4,2     ; @FEC_QUIRK_HAS_COALESCE
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rx coalesced frames exceed hardware limitation\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Tx coalesced frame exceed hardware limitation\n"

l_.str.2:                               ; @.str.2
	.asciz	"Rx coalesced usec exceed hardware limitation\n"

	.no_dead_strip	_fec_enet_set_coalesce
.subsections_via_symbols
