	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_dma_chan_probe
_fsl_dma_chan_probe:                    ## @fsl_dma_chan_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$96, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	movl	16(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movl	16(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_8:
	movl	%r14d, (%r13)
	movl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, (%r15)
	movl	%r14d, %eax
LBB0_10:
	xorl	%edi, %edi
	cmpl	%r14d, %eax
	setne	%dil
	callq	_WARN_ON
	movl	16(%r15), %edi
	movl	%edi, 88(%r13)
	movl	-48(%rbp), %eax
	movl	%eax, %ecx
	andl	$3840, %ecx                     ## imm = 0xF00
	xorl	%edx, %edx
	cmpl	$768, %ecx                      ## imm = 0x300
	setb	%dl
	shll	$8, %edx
	addl	%edx, %eax
	addl	$3584, %eax                     ## imm = 0xE00
	shrl	$7, %eax
	andl	$31, %eax
	movl	%eax, 4(%r13)
	movq	_FSL_DMA_MAX_CHANS_PER_DEVICE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_11
## %bb.12:
	movq	24(%r15), %rcx
	movl	%eax, %eax
	movq	%r13, (%rcx,%rax,8)
	leaq	84(%r13), %rdi
	movq	_dma_do_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_tasklet_init
	movl	80(%r13), %edi
	movslq	4(%r13), %rcx
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%r13, %rdi
	callq	_dma_init
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_set_cdar
	movq	_FSL_DMA_IP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	cmpl	$129, %eax
	je	LBB0_15
## %bb.13:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.14:
	movq	_fsl_chan_toggle_ext_pause@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r13)
LBB0_15:
	movq	_fsl_chan_toggle_ext_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r13)
	movq	_fsl_chan_set_src_loop_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r13)
	movq	_fsl_chan_set_dst_loop_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	_fsl_chan_set_request_count@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r13)
LBB0_16:
	leaq	56(%r13), %rdi
	callq	_spin_lock_init
	leaq	52(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%r13), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%r13), %rdi
	callq	_INIT_LIST_HEAD
	movl	$1, 8(%r13)
	leaq	20(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	addq	$24, %r14
	movq	%rax, 32(%r13)
	movq	%r14, %rdi
	callq	_dma_cookie_init
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movq	%rax, 16(%r13)
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movl	16(%r15), %edi
	movl	4(%r13), %edx
	movq	16(%r13), %r8
	testq	%r8, %r8
	jne	LBB0_18
## %bb.17:
	movq	8(%r15), %r8
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_dev_info
	jmp	LBB0_19
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	12(%r13), %edi
	callq	_iounmap
LBB0_7:
	movq	%r13, %rdi
	callq	_kfree
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to ioremap registers\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to find 'reg' property\n"

	.comm	_FSL_DMA_MAX_CHANS_PER_DEVICE,4,2 ## @FSL_DMA_MAX_CHANS_PER_DEVICE
L_.str.2:                               ## @.str.2
	.asciz	"too many channels for device\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dma_do_tasklet,4,2             ## @dma_do_tasklet
L_.str.3:                               ## @.str.3
	.asciz	"chan%d"

	.comm	_FSL_DMA_IP_MASK,4,2            ## @FSL_DMA_IP_MASK
	.comm	_fsl_chan_toggle_ext_pause,4,2  ## @fsl_chan_toggle_ext_pause
	.comm	_fsl_chan_toggle_ext_start,4,2  ## @fsl_chan_toggle_ext_start
	.comm	_fsl_chan_set_src_loop_size,4,2 ## @fsl_chan_set_src_loop_size
	.comm	_fsl_chan_set_dst_loop_size,4,2 ## @fsl_chan_set_dst_loop_size
	.comm	_fsl_chan_set_request_count,4,2 ## @fsl_chan_set_request_count
L_.str.4:                               ## @.str.4
	.asciz	"#%d (%s), irq %d\n"

	.comm	_RUNNING,4,2                    ## @RUNNING
	.no_dead_strip	_fsl_dma_chan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_dma_chan_probe
_fsl_dma_chan_probe:                    ; @fsl_dma_chan_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #96
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x22
	mov	w1, #0
	bl	_of_iomap
	str	w0, [x19, #12]
	cbz	w0, LBB0_5
; %bb.2:
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #0
	bl	_of_address_to_resource
	cbz	w0, LBB0_6
; %bb.3:
	mov	x24, x0
	ldr	w0, [x21, #16]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_17
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_19
LBB0_5:
	ldr	w0, [x21, #16]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_6:
	str	w23, [x19]
	ldr	w8, [x21]
	cbnz	w8, LBB0_8
; %bb.7:
	str	w23, [x21]
	mov	x8, x23
LBB0_8:
	cmp	w8, w23
	cset	w0, ne
	bl	_WARN_ON
	ldr	w0, [x21, #16]
	str	w0, [x19, #88]
	ldr	w8, [sp, #8]
	and	w9, w8, #0xf00
	mov	w10, #3584
	mov	w11, #3840
	cmp	w9, #768
	csel	w9, w11, w10, lo
	add	w8, w9, w8
	ubfx	w8, w8, #7, #5
	str	w8, [x19, #4]
Lloh13:
	adrp	x9, _FSL_DMA_MAX_CHANS_PER_DEVICE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FSL_DMA_MAX_CHANS_PER_DEVICE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_16
; %bb.9:
	ldr	x9, [x21, #24]
	str	x19, [x9, w8, uxtw #3]
	add	x0, x19, #84
Lloh16:
	adrp	x8, _dma_do_tasklet@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dma_do_tasklet@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_tasklet_init
	ldr	w0, [x19, #80]
	ldrsw	x3, [x19, #4]
Lloh19:
	adrp	x2, l_.str.3@PAGE
Lloh20:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x19
	bl	_dma_init
	mov	x0, x19
	mov	w1, #0
	bl	_set_cdar
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _FSL_DMA_IP_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FSL_DMA_IP_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #129
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.11:
Lloh24:
	adrp	x8, _fsl_chan_toggle_ext_pause@GOTPAGE
Lloh25:
	ldr	x8, [x8, _fsl_chan_toggle_ext_pause@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19, #76]
LBB0_12:
Lloh27:
	adrp	x8, _fsl_chan_toggle_ext_start@GOTPAGE
Lloh28:
	ldr	x8, [x8, _fsl_chan_toggle_ext_start@GOTPAGEOFF]
Lloh29:
	adrp	x9, _fsl_chan_set_src_loop_size@GOTPAGE
Lloh30:
	ldr	x9, [x9, _fsl_chan_set_src_loop_size@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #68]
Lloh33:
	adrp	x8, _fsl_chan_set_dst_loop_size@GOTPAGE
Lloh34:
	ldr	x8, [x8, _fsl_chan_set_dst_loop_size@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _fsl_chan_set_request_count@GOTPAGE
Lloh37:
	ldr	x9, [x9, _fsl_chan_set_request_count@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #60]
LBB0_13:
	add	x0, x19, #56
	bl	_spin_lock_init
	add	x0, x19, #52
	bl	_INIT_LIST_HEAD
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	add	x0, x19, #44
	bl	_INIT_LIST_HEAD
	mov	w8, #1
	str	w8, [x19, #8]
	add	x23, x21, #20
	add	x24, x19, #24
	str	x23, [x19, #32]
	mov	x0, x24
	bl	_dma_cookie_init
	mov	x0, x22
	mov	w1, #0
	bl	_irq_of_parse_and_map
	str	x0, [x19, #16]
	mov	x0, x24
	mov	x1, x23
	bl	_list_add_tail
	ldr	w0, [x21, #16]
	ldr	w2, [x19, #4]
	ldr	x4, [x19, #16]
	cbnz	x4, LBB0_15
; %bb.14:
	ldr	x4, [x21, #8]
LBB0_15:
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x3, x20
	bl	_dev_info
	mov	w24, #0
	b	LBB0_19
LBB0_16:
Lloh41:
	adrp	x1, l_.str.2@PAGE
Lloh42:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_17:
	ldr	w0, [x19, #12]
	bl	_iounmap
LBB0_18:
	mov	x0, x19
	bl	_kfree
LBB0_19:
	mov	x0, x24
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to ioremap registers\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to find 'reg' property\n"

	.comm	_FSL_DMA_MAX_CHANS_PER_DEVICE,4,2 ; @FSL_DMA_MAX_CHANS_PER_DEVICE
l_.str.2:                               ; @.str.2
	.asciz	"too many channels for device\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dma_do_tasklet,4,2             ; @dma_do_tasklet
l_.str.3:                               ; @.str.3
	.asciz	"chan%d"

	.comm	_FSL_DMA_IP_MASK,4,2            ; @FSL_DMA_IP_MASK
	.comm	_fsl_chan_toggle_ext_pause,4,2  ; @fsl_chan_toggle_ext_pause
	.comm	_fsl_chan_toggle_ext_start,4,2  ; @fsl_chan_toggle_ext_start
	.comm	_fsl_chan_set_src_loop_size,4,2 ; @fsl_chan_set_src_loop_size
	.comm	_fsl_chan_set_dst_loop_size,4,2 ; @fsl_chan_set_dst_loop_size
	.comm	_fsl_chan_set_request_count,4,2 ; @fsl_chan_set_request_count
l_.str.4:                               ; @.str.4
	.asciz	"#%d (%s), irq %d\n"

	.comm	_RUNNING,4,2                    ; @RUNNING
	.no_dead_strip	_fsl_dma_chan_probe
.subsections_via_symbols
