	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function td_probe
_td_probe:                              ## @td_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_25
## %bb.5:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_resource_size
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movq	_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	callq	_struct_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r15
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_resource_size
	movl	%r15d, %edi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_TIMBDMA_32BIT_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_TIMBDMA_ACR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rsi
	callq	_iowrite32
	movq	_TIMBDMA_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	movq	_TIMBDMA_ISR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	$-1, %edi
	callq	_iowrite32
	leaq	8(%r15), %rbx
	movq	_td_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_tasklet_init
	movq	_td_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	movq	%r15, %r8
	callq	_request_irq
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_22
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_25
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_25
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_24
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r12d
	jmp	LBB0_23
LBB0_14:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	_td_alloc_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, %rbx
	addq	$16, %rbx
	movl	%eax, 56(%r15)
	movq	_td_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movq	_td_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movq	_td_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movq	_DMA_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r15), %esi
	callq	_dma_cap_set
	movq	_DMA_PRIVATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r15), %esi
	callq	_dma_cap_set
	movq	_td_prep_slave_sg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_td_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, 24(%r15)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	cmpl	$0, (%r14)
	jle	LBB0_19
## %bb.15:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r14
	movl	%r12d, %eax
	andl	$1, %eax
	cmpl	(%r14,%rbx), %eax
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	64(%rax), %r15
	leaq	(%r15,%r13), %rdi
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15,%r13)
	callq	_dma_cookie_init
	leaq	(%r15,%r13), %rdi
	addq	$52, %rdi
	callq	_spin_lock_init
	leaq	(%r15,%r13), %rdi
	addq	$48, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r13), %rdi
	addq	$44, %rdi
	callq	_INIT_LIST_HEAD
	leaq	(%r15,%r13), %rdi
	addq	$40, %rdi
	callq	_INIT_LIST_HEAD
	movl	12(%r14,%rbx), %eax
	movl	%eax, 36(%r15,%r13)
	movl	8(%r14,%rbx), %eax
	movl	%eax, 32(%r15,%r13)
	movl	4(%r14,%rbx), %eax
	movl	%eax, 28(%r15,%r13)
	movl	%r12d, %ecx
	shrl	%ecx
	cmpl	$0, (%r14,%rbx)
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
	cmoveq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15,%r13)
	movq	_TIMBDMA_INSTANCE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	_TIMBDMA_INSTANCE_TX_OFFSET@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	$0, %esi
	cmovneq	%rsi, %rdx
	imulq	%rax, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rcx
	addq	%rdx, %rcx
	movq	%rcx, 16(%r15,%r13)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	incq	%r12
	movslq	(%r14), %rax
	addq	$56, %r13
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_16
LBB0_19:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_async_device_register
	testl	%eax, %eax
	je	LBB0_26
## %bb.20:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	jmp	LBB0_21
LBB0_17:
	leaq	L_.str.4(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_21:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_free_irq
LBB0_22:
	movq	%rbx, %rdi
	callq	_tasklet_kill
	movq	(%r15), %rdi
	callq	_iounmap
LBB0_23:
	movq	%r15, %rdi
	callq	_kfree
LBB0_24:
	movl	(%r14), %ebx
	movq	%r14, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_25:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_platform_set_drvdata
	leaq	L_.str.7(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_channels,4,2                   ## @channels
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Allocated TD: %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to remap I/O memory\n"

	.comm	_TIMBDMA_32BIT_ADDR,4,2         ## @TIMBDMA_32BIT_ADDR
	.comm	_TIMBDMA_ACR,8,3                ## @TIMBDMA_ACR
	.comm	_TIMBDMA_IER,8,3                ## @TIMBDMA_IER
	.comm	_TIMBDMA_ISR,8,3                ## @TIMBDMA_ISR
	.comm	_td_tasklet,4,2                 ## @td_tasklet
	.comm	_td_irq,4,2                     ## @td_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.3:                               ## @.str.3
	.asciz	"Failed to request IRQ\n"

	.comm	_td_alloc_chan_resources,4,2    ## @td_alloc_chan_resources
	.comm	_td_free_chan_resources,4,2     ## @td_free_chan_resources
	.comm	_td_tx_status,4,2               ## @td_tx_status
	.comm	_td_issue_pending,4,2           ## @td_issue_pending
	.comm	_DMA_SLAVE,4,2                  ## @DMA_SLAVE
	.comm	_DMA_PRIVATE,4,2                ## @DMA_PRIVATE
	.comm	_td_prep_slave_sg,4,2           ## @td_prep_slave_sg
	.comm	_td_terminate_all,4,2           ## @td_terminate_all
L_.str.4:                               ## @.str.4
	.asciz	"Wrong channel configuration\n"

	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_TIMBDMA_INSTANCE_OFFSET,4,2    ## @TIMBDMA_INSTANCE_OFFSET
	.comm	_TIMBDMA_INSTANCE_TX_OFFSET,8,3 ## @TIMBDMA_INSTANCE_TX_OFFSET
L_.str.5:                               ## @.str.5
	.asciz	"Chan: %d, membase: %p\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to register async device\n"

L_.str.7:                               ## @.str.7
	.asciz	"Probe result: %d\n"

	.no_dead_strip	_td_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function td_probe
_td_probe:                              ; @td_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_dev_get_platdata
	cbz	x0, LBB0_8
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	w22, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
Lloh3:
	adrp	x25, _DRIVER_NAME@GOTPAGE
Lloh4:
	ldr	x25, [x25, _DRIVER_NAME@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x22
	bl	_request_mem_region
	cbz	w0, LBB0_12
; %bb.4:
Lloh5:
	adrp	x8, _channels@GOTPAGE
Lloh6:
	ldr	x8, [x8, _channels@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x23]
	bl	_struct_size
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.5:
	mov	x22, x0
	str	x0, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w24, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x24
	bl	_ioremap
	str	x0, [x22]
	cbz	x0, LBB0_14
; %bb.6:
Lloh13:
	adrp	x8, _TIMBDMA_32BIT_ADDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TIMBDMA_32BIT_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _TIMBDMA_ACR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TIMBDMA_ACR@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x0
	mov	x0, x8
	bl	_iowrite32
	ldr	x8, [x22]
Lloh19:
	adrp	x9, _TIMBDMA_IER@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TIMBDMA_IER@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	mov	x24, x22
	ldr	x8, [x24], #8
Lloh22:
	adrp	x9, _TIMBDMA_ISR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TIMBDMA_ISR@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_iowrite32
Lloh25:
	adrp	x8, _td_tasklet@GOTPAGE
Lloh26:
	ldr	x8, [x8, _td_tasklet@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x24
	mov	x2, x22
	bl	_tasklet_init
Lloh28:
	adrp	x8, _td_irq@GOTPAGE
Lloh29:
	ldr	x8, [x8, _td_irq@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	ldr	w3, [x25]
	mov	x0, x21
	mov	x4, x22
	bl	_request_irq
	cbz	w0, LBB0_15
; %bb.7:
	mov	x25, x0
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_23
LBB0_8:
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_12:
Lloh40:
	adrp	x8, _EBUSY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_13:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_25
LBB0_14:
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh47:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_24
LBB0_15:
	str	w21, [sp, #28]                  ; 4-byte Folded Spill
	stp	x24, x19, [sp, #32]             ; 16-byte Folded Spill
Lloh50:
	adrp	x8, _td_alloc_chan_resources@GOTPAGE
Lloh51:
	ldr	x8, [x8, _td_alloc_chan_resources@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	add	x19, x22, #16
Lloh53:
	adrp	x9, _td_free_chan_resources@GOTPAGE
Lloh54:
	ldr	x9, [x9, _td_free_chan_resources@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #52]
Lloh56:
	adrp	x8, _td_tx_status@GOTPAGE
Lloh57:
	ldr	x8, [x8, _td_tx_status@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	adrp	x9, _td_issue_pending@GOTPAGE
Lloh60:
	ldr	x9, [x9, _td_issue_pending@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #44]
Lloh62:
	adrp	x8, _DMA_SLAVE@GOTPAGE
Lloh63:
	ldr	x8, [x8, _DMA_SLAVE@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	ldr	w1, [x22, #40]
	bl	_dma_cap_set
Lloh65:
	adrp	x8, _DMA_PRIVATE@GOTPAGE
Lloh66:
	ldr	x8, [x8, _DMA_PRIVATE@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	ldr	w1, [x22, #40]
	bl	_dma_cap_set
Lloh68:
	adrp	x8, _td_prep_slave_sg@GOTPAGE
Lloh69:
	ldr	x8, [x8, _td_prep_slave_sg@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
Lloh71:
	adrp	x9, _td_terminate_all@GOTPAGE
Lloh72:
	ldr	x9, [x9, _td_terminate_all@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #32]
	stp	x19, x22, [sp, #48]             ; 16-byte Folded Spill
	str	x20, [x22, #24]
	mov	x0, x19
	bl	_INIT_LIST_HEAD
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.16:
	mov	x26, #0
	mov	x24, #0
	mov	w25, #52
	ldp	x21, x19, [sp, #48]             ; 16-byte Folded Reload
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x23, #8]
	and	w8, w24, #0x1
	ldr	w9, [x22, x26]
	cmp	w8, w9
	b.eq	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x19, #64]
	add	x27, x8, x25
	stur	x21, [x27, #-44]
	sub	x28, x27, #52
	mov	x0, x28
	bl	_dma_cookie_init
	mov	x0, x27
	bl	_spin_lock_init
	sub	x0, x27, #4
	bl	_INIT_LIST_HEAD
	sub	x0, x27, #8
	bl	_INIT_LIST_HEAD
	sub	x0, x27, #12
	bl	_INIT_LIST_HEAD
	add	x8, x22, x26
	ldr	w9, [x8, #12]
	stur	w9, [x27, #-16]
	ldur	d0, [x8, #4]
	stur	d0, [x27, #-24]
	ldr	w8, [x8]
	cmp	w8, #0
Lloh74:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh75:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh76:
	adrp	x9, _DMA_MEM_TO_DEV@GOTPAGE
Lloh77:
	ldr	x9, [x9, _DMA_MEM_TO_DEV@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	stur	w8, [x27, #-28]
	ldr	x8, [x19]
	ubfx	x9, x24, #1, #31
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
Lloh78:
	adrp	x10, _TIMBDMA_INSTANCE_OFFSET@GOTPAGE
Lloh79:
	ldr	x10, [x10, _TIMBDMA_INSTANCE_OFFSET@GOTPAGEOFF]
Lloh80:
	ldrsw	x10, [x10]
	madd	x8, x10, x9, x8
Lloh81:
	adrp	x9, _TIMBDMA_INSTANCE_TX_OFFSET@GOTPAGE
Lloh82:
	ldr	x9, [x9, _TIMBDMA_INSTANCE_TX_OFFSET@GOTPAGEOFF]
Lloh83:
	ldr	x9, [x9]
	csel	x9, x9, xzr, eq
	add	x8, x8, x9
	stur	x8, [x27, #-36]
	stp	x24, x8, [sp]
	mov	x0, x20
Lloh84:
	adrp	x1, l_.str.5@PAGE
Lloh85:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	mov	x0, x28
	mov	x1, x21
	bl	_list_add_tail
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x25, x25, #56
	add	x26, x26, #16
	cmp	x24, x8
	b.lt	LBB0_17
LBB0_19:
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	bl	_dma_async_device_register
	cbz	w0, LBB0_26
; %bb.20:
	mov	x25, x0
Lloh86:
	adrp	x1, l_.str.6@PAGE
Lloh87:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_22
LBB0_21:
Lloh88:
	adrp	x1, l_.str.4@PAGE
Lloh89:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh90:
	adrp	x8, _EINVAL@GOTPAGE
Lloh91:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh92:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_22:
	ldr	x22, [sp, #56]                  ; 8-byte Folded Reload
	ldp	x24, x19, [sp, #32]             ; 16-byte Folded Reload
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	mov	x1, x22
	bl	_free_irq
LBB0_23:
	mov	x0, x24
	bl	_tasklet_kill
	ldr	x0, [x22]
	bl	_iounmap
LBB0_24:
	mov	x0, x22
	bl	_kfree
LBB0_25:
	ldr	w20, [x19]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
	mov	x21, x25
	b	LBB0_11
LBB0_26:
	mov	x0, x20
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
	bl	_platform_set_drvdata
	str	xzr, [sp]
Lloh93:
	adrp	x1, l_.str.7@PAGE
Lloh94:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w21, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpAdd	Lloh93, Lloh94
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_channels,4,2                   ; @channels
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Allocated TD: %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to remap I/O memory\n"

	.comm	_TIMBDMA_32BIT_ADDR,4,2         ; @TIMBDMA_32BIT_ADDR
	.comm	_TIMBDMA_ACR,8,3                ; @TIMBDMA_ACR
	.comm	_TIMBDMA_IER,8,3                ; @TIMBDMA_IER
	.comm	_TIMBDMA_ISR,8,3                ; @TIMBDMA_ISR
	.comm	_td_tasklet,4,2                 ; @td_tasklet
	.comm	_td_irq,4,2                     ; @td_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.3:                               ; @.str.3
	.asciz	"Failed to request IRQ\n"

	.comm	_td_alloc_chan_resources,4,2    ; @td_alloc_chan_resources
	.comm	_td_free_chan_resources,4,2     ; @td_free_chan_resources
	.comm	_td_tx_status,4,2               ; @td_tx_status
	.comm	_td_issue_pending,4,2           ; @td_issue_pending
	.comm	_DMA_SLAVE,4,2                  ; @DMA_SLAVE
	.comm	_DMA_PRIVATE,4,2                ; @DMA_PRIVATE
	.comm	_td_prep_slave_sg,4,2           ; @td_prep_slave_sg
	.comm	_td_terminate_all,4,2           ; @td_terminate_all
l_.str.4:                               ; @.str.4
	.asciz	"Wrong channel configuration\n"

	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_TIMBDMA_INSTANCE_OFFSET,4,2    ; @TIMBDMA_INSTANCE_OFFSET
	.comm	_TIMBDMA_INSTANCE_TX_OFFSET,8,3 ; @TIMBDMA_INSTANCE_TX_OFFSET
l_.str.5:                               ; @.str.5
	.asciz	"Chan: %d, membase: %p\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to register async device\n"

l_.str.7:                               ; @.str.7
	.asciz	"Probe result: %d\n"

	.no_dead_strip	_td_probe
.subsections_via_symbols
