	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_dma_get_datawidth
_sprd_dma_get_datawidth:                ## @sprd_dma_get_datawidth
	.cfi_startproc
## %bb.0:
	movl	%edi, %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.1:
	bsfl	%edi, %eax
	retq
LBB0_2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sprd_dma_get_datawidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_dma_get_datawidth
_sprd_dma_get_datawidth:                ; @sprd_dma_get_datawidth
	.cfi_startproc
; %bb.0:
	and	w8, w0, #0xfffffffc
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	rbit	w10, w0
	clz	w10, w10
	cmp	w8, #128
	csneg	w0, w10, w9, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sprd_dma_get_datawidth
.subsections_via_symbols
