	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_dma_get_ring_size
_xgene_dma_get_ring_size:               ## @xgene_dma_get_ring_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	leal	-128(%rdx), %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.xgene_dma_get_ring_size(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_chan_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported cfg ring size %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_xgene_dma_get_ring_size
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.xgene_dma_get_ring_size
l_switch.table.xgene_dma_get_ring_size:
	.long	65536                           ## 0x10000
	.long	524288                          ## 0x80000
	.long	512                             ## 0x200
	.long	2048                            ## 0x800
	.long	16384                           ## 0x4000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_dma_get_ring_size
_xgene_dma_get_ring_size:               ; @xgene_dma_get_ring_size
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #128
	cmp	w8, #5
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.xgene_dma_get_ring_size@PAGE
Lloh1:
	add	x9, x9, l_switch.table.xgene_dma_get_ring_size@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x2, x1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_chan_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported cfg ring size %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_xgene_dma_get_ring_size
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.xgene_dma_get_ring_size
l_switch.table.xgene_dma_get_ring_size:
	.long	65536                           ; 0x10000
	.long	524288                          ; 0x80000
	.long	512                             ; 0x200
	.long	2048                            ; 0x800
	.long	16384                           ; 0x4000

.subsections_via_symbols
