	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv_change_interrupt_mode
_nv_change_interrupt_mode:              ## @nv_change_interrupt_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_netdev_priv
	movq	%rax, %rcx
	movq	_optimization_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_NV_OPTIMIZATION_MODE_DYNAMIC@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.1:
	movq	_NV_DYNAMIC_THRESHOLD@GOTPCREL(%rip), %rdx
	cmpl	%ebx, (%rdx)
	jge	LBB0_3
## %bb.2:
	movq	$0, (%rcx)
	movq	_NVREG_IRQMASK_CPU@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_3:
	movq	(%rcx), %rdx
	movq	_NV_DYNAMIC_MAX_QUIET_COUNT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jge	LBB0_5
## %bb.4:
	incq	%rdx
	movq	%rdx, (%rcx)
	jmp	LBB0_8
LBB0_5:
	movq	_NVREG_IRQMASK_THROUGHPUT@GOTPCREL(%rip), %rdx
LBB0_6:
	movq	(%rdx), %rdx
	cmpq	%rdx, 8(%rcx)
	je	LBB0_8
## %bb.7:
	movq	%rdx, 8(%rcx)
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_optimization_mode,8,3          ## @optimization_mode
	.comm	_NV_OPTIMIZATION_MODE_DYNAMIC,8,3 ## @NV_OPTIMIZATION_MODE_DYNAMIC
	.comm	_NV_DYNAMIC_THRESHOLD,4,2       ## @NV_DYNAMIC_THRESHOLD
	.comm	_NVREG_IRQMASK_CPU,8,3          ## @NVREG_IRQMASK_CPU
	.comm	_NV_DYNAMIC_MAX_QUIET_COUNT,8,3 ## @NV_DYNAMIC_MAX_QUIET_COUNT
	.comm	_NVREG_IRQMASK_THROUGHPUT,8,3   ## @NVREG_IRQMASK_THROUGHPUT
	.no_dead_strip	_nv_change_interrupt_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv_change_interrupt_mode
_nv_change_interrupt_mode:              ; @nv_change_interrupt_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_netdev_priv
Lloh0:
	adrp	x8, _optimization_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _optimization_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NV_OPTIMIZATION_MODE_DYNAMIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NV_OPTIMIZATION_MODE_DYNAMIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _NV_DYNAMIC_THRESHOLD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV_DYNAMIC_THRESHOLD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ge	LBB0_3
; %bb.2:
	str	xzr, [x0]
	ldr	x9, [x0, #8]
Lloh9:
	adrp	x8, _NVREG_IRQMASK_CPU@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVREG_IRQMASK_CPU@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	ldr	x9, [x0]
Lloh11:
	adrp	x8, _NV_DYNAMIC_MAX_QUIET_COUNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NV_DYNAMIC_MAX_QUIET_COUNT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_5
; %bb.4:
	mov	w8, #0
	add	x9, x9, #1
	str	x9, [x0]
	b	LBB0_9
LBB0_5:
	ldr	x9, [x0, #8]
Lloh14:
	adrp	x8, _NVREG_IRQMASK_THROUGHPUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NVREG_IRQMASK_THROUGHPUT@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_8
LBB0_7:
	mov	w8, #0
	b	LBB0_9
LBB0_8:
	str	x8, [x0, #8]
	mov	w8, #1
LBB0_9:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_optimization_mode,8,3          ; @optimization_mode
	.comm	_NV_OPTIMIZATION_MODE_DYNAMIC,8,3 ; @NV_OPTIMIZATION_MODE_DYNAMIC
	.comm	_NV_DYNAMIC_THRESHOLD,4,2       ; @NV_DYNAMIC_THRESHOLD
	.comm	_NVREG_IRQMASK_CPU,8,3          ; @NVREG_IRQMASK_CPU
	.comm	_NV_DYNAMIC_MAX_QUIET_COUNT,8,3 ; @NV_DYNAMIC_MAX_QUIET_COUNT
	.comm	_NVREG_IRQMASK_THROUGHPUT,8,3   ; @NVREG_IRQMASK_THROUGHPUT
	.no_dead_strip	_nv_change_interrupt_mode
.subsections_via_symbols
