	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_get_slave_caps             ## -- Begin function dma_get_slave_caps
	.p2align	4, 0x90
_dma_get_slave_caps:                    ## @dma_get_slave_caps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	(%rdi), %rbx
	movq	_DMA_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_DMA_CYCLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movl	36(%rbx), %ecx
	movl	%ecx, 36(%r14)
	movl	32(%rbx), %ecx
	movl	%ecx, 32(%r14)
	movq	%rax, 24(%r14)
	movl	20(%rbx), %eax
	movl	%eax, 20(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 16(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	cmpl	$0, 8(%rbx)
	setne	%al
	movl	%eax, (%r14)
	xorl	%eax, %eax
	cmpl	$0, 4(%rbx)
	setne	%al
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	setne	%al
	movl	%eax, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMA_SLAVE,4,2                  ## @DMA_SLAVE
	.comm	_DMA_CYCLIC,4,2                 ## @DMA_CYCLIC
	.comm	_ENXIO,4,2                      ## @ENXIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dma_get_slave_caps             ; -- Begin function dma_get_slave_caps
	.p2align	2
_dma_get_slave_caps:                    ; @dma_get_slave_caps
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_6
; %bb.2:
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _DMA_SLAVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_SLAVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #40]
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _DMA_CYCLIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_CYCLIC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20, #40]
	bl	_test_bit
	cbz	x0, LBB0_7
LBB0_4:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_7
; %bb.5:
	mov	w0, #0
	ldr	d0, [x20, #32]
	str	d0, [x19, #32]
	str	x8, [x19, #24]
	ldr	w8, [x20, #20]
	str	w8, [x19, #20]
	ldur	d0, [x20, #12]
	stur	d0, [x19, #12]
	ldur	d0, [x20, #4]
	cmeq.2s	v0, v0, #0
	movi.2s	v1, #1
	bic.8b	v0, v1, v0
	rev64.2s	v0, v0
	str	d0, [x19]
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, ne
	str	w8, [x19, #8]
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMA_SLAVE,4,2                  ; @DMA_SLAVE
	.comm	_DMA_CYCLIC,4,2                 ; @DMA_CYCLIC
	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
