	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ena_com_add_single_rx_desc     ## -- Begin function ena_com_add_single_rx_desc
	.p2align	4, 0x90
_ena_com_add_single_rx_desc:            ## @ena_com_add_single_rx_desc
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_ENA_COM_IO_QUEUE_DIRECTION_RX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ena_com_sq_have_enough_space
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_get_sq_desc
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	4(%r14), %eax
	movl	%eax, 20(%r12)
	movq	_ENA_ETH_IO_RX_DESC_FIRST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_ENA_ETH_IO_RX_DESC_LAST_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movq	_ENA_ETH_IO_RX_DESC_PHASE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rbx), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r12)
	movq	_ENA_ETH_IO_RX_DESC_COMP_REQ_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movl	%r15d, 16(%r12)
	movslq	(%r14), %rax
	movq	%rax, 8(%r12)
	movq	16(%rbx), %rdi
	decq	%rdi
	movl	$32, %esi
	callq	_GENMASK_ULL
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ena_com_sq_update_tail         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_RX,8,3 ## @ENA_COM_IO_QUEUE_DIRECTION_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong Q type"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ENA_ETH_IO_RX_DESC_FIRST_MASK,4,2 ## @ENA_ETH_IO_RX_DESC_FIRST_MASK
	.comm	_ENA_ETH_IO_RX_DESC_LAST_MASK,4,2 ## @ENA_ETH_IO_RX_DESC_LAST_MASK
	.comm	_ENA_ETH_IO_RX_DESC_PHASE_MASK,4,2 ## @ENA_ETH_IO_RX_DESC_PHASE_MASK
	.comm	_ENA_ETH_IO_RX_DESC_COMP_REQ_MASK,4,2 ## @ENA_ETH_IO_RX_DESC_COMP_REQ_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ena_com_add_single_rx_desc     ; -- Begin function ena_com_add_single_rx_desc
	.p2align	2
_ena_com_add_single_rx_desc:            ; @ena_com_add_single_rx_desc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ENA_COM_IO_QUEUE_DIRECTION_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENA_COM_IO_QUEUE_DIRECTION_RX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	mov	x0, x19
	mov	w1, #1
	bl	_ena_com_sq_have_enough_space
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_get_sq_desc
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x22
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh9:
	adrp	x8, _ENA_ETH_IO_RX_DESC_FIRST_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENA_ETH_IO_RX_DESC_FIRST_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x22]
Lloh12:
	adrp	x9, _ENA_ETH_IO_RX_DESC_LAST_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ENA_ETH_IO_RX_DESC_LAST_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x22]
	ldr	w9, [x19, #8]
Lloh15:
	adrp	x10, _ENA_ETH_IO_RX_DESC_PHASE_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ENA_ETH_IO_RX_DESC_PHASE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x22]
Lloh18:
	adrp	x9, _ENA_ETH_IO_RX_DESC_COMP_REQ_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ENA_ETH_IO_RX_DESC_COMP_REQ_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x22]
	ldp	w9, w8, [x21]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	stp	w20, w8, [x22, #16]
	str	x9, [x22, #8]
	ldr	x8, [x19, #16]
	sub	x0, x8, #1
	mov	w1, #32
	bl	_GENMASK_ULL
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ena_com_sq_update_tail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_COM_IO_QUEUE_DIRECTION_RX,8,3 ; @ENA_COM_IO_QUEUE_DIRECTION_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong Q type"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ENA_ETH_IO_RX_DESC_FIRST_MASK,4,2 ; @ENA_ETH_IO_RX_DESC_FIRST_MASK
	.comm	_ENA_ETH_IO_RX_DESC_LAST_MASK,4,2 ; @ENA_ETH_IO_RX_DESC_LAST_MASK
	.comm	_ENA_ETH_IO_RX_DESC_PHASE_MASK,4,2 ; @ENA_ETH_IO_RX_DESC_PHASE_MASK
	.comm	_ENA_ETH_IO_RX_DESC_COMP_REQ_MASK,4,2 ; @ENA_ETH_IO_RX_DESC_COMP_REQ_MASK
.subsections_via_symbols
