	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_final_eot
_encode_final_eot:                      ## @encode_final_eot
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DMA_BYTE_CNT_WR_EOT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rax
	orq	%rdx, %rax
	notq	%rcx
	andq	%rdx, %rcx
	cmpq	$0, 8(%rsi)
	cmovneq	%rax, %rcx
	movq	_DMA_BYTE_CNT_RD_EOT_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	notq	%rax
	andq	%rcx, %rax
	cmpq	$0, (%rdi)
	cmovneq	%rdx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_BYTE_CNT_WR_EOT_MASK,8,3   ## @DMA_BYTE_CNT_WR_EOT_MASK
	.comm	_DMA_BYTE_CNT_RD_EOT_MASK,8,3   ## @DMA_BYTE_CNT_RD_EOT_MASK
	.no_dead_strip	_encode_final_eot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_final_eot
_encode_final_eot:                      ; @encode_final_eot
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _DMA_BYTE_CNT_WR_EOT_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_BYTE_CNT_WR_EOT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	orr	x10, x9, x2
	bic	x9, x2, x9
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _DMA_BYTE_CNT_RD_EOT_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DMA_BYTE_CNT_RD_EOT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	orr	x11, x10, x8
	bic	x8, x8, x10
	cmp	x9, #0
	csel	x0, x8, x11, eq
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_BYTE_CNT_WR_EOT_MASK,8,3   ; @DMA_BYTE_CNT_WR_EOT_MASK
	.comm	_DMA_BYTE_CNT_RD_EOT_MASK,8,3   ; @DMA_BYTE_CNT_RD_EOT_MASK
	.no_dead_strip	_encode_final_eot
.subsections_via_symbols
