	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlgmac_ethtool_set_coalesce
_xlgmac_ethtool_set_coalesce:           ## @xlgmac_ethtool_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	cmpq	$0, 160(%rbx)
	jne	LBB0_19
## %bb.1:
	cmpq	$0, 152(%rbx)
	jne	LBB0_19
## %bb.2:
	cmpq	$0, 144(%rbx)
	jne	LBB0_19
## %bb.3:
	cmpq	$0, 136(%rbx)
	jne	LBB0_19
## %bb.4:
	cmpq	$0, 128(%rbx)
	jne	LBB0_19
## %bb.5:
	cmpq	$0, 120(%rbx)
	jne	LBB0_19
## %bb.6:
	cmpq	$0, 112(%rbx)
	jne	LBB0_19
## %bb.7:
	cmpq	$0, 104(%rbx)
	jne	LBB0_19
## %bb.8:
	cmpq	$0, 96(%rbx)
	jne	LBB0_19
## %bb.9:
	cmpq	$0, 88(%rbx)
	jne	LBB0_19
## %bb.10:
	cmpq	$0, 80(%rbx)
	jne	LBB0_19
## %bb.11:
	cmpq	$0, 72(%rbx)
	jne	LBB0_19
## %bb.12:
	cmpq	$0, 64(%rbx)
	jne	LBB0_19
## %bb.13:
	cmpq	$0, 56(%rbx)
	jne	LBB0_19
## %bb.14:
	cmpq	$0, 48(%rbx)
	jne	LBB0_19
## %bb.15:
	cmpq	$0, 40(%rbx)
	jne	LBB0_19
## %bb.16:
	cmpq	$0, 32(%rbx)
	jne	LBB0_19
## %bb.17:
	cmpq	$0, 24(%rbx)
	jne	LBB0_19
## %bb.18:
	cmpq	$0, 16(%rbx)
	je	LBB0_21
LBB0_19:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_20:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	*24(%rax)
	movq	_XLGMAC_MAX_DMA_RIWT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_24
## %bb.22:
	movq	_XLGMAC_MIN_DMA_RIWT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_24
## %bb.23:
	movl	4(%rbx), %ecx
	cmpl	(%r14), %ecx
	ja	LBB0_24
## %bb.25:
	movl	8(%rbx), %ebx
	cmpl	4(%r14), %ebx
	jbe	LBB0_26
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_26:
	movl	%eax, 8(%r14)
	movl	%r15d, 12(%r14)
	movl	%ecx, 16(%r14)
	movq	%r14, %rdi
	callq	*40(%r14)
	movl	%ebx, 20(%r14)
	movq	%r14, %rdi
	callq	*32(%r14)
	xorl	%eax, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_XLGMAC_MAX_DMA_RIWT,4,2        ## @XLGMAC_MAX_DMA_RIWT
	.comm	_XLGMAC_MIN_DMA_RIWT,4,2        ## @XLGMAC_MIN_DMA_RIWT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xlgmac_ethtool_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlgmac_ethtool_set_coalesce
_xlgmac_ethtool_set_coalesce:           ; @xlgmac_ethtool_set_coalesce
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_netdev_priv
	ldr	x8, [x19, #160]
	cbnz	x8, LBB0_19
; %bb.1:
	ldr	x8, [x19, #152]
	cbnz	x8, LBB0_19
; %bb.2:
	ldr	x8, [x19, #144]
	cbnz	x8, LBB0_19
; %bb.3:
	ldr	x8, [x19, #136]
	cbnz	x8, LBB0_19
; %bb.4:
	ldr	x8, [x19, #128]
	cbnz	x8, LBB0_19
; %bb.5:
	ldr	x8, [x19, #120]
	cbnz	x8, LBB0_19
; %bb.6:
	ldr	x8, [x19, #112]
	cbnz	x8, LBB0_19
; %bb.7:
	ldr	x8, [x19, #104]
	cbnz	x8, LBB0_19
; %bb.8:
	ldr	x8, [x19, #96]
	cbnz	x8, LBB0_19
; %bb.9:
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_19
; %bb.10:
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_19
; %bb.11:
	ldr	x8, [x19, #72]
	cbnz	x8, LBB0_19
; %bb.12:
	ldr	x8, [x19, #64]
	cbnz	x8, LBB0_19
; %bb.13:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_19
; %bb.14:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_19
; %bb.15:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_19
; %bb.16:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_19
; %bb.17:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_19
; %bb.18:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_22
LBB0_19:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	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
	add	sp, sp, #64
	ret
LBB0_22:
	ldr	w20, [x19]
	ldr	x8, [x0, #24]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x1, x20
	blr	x8
Lloh2:
	adrp	x8, _XLGMAC_MAX_DMA_RIWT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XLGMAC_MAX_DMA_RIWT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hi	LBB0_26
; %bb.23:
Lloh5:
	adrp	x8, _XLGMAC_MIN_DMA_RIWT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XLGMAC_MIN_DMA_RIWT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lo	LBB0_26
; %bb.24:
	ldr	w8, [x19, #4]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9]
	cmp	w8, w9
	b.hi	LBB0_26
; %bb.25:
	ldr	w21, [x19, #8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w9, [x9, #4]
	cmp	w21, w9
	b.ls	LBB0_27
LBB0_26:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_20
LBB0_27:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	stp	w0, w20, [x19, #8]
	str	w8, [x19, #16]
	ldr	x8, [x19, #40]
	mov	x0, x19
	blr	x8
	str	w21, [x19, #20]
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_XLGMAC_MAX_DMA_RIWT,4,2        ; @XLGMAC_MAX_DMA_RIWT
	.comm	_XLGMAC_MIN_DMA_RIWT,4,2        ; @XLGMAC_MIN_DMA_RIWT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xlgmac_ethtool_set_coalesce
.subsections_via_symbols
