	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meth_add_to_tx_ring
_meth_add_to_tx_ring:                   ## @meth_add_to_tx_ring
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	%rsi, (%rcx,%rax,8)
	cmpl	$120, (%rsi)
	jg	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_meth_tx_short_prepare
	jmp	LBB0_5
LBB0_2:
	movq	8(%rbx), %rdi
	callq	_PAGE_ALIGN
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx), %rdi
	decq	%rdi
	callq	_PAGE_ALIGN
	movq	%r14, %rdi
	movq	%rbx, %rsi
	cmpq	%rax, %r15
	jne	LBB0_3
## %bb.4:
	callq	_meth_tx_1page_prepare
	jmp	LBB0_5
LBB0_3:
	callq	_meth_tx_2page_prepare
LBB0_5:
	movq	(%r14), %rax
	incq	%rax
	movq	_TX_RING_ENTRIES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movq	%rcx, (%r14)
	movq	_mace@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	incl	8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_RING_ENTRIES,4,2            ## @TX_RING_ENTRIES
	.comm	_mace,8,3                       ## @mace
	.no_dead_strip	_meth_add_to_tx_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meth_add_to_tx_ring
_meth_add_to_tx_ring:                   ; @meth_add_to_tx_ring
	.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, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x0]
	str	x1, [x8, x9, lsl #3]
	ldr	w8, [x1]
	cmp	w8, #120
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_meth_tx_short_prepare
	b	LBB0_5
LBB0_2:
	ldr	x0, [x20, #8]
	bl	_PAGE_ALIGN
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20]
	add	x8, x8, x9
	sub	x0, x8, #1
	bl	_PAGE_ALIGN
	cmp	x21, x0
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_meth_tx_1page_prepare
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_meth_tx_2page_prepare
LBB0_5:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TX_RING_ENTRIES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_RING_ENTRIES@GOTPAGEOFF]
	add	x8, x8, #1
Lloh2:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x8, x9
Lloh3:
	adrp	x9, _mace@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mace@GOTPAGEOFF]
	str	x8, [x19]
Lloh5:
	ldr	x9, [x9]
	str	w8, [x9]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_RING_ENTRIES,4,2            ; @TX_RING_ENTRIES
	.comm	_mace,8,3                       ; @mace
	.no_dead_strip	_meth_add_to_tx_ring
.subsections_via_symbols
