	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_get_descq_cnt             ## -- Begin function sdma_get_descq_cnt
	.p2align	4, 0x90
_sdma_get_descq_cnt:                    ## @sdma_get_descq_cnt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_sdma_descq_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	movl	%ebx, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leal	-32769(%rbx), %eax
	cmpl	$-32705, %eax                   ## imm = 0x803F
	jae	LBB0_4
LBB0_3:
	movq	_SDMA_DESCQ_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sdma_descq_cnt,4,2             ## @sdma_descq_cnt
	.comm	_SDMA_DESCQ_CNT,4,2             ## @SDMA_DESCQ_CNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdma_get_descq_cnt             ; -- Begin function sdma_get_descq_cnt
	.p2align	2
_sdma_get_descq_cnt:                    ; @sdma_get_descq_cnt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _sdma_descq_cnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sdma_descq_cnt@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbz	w19, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_is_power_of_2
	cbz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SDMA_DESCQ_CNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDMA_DESCQ_CNT@GOTPAGEOFF]
	mov	w9, #-32769
Lloh5:
	ldr	w8, [x8]
	mov	w10, #-32705
	add	w9, w19, w9
	cmp	w9, w10
	csel	w0, w8, w19, lo
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _SDMA_DESCQ_CNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDMA_DESCQ_CNT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sdma_descq_cnt,4,2             ; @sdma_descq_cnt
	.comm	_SDMA_DESCQ_CNT,4,2             ; @SDMA_DESCQ_CNT
.subsections_via_symbols
