	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ena_com_init_interrupt_moderation ## -- Begin function ena_com_init_interrupt_moderation
	.p2align	4, 0x90
_ena_com_init_interrupt_moderation:     ## @ena_com_init_interrupt_moderation
	.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	%rdi, %r14
	movq	_ENA_ADMIN_INTERRUPT_MODERATION@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-32(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_ena_com_get_feature
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_5
LBB0_4:
	movl	-32(%rbp), %esi
	movq	%r14, %rdi
	callq	_ena_com_update_intr_delay_resolution
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_6:
	movq	%r14, %rdi
	callq	_ena_com_disable_adaptive_moderation
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ADMIN_INTERRUPT_MODERATION,4,2 ## @ENA_ADMIN_INTERRUPT_MODERATION
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Feature %d isn't supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get interrupt moderation admin cmd. rc: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ena_com_init_interrupt_moderation ; -- Begin function ena_com_init_interrupt_moderation
	.p2align	2
_ena_com_init_interrupt_moderation:     ; @ena_com_init_interrupt_moderation
	.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, x0
Lloh0:
	adrp	x21, _ENA_ADMIN_INTERRUPT_MODERATION@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENA_ADMIN_INTERRUPT_MODERATION@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x1, sp, #8
	mov	w3, #0
	bl	_ena_com_get_feature
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	w1, [x21]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	w20, #0
	b	LBB0_5
LBB0_3:
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_ena_com_update_intr_delay_resolution
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_err
LBB0_5:
	mov	x0, x19
	bl	_ena_com_disable_adaptive_moderation
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ADMIN_INTERRUPT_MODERATION,4,2 ; @ENA_ADMIN_INTERRUPT_MODERATION
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Feature %d isn't supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get interrupt moderation admin cmd. rc: %d\n"

.subsections_via_symbols
