	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_ethtoolops_get_coalesce
_wil_ethtoolops_get_coalesce:           ## @wil_ethtoolops_get_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
	callq	_ndev_to_wil
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_wil_dbg_misc
	movq	%rbx, %rdi
	callq	_wil_pm_runtime_get
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_RGF_DMA_ITR_TX_CNT_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wil_r
	movq	_BIT_DMA_ITR_TX_CNT_CTL_EN@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$0, %r12d
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_RGF_DMA_ITR_TX_CNT_TRSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wil_r
	movl	%eax, %r12d
LBB0_3:
	movq	_RGF_DMA_ITR_RX_CNT_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wil_r
	movq	_BIT_DMA_ITR_RX_CNT_CTL_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_RGF_DMA_ITR_RX_CNT_TRSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wil_r
	movl	%eax, %r15d
LBB0_5:
	movq	%rbx, %rdi
	callq	_wil_pm_runtime_put
	movl	%r12d, (%r14)
	movl	%r15d, 4(%r14)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ethtoolops_get_coalesce\n"

	.comm	_RGF_DMA_ITR_TX_CNT_CTL,4,2     ## @RGF_DMA_ITR_TX_CNT_CTL
	.comm	_BIT_DMA_ITR_TX_CNT_CTL_EN,4,2  ## @BIT_DMA_ITR_TX_CNT_CTL_EN
	.comm	_RGF_DMA_ITR_TX_CNT_TRSH,4,2    ## @RGF_DMA_ITR_TX_CNT_TRSH
	.comm	_RGF_DMA_ITR_RX_CNT_CTL,4,2     ## @RGF_DMA_ITR_RX_CNT_CTL
	.comm	_BIT_DMA_ITR_RX_CNT_CTL_EN,4,2  ## @BIT_DMA_ITR_RX_CNT_CTL_EN
	.comm	_RGF_DMA_ITR_RX_CNT_TRSH,4,2    ## @RGF_DMA_ITR_RX_CNT_TRSH
	.no_dead_strip	_wil_ethtoolops_get_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_ethtoolops_get_coalesce
_wil_ethtoolops_get_coalesce:           ; @wil_ethtoolops_get_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
	bl	_ndev_to_wil
	mov	x20, x0
Lloh0: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	w1, [x8]
	mov	x0, x20
	bl	_wil_r
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	mov	w22, #0
LBB0_7:
	mov	x0, x20
	bl	_wil_pm_runtime_put
	mov	w0, #0
	stp	w21, w22, [x19]
LBB0_8:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ethtoolops_get_coalesce\n"

	.comm	_RGF_DMA_ITR_TX_CNT_CTL,4,2     ; @RGF_DMA_ITR_TX_CNT_CTL
	.comm	_BIT_DMA_ITR_TX_CNT_CTL_EN,4,2  ; @BIT_DMA_ITR_TX_CNT_CTL_EN
	.comm	_RGF_DMA_ITR_TX_CNT_TRSH,4,2    ; @RGF_DMA_ITR_TX_CNT_TRSH
	.comm	_RGF_DMA_ITR_RX_CNT_CTL,4,2     ; @RGF_DMA_ITR_RX_CNT_CTL
	.comm	_BIT_DMA_ITR_RX_CNT_CTL_EN,4,2  ; @BIT_DMA_ITR_RX_CNT_CTL_EN
	.comm	_RGF_DMA_ITR_RX_CNT_TRSH,4,2    ; @RGF_DMA_ITR_RX_CNT_TRSH
	.no_dead_strip	_wil_ethtoolops_get_coalesce
.subsections_via_symbols
