	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axi_dmac_detect_caps
_axi_dmac_detect_caps:                  ## @axi_dmac_detect_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_ADI_AXI_REG_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_axi_dmac_read
	movl	%eax, %r14d
	movq	_AXI_DMAC_REG_FLAGS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_AXI_DMAC_FLAG_CYCLIC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_axi_dmac_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_axi_dmac_read
	cmpl	(%r12), %eax
	jne	LBB0_2
## %bb.1:
	movl	$1, 8(%rbx)
LBB0_2:
	movq	_AXI_DMAC_REG_Y_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_axi_dmac_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_axi_dmac_read
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, 12(%rbx)
LBB0_4:
	movq	_AXI_DMAC_REG_X_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_axi_dmac_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_axi_dmac_read
	movl	%eax, 16(%rbx)
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.5:
	incl	%eax
	movl	%eax, 16(%rbx)
LBB0_6:
	movq	_AXI_DMAC_REG_DEST_ADDRESS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_axi_dmac_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_axi_dmac_read
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	24(%rbx), %rax
	movq	_AXI_DMAC_BUS_TYPE_AXI_MM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	movq	_AXI_DMAC_REG_SRC_ADDRESS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_axi_dmac_write
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_axi_dmac_read
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	32(%rbx), %rax
	movq	_AXI_DMAC_BUS_TYPE_AXI_MM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_9:
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_13:
	movl	$4, %edi
	movl	$2, %esi
	movl	$97, %edx
	callq	_ADI_AXI_PCORE_VER
	cmpl	%eax, %r14d
	jb	LBB0_15
## %bb.14:
	movl	$1, 40(%rbx)
LBB0_15:
	movl	$4, %edi
	movl	$1, %esi
	movl	$97, %edx
	callq	_ADI_AXI_PCORE_VER
	cmpl	%eax, %r14d
	jae	LBB0_16
## %bb.17:
	movl	48(%rbx), %eax
	movl	%eax, 44(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_16:
	movl	(%r15), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_axi_dmac_write
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_axi_dmac_read
	movl	%eax, 44(%rbx)
LBB0_18:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADI_AXI_REG_VERSION,4,2        ## @ADI_AXI_REG_VERSION
	.comm	_AXI_DMAC_REG_FLAGS,4,2         ## @AXI_DMAC_REG_FLAGS
	.comm	_AXI_DMAC_FLAG_CYCLIC,4,2       ## @AXI_DMAC_FLAG_CYCLIC
	.comm	_AXI_DMAC_REG_Y_LENGTH,4,2      ## @AXI_DMAC_REG_Y_LENGTH
	.comm	_AXI_DMAC_REG_X_LENGTH,4,2      ## @AXI_DMAC_REG_X_LENGTH
	.comm	_UINT_MAX,4,2                   ## @UINT_MAX
	.comm	_AXI_DMAC_REG_DEST_ADDRESS,4,2  ## @AXI_DMAC_REG_DEST_ADDRESS
	.comm	_AXI_DMAC_BUS_TYPE_AXI_MM,8,3   ## @AXI_DMAC_BUS_TYPE_AXI_MM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Destination memory-mapped interface not supported."

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AXI_DMAC_REG_SRC_ADDRESS,4,2   ## @AXI_DMAC_REG_SRC_ADDRESS
L_.str.1:                               ## @.str.1
	.asciz	"Source memory-mapped interface not supported."

	.no_dead_strip	_axi_dmac_detect_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axi_dmac_detect_caps
_axi_dmac_detect_caps:                  ; @axi_dmac_detect_caps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _ADI_AXI_REG_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADI_AXI_REG_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_axi_dmac_read
	mov	x20, x0
Lloh3:
	adrp	x21, _AXI_DMAC_REG_FLAGS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AXI_DMAC_REG_FLAGS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x22, _AXI_DMAC_FLAG_CYCLIC@GOTPAGE
Lloh6:
	ldr	x22, [x22, _AXI_DMAC_FLAG_CYCLIC@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_axi_dmac_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_axi_dmac_read
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_2:
Lloh7:
	adrp	x22, _AXI_DMAC_REG_Y_LENGTH@GOTPAGE
Lloh8:
	ldr	x22, [x22, _AXI_DMAC_REG_Y_LENGTH@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	bl	_axi_dmac_write
	ldr	w1, [x22]
	mov	x0, x19
	bl	_axi_dmac_read
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	str	w21, [x19, #12]
LBB0_4:
Lloh9:
	adrp	x21, _AXI_DMAC_REG_X_LENGTH@GOTPAGE
Lloh10:
	ldr	x21, [x21, _AXI_DMAC_REG_X_LENGTH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #-1
	bl	_axi_dmac_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_axi_dmac_read
	str	w0, [x19, #16]
Lloh11:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
	add	w8, w0, #1
	str	w8, [x19, #16]
LBB0_6:
Lloh14:
	adrp	x22, _AXI_DMAC_REG_DEST_ADDRESS@GOTPAGE
Lloh15:
	ldr	x22, [x22, _AXI_DMAC_REG_DEST_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #-1
	bl	_axi_dmac_write
	ldr	w1, [x22]
	mov	x0, x19
	bl	_axi_dmac_read
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x19, #24]
Lloh16:
	adrp	x9, _AXI_DMAC_BUS_TYPE_AXI_MM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AXI_DMAC_BUS_TYPE_AXI_MM@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh21:
	adrp	x22, _AXI_DMAC_REG_SRC_ADDRESS@GOTPAGE
Lloh22:
	ldr	x22, [x22, _AXI_DMAC_REG_SRC_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #-1
	bl	_axi_dmac_write
	ldr	w1, [x22]
	mov	x0, x19
	bl	_axi_dmac_read
	cbnz	w0, LBB0_13
; %bb.10:
	ldr	x8, [x19, #32]
Lloh23:
	adrp	x9, _AXI_DMAC_BUS_TYPE_AXI_MM@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AXI_DMAC_BUS_TYPE_AXI_MM@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
	ldr	w0, [x19]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	_dev_err
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_13:
	mov	w0, #4
	mov	w1, #2
	mov	w2, #97
	bl	_ADI_AXI_PCORE_VER
	cmp	w20, w0
	b.lo	LBB0_15
; %bb.14:
	mov	w8, #1
	str	w8, [x19, #40]
LBB0_15:
	mov	w0, #4
	mov	w1, #1
	mov	w2, #97
	bl	_ADI_AXI_PCORE_VER
	cmp	w20, w0
	b.hs	LBB0_17
; %bb.16:
	mov	w0, #0
	ldr	w8, [x19, #48]
	b	LBB0_18
LBB0_17:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_axi_dmac_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_axi_dmac_read
	mov	x8, x0
	mov	w0, #0
LBB0_18:
	str	w8, [x19, #44]
LBB0_19:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ADI_AXI_REG_VERSION,4,2        ; @ADI_AXI_REG_VERSION
	.comm	_AXI_DMAC_REG_FLAGS,4,2         ; @AXI_DMAC_REG_FLAGS
	.comm	_AXI_DMAC_FLAG_CYCLIC,4,2       ; @AXI_DMAC_FLAG_CYCLIC
	.comm	_AXI_DMAC_REG_Y_LENGTH,4,2      ; @AXI_DMAC_REG_Y_LENGTH
	.comm	_AXI_DMAC_REG_X_LENGTH,4,2      ; @AXI_DMAC_REG_X_LENGTH
	.comm	_UINT_MAX,4,2                   ; @UINT_MAX
	.comm	_AXI_DMAC_REG_DEST_ADDRESS,4,2  ; @AXI_DMAC_REG_DEST_ADDRESS
	.comm	_AXI_DMAC_BUS_TYPE_AXI_MM,8,3   ; @AXI_DMAC_BUS_TYPE_AXI_MM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Destination memory-mapped interface not supported."

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AXI_DMAC_REG_SRC_ADDRESS,4,2   ; @AXI_DMAC_REG_SRC_ADDRESS
l_.str.1:                               ; @.str.1
	.asciz	"Source memory-mapped interface not supported."

	.no_dead_strip	_axi_dmac_detect_caps
.subsections_via_symbols
