	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_fdma_dreq_get
_st_fdma_dreq_get:                      ## @st_fdma_dreq_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	8(%rdi), %rbx
	movb	$1, %cl
	movq	_ST_FDMA_NR_DREQS@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$-1, (%rbx)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	(%r15), %r14
	setl	%al
	testb	%al, %cl
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_test_and_set_bit
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.7:
	movl	8(%rbx), %edi
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
	jmp	LBB0_8
LBB0_2:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No req lines available\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ST_FDMA_NR_DREQS,8,3           ## @ST_FDMA_NR_DREQS
L_.str.1:                               ## @.str.1
	.asciz	"Invalid or used req line\n"

L_.str.2:                               ## @.str.2
	.asciz	"get dreq_line:%d mask:%#lx\n"

	.no_dead_strip	_st_fdma_dreq_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_fdma_dreq_get
_st_fdma_dreq_get:                      ; @st_fdma_dreq_get
	.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
	ldr	x20, [x0, #8]
	ldr	x8, [x20]
	cmn	x8, #1
	b.eq	LBB0_5
; %bb.1:
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _ST_FDMA_NR_DREQS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_FDMA_NR_DREQS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ge	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_test_and_set_bit
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x20]
	cmn	x8, #1
	b.eq	LBB0_5
LBB0_4:
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w0, [x20, #8]
	ldr	x3, [x20]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No req lines available\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ST_FDMA_NR_DREQS,8,3           ; @ST_FDMA_NR_DREQS
l_.str.1:                               ; @.str.1
	.asciz	"Invalid or used req line\n"

l_.str.2:                               ; @.str.2
	.asciz	"get dreq_line:%d mask:%#lx\n"

	.no_dead_strip	_st_fdma_dreq_get
.subsections_via_symbols
