	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axi_dmac_parse_chan_dt
_axi_dmac_parse_chan_dt:                ## @axi_dmac_parse_chan_dt
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	cmpl	$0, -28(%rbp)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_4
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-28(%rbp), %eax
	movq	_AXI_DMAC_BUS_TYPE_FIFO@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jg	LBB0_2
## %bb.5:
	movl	%eax, (%r14)
	leaq	L_.str.2(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_20
## %bb.6:
	movl	-28(%rbp), %eax
	cmpl	(%r15), %eax
	jg	LBB0_2
## %bb.7:
	movl	%eax, 4(%r14)
	leaq	L_.str.3(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	movl	-28(%rbp), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, 8(%r14)
	leaq	L_.str.4(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_20
## %bb.9:
	movl	-28(%rbp), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	movl	%edi, 12(%r14)
	movl	8(%r14), %esi
	callq	_max
	decq	%rax
	movq	%rax, 24(%r14)
	movq	%r14, %rdi
	callq	_axi_dmac_dest_is_mem
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	callq	_axi_dmac_src_is_mem
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_DMA_MEM_TO_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_12:
	movq	%r14, %rdi
	callq	_axi_dmac_dest_is_mem
	testq	%rax, %rax
	je	LBB0_13
LBB0_15:
	movq	%r14, %rdi
	callq	_axi_dmac_dest_is_mem
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%r14, %rdi
	callq	_axi_dmac_src_is_mem
	testq	%rax, %rax
	je	LBB0_17
LBB0_18:
	movq	_DMA_DEV_TO_DEV@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_13:
	movq	%r14, %rdi
	callq	_axi_dmac_src_is_mem
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorl	%eax, %eax
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"adi,source-bus-type"

	.comm	_AXI_DMAC_BUS_TYPE_FIFO,4,2     ## @AXI_DMAC_BUS_TYPE_FIFO
L_.str.2:                               ## @.str.2
	.asciz	"adi,destination-bus-type"

L_.str.3:                               ## @.str.3
	.asciz	"adi,source-bus-width"

L_.str.4:                               ## @.str.4
	.asciz	"adi,destination-bus-width"

	.comm	_DMA_MEM_TO_MEM,4,2             ## @DMA_MEM_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_DMA_DEV_TO_DEV,4,2             ## @DMA_DEV_TO_DEV
	.no_dead_strip	_axi_dmac_parse_chan_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axi_dmac_parse_chan_dt
_axi_dmac_parse_chan_dt:                ; @axi_dmac_parse_chan_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w8, [sp, #12]
Lloh7:
	adrp	x21, _AXI_DMAC_BUS_TYPE_FIFO@GOTPAGE
Lloh8:
	ldr	x21, [x21, _AXI_DMAC_BUS_TYPE_FIFO@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.6:
	str	w8, [x19]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.7:
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.8:
	str	w8, [x19, #4]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.9:
	ldr	w8, [sp, #12]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x19, #8]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.10:
	ldr	w8, [sp, #12]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	str	w0, [x19, #12]
	ldr	w1, [x19, #8]
	bl	_max
	sub	x8, x0, #1
	str	x8, [x19, #24]
	mov	x0, x19
	bl	_axi_dmac_dest_is_mem
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_axi_dmac_src_is_mem
	cbz	x0, LBB0_13
; %bb.12:
	mov	w0, #0
Lloh15:
	adrp	x8, _DMA_MEM_TO_MEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DMA_MEM_TO_MEM@GOTPAGEOFF]
	b	LBB0_20
LBB0_13:
	mov	x0, x19
	bl	_axi_dmac_dest_is_mem
	cbz	x0, LBB0_17
LBB0_14:
	mov	x0, x19
	bl	_axi_dmac_dest_is_mem
	cbz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_axi_dmac_src_is_mem
	cbz	x0, LBB0_19
LBB0_16:
	mov	w0, #0
Lloh17:
	adrp	x8, _DMA_DEV_TO_DEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMA_DEV_TO_DEV@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	mov	x0, x19
	bl	_axi_dmac_src_is_mem
	cbz	x0, LBB0_14
; %bb.18:
	mov	w0, #0
Lloh19:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh21:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"adi,source-bus-type"

	.comm	_AXI_DMAC_BUS_TYPE_FIFO,4,2     ; @AXI_DMAC_BUS_TYPE_FIFO
l_.str.2:                               ; @.str.2
	.asciz	"adi,destination-bus-type"

l_.str.3:                               ; @.str.3
	.asciz	"adi,source-bus-width"

l_.str.4:                               ; @.str.4
	.asciz	"adi,destination-bus-width"

	.comm	_DMA_MEM_TO_MEM,4,2             ; @DMA_MEM_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_DMA_DEV_TO_DEV,4,2             ; @DMA_DEV_TO_DEV
	.no_dead_strip	_axi_dmac_parse_chan_dt
.subsections_via_symbols
