	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_get_feature_ex
_ena_com_get_feature_ex:                ## @ena_com_get_feature_ex
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, %r13
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	%edx, %esi
	callq	_ena_com_check_supported_feature_id
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_ENA_ADMIN_GET_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	%r13, %rax
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	_ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	%rax, -64(%rbp)
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_ena_com_mem_addr_set
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_debug
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_6:
	movq	%r13, -80(%rbp)
	movl	%r12d, -84(%rbp)
	movl	%r15d, -88(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$40, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$4, %r8d
	callq	_ena_com_execute_admin_command
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_8:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Feature %d isn't supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENA_ADMIN_GET_FEATURE,4,2      ## @ENA_ADMIN_GET_FEATURE
	.comm	_ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK,8,3 ## @ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"memory address set failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to submit get_feature command %d error: %d\n"

	.no_dead_strip	_ena_com_get_feature_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_get_feature_ex
_ena_com_get_feature_ex:                ; @ena_com_get_feature_ex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x1, x2
	bl	_ena_com_check_supported_feature_id
	cbz	w0, LBB0_3
; %bb.1:
	add	x25, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _ENA_ADMIN_GET_FEATURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_ADMIN_GET_FEATURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK@GOTPAGEOFF]
	str	w8, [sp, #56]
Lloh5:
	ldr	x8, [x9]
	cmp	x23, #0
	csel	x8, xzr, x8, eq
	str	x8, [sp, #48]
	add	x1, x25, #16
	mov	x0, x21
	mov	x2, x24
	bl	_ena_com_mem_addr_set
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_4:
	str	x23, [sp, #32]
	stp	w19, w22, [sp, #24]
	add	x1, sp, #24
	mov	x0, x21
	mov	w2, #40
	mov	x3, x20
	mov	w4, #4
	bl	_ena_com_execute_admin_command
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.5:
	stp	x19, x24, [sp]
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	bl	_pr_err
LBB0_7:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Feature %d isn't supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENA_ADMIN_GET_FEATURE,4,2      ; @ENA_ADMIN_GET_FEATURE
	.comm	_ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK,8,3 ; @ENA_ADMIN_AQ_COMMON_DESC_CTRL_DATA_INDIRECT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"memory address set failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to submit get_feature command %d error: %d\n"

	.no_dead_strip	_ena_com_get_feature_ex
.subsections_via_symbols
