	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_ind_tbl_convert_to_device
_ena_com_ind_tbl_convert_to_device:     ## @ena_com_ind_tbl_convert_to_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %ecx
	xorl	%eax, %eax
	cmpl	$31, %ecx
	je	LBB0_7
## %bb.1:
	movl	$1, %edx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	16(%rdi), %r8
	movq	_ENA_TOTAL_NUM_QUEUES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_ENA_COM_IO_QUEUE_DIRECTION_RX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	cmpl	$2, %eax
	cmovll	%edx, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8,%rcx,8), %rdx
	cmpq	%r9, %rdx
	jae	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rsi
	shlq	$4, %rdx
	cmpq	%r10, (%rsi,%rdx)
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rsi,%rdx), %edx
	movq	24(%rdi), %rsi
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbp
	retq
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_TOTAL_NUM_QUEUES,8,3       ## @ENA_TOTAL_NUM_QUEUES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_RX,8,3 ## @ENA_COM_IO_QUEUE_DIRECTION_RX
	.no_dead_strip	_ena_com_ind_tbl_convert_to_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_ind_tbl_convert_to_device
_ena_com_ind_tbl_convert_to_device:     ; @ena_com_ind_tbl_convert_to_device
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0, #8]
	cmp	w9, #31
	b.eq	LBB0_5
; %bb.1:
	mov	x8, #0
	mov	w10, #1
	lsl	w12, w10, w9
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, _ENA_TOTAL_NUM_QUEUES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ENA_TOTAL_NUM_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _ENA_COM_IO_QUEUE_DIRECTION_RX@GOTPAGE
Lloh4:
	ldr	x11, [x11, _ENA_COM_IO_QUEUE_DIRECTION_RX@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	w12, #1
	csinc	w12, w12, wzr, gt
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9, x8, lsl #3]
	cmp	x13, x10
	b.hs	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x14, [x0]
	lsl	x15, x13, #4
	ldr	x15, [x14, x15]
	cmp	x15, x11
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x13, x14, x13, lsl #4
	ldr	w13, [x13, #8]
	ldr	x14, [x0, #24]
	str	w13, [x14, x8, lsl #2]
	add	x8, x8, #1
	cmp	x12, x8
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_TOTAL_NUM_QUEUES,8,3       ; @ENA_TOTAL_NUM_QUEUES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_RX,8,3 ; @ENA_COM_IO_QUEUE_DIRECTION_RX
	.no_dead_strip	_ena_com_ind_tbl_convert_to_device
.subsections_via_symbols
