	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_write_bounce_buffer_to_dev
_ena_com_write_bounce_buffer_to_dev:    ## @ena_com_write_bounce_buffer_to_dev
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movslq	(%rdi), %r12
	movslq	4(%rdi), %r15
	movslq	32(%rdi), %r13
	callq	_is_llq_max_tx_burst_exists
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	cmpl	$0, 24(%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_3:
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	decl	%edx
	movl	%edx, 24(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
LBB0_4:
	decq	%r15
	andq	%r12, %r15
	imulq	%r13, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_wmb
	addq	16(%rbx), %r15
	movl	32(%rbx), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___iowrite64_copy
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	incl	%eax
	movl	%eax, (%rbx)
	decl	%ecx
	xorl	%edi, %edi
	testl	%eax, %ecx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	xorb	$1, 8(%rbx)
LBB0_6:
	movl	%r12d, %eax
	addq	$8, %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	"Error: trying to send more packets than tx burst allows\n"

	.comm	_ENOSPC,4,2                     ## @ENOSPC
L_.str.1:                               ## @.str.1
	.asciz	"decreasing entries_in_tx_burst_left of queue %d to %d\n"

	.no_dead_strip	_ena_com_write_bounce_buffer_to_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_write_bounce_buffer_to_dev
_ena_com_write_bounce_buffer_to_dev:    ; @ena_com_write_bounce_buffer_to_dev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldpsw	x21, x23, [x0]
	ldrsw	x22, [x0, #32]
	bl	_is_llq_max_tx_burst_exists
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	ldp	w8, w1, [x19, #24]
	sub	w2, w8, #1
	str	w2, [x19, #24]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_4:
	sub	x8, x23, #1
	and	x8, x8, x21
	mul	x21, x8, x22
	bl	_wmb
	ldr	x8, [x19, #16]
	add	x0, x8, x21
	ldr	w8, [x19, #32]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #3
	mov	x1, x20
	bl	___iowrite64_copy
	ldp	w8, w9, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	sub	w9, w9, #1
	tst	w9, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
	ldr	w8, [x19, #8]
	eor	w8, w8, #0x1
	str	w8, [x19, #8]
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: trying to send more packets than tx burst allows\n"

	.comm	_ENOSPC,4,2                     ; @ENOSPC
l_.str.1:                               ; @.str.1
	.asciz	"decreasing entries_in_tx_burst_left of queue %d to %d\n"

	.no_dead_strip	_ena_com_write_bounce_buffer_to_dev
.subsections_via_symbols
