	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_dma_encode_len
_xgene_dma_encode_len:                  ## @xgene_dma_encode_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_XGENE_DMA_DESC_BUFLEN_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edi, %eax
	shll	%cl, %eax
	movq	_XGENE_DMA_MAX_BYTE_CNT@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	ja	LBB0_2
## %bb.1:
	movq	_XGENE_DMA_16K_BUFFER_LEN_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_DMA_MAX_BYTE_CNT,8,3     ## @XGENE_DMA_MAX_BYTE_CNT
	.comm	_XGENE_DMA_DESC_BUFLEN_POS,4,2  ## @XGENE_DMA_DESC_BUFLEN_POS
	.comm	_XGENE_DMA_16K_BUFFER_LEN_CODE,4,2 ## @XGENE_DMA_16K_BUFFER_LEN_CODE
	.no_dead_strip	_xgene_dma_encode_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_dma_encode_len
_xgene_dma_encode_len:                  ; @xgene_dma_encode_len
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _XGENE_DMA_MAX_BYTE_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XGENE_DMA_MAX_BYTE_CNT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _XGENE_DMA_DESC_BUFLEN_POS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XGENE_DMA_DESC_BUFLEN_POS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w0, w9
Lloh6:
	adrp	x10, _XGENE_DMA_16K_BUFFER_LEN_CODE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _XGENE_DMA_16K_BUFFER_LEN_CODE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x8, x0
	csel	w0, w9, w10, hi
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_DMA_MAX_BYTE_CNT,8,3     ; @XGENE_DMA_MAX_BYTE_CNT
	.comm	_XGENE_DMA_DESC_BUFLEN_POS,4,2  ; @XGENE_DMA_DESC_BUFLEN_POS
	.comm	_XGENE_DMA_16K_BUFFER_LEN_CODE,4,2 ; @XGENE_DMA_16K_BUFFER_LEN_CODE
	.no_dead_strip	_xgene_dma_encode_len
.subsections_via_symbols
