	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_write_txd
_cas_write_txd:                         ## @cas_write_txd
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	16(%rbp), %r14d
	movq	(%rdi), %rax
	movslq	%esi, %r13
	movq	(%rax,%r13,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_TX_DESC_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r8d, %esi
	callq	_CAS_BASE
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_cas_intme
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_TX_DESC_INTME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	orl	%ecx, %ebx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_TX_DESC_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	orl	%r14d, %ebx
	movslq	%r15d, %r14
	movl	%ebx, %edi
	callq	_cpu_to_le64
	shlq	$4, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 8(%rbx,%r14)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le64
	movq	%rax, (%rbx,%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_DESC_BUFLEN,4,2             ## @TX_DESC_BUFLEN
	.comm	_TX_DESC_INTME,4,2              ## @TX_DESC_INTME
	.comm	_TX_DESC_EOF,4,2                ## @TX_DESC_EOF
	.no_dead_strip	_cas_write_txd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_write_txd
_cas_write_txd:                         ; @cas_write_txd
	.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	x19, x6
	mov	x20, x5
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	ldr	x8, [x0]
	ldr	x24, [x8, w1, sxtw #3]
Lloh0:
	adrp	x8, _TX_DESC_BUFLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_DESC_BUFLEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x4
	bl	_CAS_BASE
	orr	w20, w0, w20
	mov	x0, x23
	mov	x1, x22
	bl	_cas_intme
Lloh3:
	adrp	x8, _TX_DESC_INTME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_DESC_INTME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w8, w20, w8
Lloh6:
	adrp	x9, _TX_DESC_EOF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TX_DESC_EOF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w19, #0
	csel	w9, wzr, w9, eq
	orr	w0, w8, w9
	bl	_cpu_to_le64
	add	x19, x24, w22, sxtw #4
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_cpu_to_le64
	str	x0, [x19]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_DESC_BUFLEN,4,2             ; @TX_DESC_BUFLEN
	.comm	_TX_DESC_INTME,4,2              ; @TX_DESC_INTME
	.comm	_TX_DESC_EOF,4,2                ; @TX_DESC_EOF
	.no_dead_strip	_cas_write_txd
.subsections_via_symbols
