	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_ethtoolops_set_coalesce
_wil_ethtoolops_set_coalesce:           ## @wil_ethtoolops_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ndev_to_wil
	movq	%rax, %r15
	movq	(%rbx), %rbx
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	jmp	LBB0_8
LBB0_2:
	movl	(%r14), %eax
	movq	_WIL6210_ITR_TRSH_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_7
## %bb.3:
	movl	4(%r14), %edx
	cmpl	%ecx, %edx
	jle	LBB0_4
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$0, (%rsp)
	leaq	L_.str.3(%rip), %rdi
	movl	$16, %edx
	movl	$4, %ecx
	movq	%r14, %r8
	movl	$8, %r9d
	callq	_print_hex_dump_debug
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%edx, 12(%r15)
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_wil_pm_runtime_get
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	*(%r15)
	movq	%r15, %rdi
	callq	_wil_pm_runtime_put
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ethtoolops_set_coalesce: rx %d usec, tx %d usec\n"

	.comm	_NL80211_IFTYPE_MONITOR,8,3     ## @NL80211_IFTYPE_MONITOR
L_.str.1:                               ## @.str.1
	.asciz	"No IRQ coalescing in monitor mode\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WIL6210_ITR_TRSH_MAX,4,2       ## @WIL6210_ITR_TRSH_MAX
L_.str.2:                               ## @.str.2
	.asciz	"Unsupported coalescing params. Raw command:\n"

L_.str.3:                               ## @.str.3
	.asciz	"DBG[MISC] coal "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
	.no_dead_strip	_wil_ethtoolops_set_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_set_coalesce
_wil_ethtoolops_set_coalesce:           ; @wil_ethtoolops_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
	mov	x21, x0
	bl	_ndev_to_wil
	mov	x20, x0
	ldr	x21, [x21]
	ldp	w8, w9, [x19]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wil_dbg_misc
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_MONITOR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_MONITOR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wil_dbg_misc
	b	LBB0_5
LBB0_2:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _WIL6210_ITR_TRSH_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WIL6210_ITR_TRSH_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x9]
	cmp	w8, w10
	b.gt	LBB0_4
; %bb.3:
	ldr	w9, [x19, #4]
	cmp	w9, w10
	b.le	LBB0_7
LBB0_4:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_wil_dbg_misc
Lloh12:
	adrp	x8, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w2, #16
	mov	w3, #4
	mov	x4, x19
	mov	w5, #8
	mov	w6, #0
	bl	_print_hex_dump_debug
LBB0_5:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
	stp	w8, w9, [x20, #8]
	mov	x0, x20
	bl	_wil_pm_runtime_get
	tbnz	w0, #31, LBB0_6
; %bb.8:
	ldr	x8, [x20]
	mov	x0, x20
	blr	x8
	mov	x0, x20
	bl	_wil_pm_runtime_put
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ethtoolops_set_coalesce: rx %d usec, tx %d usec\n"

	.comm	_NL80211_IFTYPE_MONITOR,8,3     ; @NL80211_IFTYPE_MONITOR
l_.str.1:                               ; @.str.1
	.asciz	"No IRQ coalescing in monitor mode\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WIL6210_ITR_TRSH_MAX,4,2       ; @WIL6210_ITR_TRSH_MAX
l_.str.2:                               ; @.str.2
	.asciz	"Unsupported coalescing params. Raw command:\n"

l_.str.3:                               ; @.str.3
	.asciz	"DBG[MISC] coal "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
	.no_dead_strip	_wil_ethtoolops_set_coalesce
.subsections_via_symbols
