	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_dma_parse_dt                ## -- Begin function dw_dma_parse_dt
	.p2align	4, 0x90
_dw_dma_parse_dt:                       ## @dw_dma_parse_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	movq	_DW_DMA_MAX_NR_MASTERS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_DW_DMA_MAX_NR_CHANNELS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_4
## %bb.7:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_5
## %bb.8:
	cmpl	(%r15), %eax
	jg	LBB0_5
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_4
## %bb.11:
	movl	-60(%rbp), %eax
	cmpl	(%r12), %eax
	jg	LBB0_4
## %bb.13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.14:
	movq	%rax, %rbx
	movl	-56(%rbp), %eax
	movl	%eax, (%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, 4(%rbx)
	leaq	L_.str.3(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movb	-52(%rbp), %al
	movb	%al, 8(%rbx)
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_18
## %bb.17:
	movl	-52(%rbp), %eax
	movl	%eax, 12(%rbx)
LBB0_18:
	leaq	L_.str.5(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movl	-52(%rbp), %eax
	movl	%eax, 16(%rbx)
LBB0_20:
	movl	-56(%rbp), %ecx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32_array
	testl	%eax, %eax
	je	LBB0_26
## %bb.21:
	movl	-56(%rbp), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_of_property_read_u32_array
	testl	%eax, %eax
	jne	LBB0_29
## %bb.22:
	movl	$0, -52(%rbp)
	cmpl	$0, -56(%rbp)
	jle	LBB0_29
## %bb.23:
	xorl	%eax, %eax
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cltq
	movl	(%r14,%rax,4), %edi
	andl	$7, %edi
	callq	_BIT
	movq	24(%rbx), %rcx
	movslq	-52(%rbp), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	-52(%rbp), %eax
	incl	%eax
	movl	%eax, -52(%rbp)
	cmpl	-56(%rbp), %eax
	jl	LBB0_24
	jmp	LBB0_29
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_40
## %bb.6:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movl	$0, -52(%rbp)
	cmpl	$0, -56(%rbp)
	jle	LBB0_29
## %bb.27:
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rcx
	movl	(%r14,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	movl	-52(%rbp), %ecx
	incl	%ecx
	movl	%ecx, -52(%rbp)
	cmpl	-56(%rbp), %ecx
	jl	LBB0_28
LBB0_29:
	movl	-60(%rbp), %ecx
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_of_property_read_u32_array
	movl	$0, -52(%rbp)
	movl	-60(%rbp), %ecx
	testl	%eax, %eax
	je	LBB0_33
## %bb.30:
	testl	%ecx, %ecx
	jle	LBB0_36
## %bb.31:
	movq	32(%rbx), %rax
	xorl	%ecx, %ecx
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rcx
	movl	$1, (%rax,%rcx,4)
	movl	-52(%rbp), %ecx
	incl	%ecx
	movl	%ecx, -52(%rbp)
	cmpl	-60(%rbp), %ecx
	jl	LBB0_32
	jmp	LBB0_36
LBB0_33:
	testl	%ecx, %ecx
	jle	LBB0_36
## %bb.34:
	movq	32(%rbx), %rax
	xorl	%ecx, %ecx
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rcx
	movl	(%r14,%rcx,4), %edx
	movl	%edx, (%rax,%rcx,4)
	movl	-52(%rbp), %ecx
	incl	%ecx
	movl	%ecx, -52(%rbp)
	cmpl	-60(%rbp), %ecx
	jl	LBB0_35
LBB0_36:
	leaq	L_.str.9(%rip), %rsi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_5
## %bb.37:
	movl	-52(%rbp), %eax
	movq	_CHAN_PROTCTL_MASK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_4
## %bb.39:
	movl	%eax, 40(%rbx)
	jmp	LBB0_5
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DW_DMA_MAX_NR_MASTERS,4,2      ## @DW_DMA_MAX_NR_MASTERS
	.comm	_DW_DMA_MAX_NR_CHANNELS,4,2     ## @DW_DMA_MAX_NR_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing DT data\n"

L_.str.1:                               ## @.str.1
	.asciz	"dma-masters"

L_.str.2:                               ## @.str.2
	.asciz	"dma-channels"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.3:                               ## @.str.3
	.asciz	"chan_allocation_order"

L_.str.4:                               ## @.str.4
	.asciz	"chan_priority"

L_.str.5:                               ## @.str.5
	.asciz	"block_size"

L_.str.6:                               ## @.str.6
	.asciz	"data-width"

L_.str.7:                               ## @.str.7
	.asciz	"data_width"

L_.str.8:                               ## @.str.8
	.asciz	"multi-block"

L_.str.9:                               ## @.str.9
	.asciz	"snps,dma-protection-control"

	.comm	_CHAN_PROTCTL_MASK,4,2          ## @CHAN_PROTCTL_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dw_dma_parse_dt                ; -- Begin function dw_dma_parse_dt
	.p2align	2
_dw_dma_parse_dt:                       ; @dw_dma_parse_dt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x23, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x0]
Lloh3:
	adrp	x26, _DW_DMA_MAX_NR_MASTERS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DW_DMA_MAX_NR_MASTERS@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x25, _DW_DMA_MAX_NR_CHANNELS@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DW_DMA_MAX_NR_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cbz	x19, LBB0_18
; %bb.1:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #80
	mov	x0, x19
	bl	_of_property_read_u32
	mov	x20, #0
	cbnz	x0, LBB0_20
; %bb.2:
	ldur	w8, [x29, #-80]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.3:
	ldr	w9, [x26]
	cmp	w8, w9
	b.gt	LBB0_20
; %bb.4:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x2, x29, #84
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_19
; %bb.5:
	ldur	w8, [x29, #-84]
	ldr	w9, [x25]
	cmp	w8, w9
	b.gt	LBB0_19
; %bb.6:
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w1, #48
	bl	_devm_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_20
; %bb.7:
	ldur	w8, [x29, #-80]
	str	w8, [x20]
	ldur	w8, [x29, #-84]
	str	w8, [x20, #4]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x2, x29, #76
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_9
; %bb.8:
	ldur	w8, [x29, #-76]
	strb	w8, [x20, #8]
LBB0_9:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x2, x29, #76
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_11
; %bb.10:
	ldur	w8, [x29, #-76]
	str	w8, [x20, #12]
LBB0_11:
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x2, x29, #76
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_13
; %bb.12:
	ldur	w8, [x29, #-76]
	str	w8, [x20, #16]
LBB0_13:
	ldur	w3, [x29, #-80]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_of_property_read_u32_array
	cbz	w0, LBB0_22
; %bb.14:
	ldur	w3, [x29, #-80]
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_of_property_read_u32_array
	cbnz	w0, LBB0_25
; %bb.15:
	stur	wzr, [x29, #-76]
	ldur	w8, [x29, #-80]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.16:
	mov	w8, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, w8, sxtw #2]
	and	w0, w8, #0x7
	bl	_BIT
	ldr	x8, [x20, #24]
	ldursw	x9, [x29, #-76]
	str	w0, [x8, x9, lsl #2]
	ldp	w9, w8, [x29, #-80]
	add	w8, w8, #1
	stur	w8, [x29, #-76]
	cmp	w8, w9
	b.lt	LBB0_17
	b	LBB0_25
LBB0_18:
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_err
LBB0_19:
	mov	x20, #0
LBB0_20:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.21:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	stur	wzr, [x29, #-76]
	ldur	w8, [x29, #-80]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.23:
	mov	w9, #0
	ldr	x8, [x20, #24]
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x22, x9]
	str	w10, [x8, x9]
	ldp	w10, w9, [x29, #-80]
	add	w9, w9, #1
	stur	w9, [x29, #-76]
	cmp	w9, w10
	b.lt	LBB0_24
LBB0_25:
	ldur	w3, [x29, #-84]
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_of_property_read_u32_array
	stur	wzr, [x29, #-76]
	ldur	w8, [x29, #-84]
	cmp	w8, #1
	cbz	w0, LBB0_29
; %bb.26:
	b.lt	LBB0_32
; %bb.27:
	mov	w9, #0
	ldr	x8, [x20, #32]
	mov	w10, #1
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x8, w9, sxtw #2]
	ldur	w9, [x29, #-76]
	add	w9, w9, #1
	stur	w9, [x29, #-76]
	ldur	w11, [x29, #-84]
	cmp	w9, w11
	b.lt	LBB0_28
	b	LBB0_32
LBB0_29:
	b.lt	LBB0_32
; %bb.30:
	mov	w9, #0
	ldr	x8, [x20, #32]
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x21, x9]
	str	w10, [x8, x9]
	ldur	w9, [x29, #-76]
	add	w9, w9, #1
	stur	w9, [x29, #-76]
	ldur	w10, [x29, #-84]
	cmp	w9, w10
	b.lt	LBB0_31
LBB0_32:
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
	sub	x2, x29, #76
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_20
; %bb.33:
	ldur	w8, [x29, #-76]
Lloh37:
	adrp	x9, _CHAN_PROTCTL_MASK@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CHAN_PROTCTL_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w8, w9
	b.gt	LBB0_19
; %bb.34:
	str	w8, [x20, #40]
	b	LBB0_20
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_DW_DMA_MAX_NR_MASTERS,4,2      ; @DW_DMA_MAX_NR_MASTERS
	.comm	_DW_DMA_MAX_NR_CHANNELS,4,2     ; @DW_DMA_MAX_NR_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing DT data\n"

l_.str.1:                               ; @.str.1
	.asciz	"dma-masters"

l_.str.2:                               ; @.str.2
	.asciz	"dma-channels"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.3:                               ; @.str.3
	.asciz	"chan_allocation_order"

l_.str.4:                               ; @.str.4
	.asciz	"chan_priority"

l_.str.5:                               ; @.str.5
	.asciz	"block_size"

l_.str.6:                               ; @.str.6
	.asciz	"data-width"

l_.str.7:                               ; @.str.7
	.asciz	"data_width"

l_.str.8:                               ; @.str.8
	.asciz	"multi-block"

l_.str.9:                               ; @.str.9
	.asciz	"snps,dma-protection-control"

	.comm	_CHAN_PROTCTL_MASK,4,2          ; @CHAN_PROTCTL_MASK
.subsections_via_symbols
