	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bam_dma_probe
_bam_dma_probe:                         ## @bam_dma_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$176, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%r12, 144(%rax)
	movq	_bam_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%rax), %eax
	movl	%eax, 168(%r14)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 160(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	160(%r14), %rdi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_45:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movl	(%r12), %edi
	leaq	8(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movq	144(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_45
LBB0_9:
	movq	%rax, %rbx
	jmp	LBB0_45
LBB0_12:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_of_property_read_bool
	movq	%rax, 136(%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movl	(%r12), %edi
	leaq	12(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	144(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_err
LBB0_15:
	movl	(%r12), %edi
	leaq	16(%r14), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movq	144(%r14), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_err
LBB0_17:
	movq	144(%r14), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	cmpq	$0, 136(%r14)
	je	LBB0_20
## %bb.21:
	movq	$0, 24(%r14)
	xorl	%edi, %edi
	jmp	LBB0_22
LBB0_18:
	movq	24(%r14), %rdi
LBB0_22:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %ebx
	movq	144(%r14), %rdi
	leaq	L_.str.9(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_45
LBB0_24:
	movq	%r14, %rdi
	callq	_bam_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_44
## %bb.25:
	leaq	32(%r14), %r15
	movq	_dma_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_tasklet_init
	movq	144(%r14), %rdi
	movl	12(%r14), %esi
	movl	(%r13), %ecx
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	leaq	128(%r14), %rdi
	callq	_INIT_LIST_HEAD
	cmpl	$0, 12(%r14)
	jle	LBB0_30
## %bb.28:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_bam_channel_init
	incq	%rbx
	movslq	12(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_29
LBB0_30:
	movq	144(%r14), %rdi
	movl	(%r14), %esi
	movq	_bam_dma_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.10(%rip), %r8
	movq	%r14, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_40
## %bb.31:
	movq	144(%r14), %rdi
	movq	%rdi, 56(%r14)
	leaq	152(%r14), %rax
	movq	%rax, 8(%rdi)
	movq	_BAM_FIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dma_set_max_seg_size
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movl	%eax, %ebx
	movq	144(%r14), %rdi
	leaq	L_.str.11(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_40
LBB0_20:
	movq	24(%r14), %rdi
	jmp	LBB0_7
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_43
LBB0_33:
	movq	%r14, %r13
	addq	$48, %r13
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movl	124(%r14), %edi
	callq	_dma_cap_zero
	movq	_DMA_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	124(%r14), %esi
	callq	_dma_cap_set
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_DMA_MEM_TO_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	movl	%eax, 48(%r14)
	movq	_DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%r14)
	movq	_DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 112(%r14)
	movq	%rax, 104(%r14)
	movq	_bam_alloc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%r14)
	movq	_bam_free_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%r14)
	movq	_bam_prep_slave_sg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movq	_bam_slave_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r14)
	movq	_bam_pause@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r14)
	movq	_bam_resume@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%r14)
	movq	_bam_dma_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r14)
	movq	_bam_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r14)
	movq	_bam_tx_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movq	144(%r14), %rax
	movq	%rax, 56(%r14)
	movq	%r13, %rdi
	callq	_dma_async_device_register
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movl	%eax, %ebx
	movq	144(%r14), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_40
LBB0_35:
	movl	(%r12), %edi
	movq	_bam_dma_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	callq	_of_dma_controller_register
	testl	%eax, %eax
	je	LBB0_36
## %bb.39:
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_dma_async_device_unregister
LBB0_40:
	cmpl	$0, 12(%r14)
	jle	LBB0_43
## %bb.41:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rdi
	addq	%r12, %rdi
	callq	_tasklet_kill
	incq	%r13
	movslq	12(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %r13
	jl	LBB0_42
LBB0_43:
	movq	%r15, %rdi
	callq	_tasklet_kill
LBB0_44:
	movq	24(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_45
LBB0_36:
	cmpq	$0, 136(%r14)
	je	LBB0_38
## %bb.37:
	movq	%r12, %rdi
	callq	_pm_runtime_disable
	xorl	%ebx, %ebx
	jmp	LBB0_45
LBB0_38:
	movq	%r12, %rdi
	callq	_pm_runtime_irq_safe
	movq	_BAM_DMA_AUTOSUSPEND_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r12, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r12, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r12, %rdi
	callq	_pm_runtime_set_active
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	xorl	%ebx, %ebx
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bam_of_match,4,2               ## @bam_of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported BAM module\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"qcom,ee"

L_.str.2:                               ## @.str.2
	.asciz	"Execution environment unspecified\n"

L_.str.3:                               ## @.str.3
	.asciz	"qcom,controlled-remotely"

L_.str.4:                               ## @.str.4
	.asciz	"num-channels"

L_.str.5:                               ## @.str.5
	.asciz	"num-channels unspecified in dt\n"

L_.str.6:                               ## @.str.6
	.asciz	"qcom,num-ees"

L_.str.7:                               ## @.str.7
	.asciz	"num-ees unspecified in dt\n"

L_.str.8:                               ## @.str.8
	.asciz	"bam_clk"

L_.str.9:                               ## @.str.9
	.asciz	"failed to prepare/enable clock\n"

	.comm	_dma_tasklet,4,2                ## @dma_tasklet
	.comm	_bam_dma_irq,4,2                ## @bam_dma_irq
	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
L_.str.10:                              ## @.str.10
	.asciz	"bam_dma"

	.comm	_BAM_FIFO_SIZE,4,2              ## @BAM_FIFO_SIZE
L_.str.11:                              ## @.str.11
	.asciz	"cannot set maximum segment size\n"

	.comm	_DMA_SLAVE,4,2                  ## @DMA_SLAVE
	.comm	_DMA_DEV_TO_MEM,4,2             ## @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ## @DMA_MEM_TO_DEV
	.comm	_DMA_RESIDUE_GRANULARITY_SEGMENT,4,2 ## @DMA_RESIDUE_GRANULARITY_SEGMENT
	.comm	_DMA_SLAVE_BUSWIDTH_4_BYTES,8,3 ## @DMA_SLAVE_BUSWIDTH_4_BYTES
	.comm	_bam_alloc_chan,4,2             ## @bam_alloc_chan
	.comm	_bam_free_chan,4,2              ## @bam_free_chan
	.comm	_bam_prep_slave_sg,4,2          ## @bam_prep_slave_sg
	.comm	_bam_slave_config,4,2           ## @bam_slave_config
	.comm	_bam_pause,4,2                  ## @bam_pause
	.comm	_bam_resume,4,2                 ## @bam_resume
	.comm	_bam_dma_terminate_all,4,2      ## @bam_dma_terminate_all
	.comm	_bam_issue_pending,4,2          ## @bam_issue_pending
	.comm	_bam_tx_status,4,2              ## @bam_tx_status
L_.str.12:                              ## @.str.12
	.asciz	"failed to register dma async device\n"

	.comm	_bam_dma_xlate,4,2              ## @bam_dma_xlate
	.comm	_BAM_DMA_AUTOSUSPEND_DELAY,4,2  ## @BAM_DMA_AUTOSUSPEND_DELAY
	.no_dead_strip	_bam_dma_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bam_dma_probe
_bam_dma_probe:                         ; @bam_dma_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #176
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #144]
Lloh2:
	adrp	x8, _bam_of_match@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bam_of_match@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_of_match_node
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x19, #168]
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #160]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x0, [x19, #160]
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19]
	tbnz	x0, #63, LBB0_12
; %bb.10:
	ldr	w0, [x20]
	add	x2, x19, #8
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_u32
	cbz	w0, LBB0_13
; %bb.11:
	mov	x22, x0
	ldr	x0, [x19, #144]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_12:
	mov	x22, x0
	b	LBB0_8
LBB0_13:
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_of_property_read_bool
	str	x0, [x19, #136]
	cbz	x0, LBB0_18
; %bb.14:
	ldr	w0, [x20]
	add	x2, x19, #12
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_of_property_read_u32
	cbz	w0, LBB0_16
; %bb.15:
	ldr	x0, [x19, #144]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
LBB0_16:
	ldr	w0, [x20]
	add	x2, x19, #16
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_of_property_read_u32
	cbz	w0, LBB0_18
; %bb.17:
	ldr	x0, [x19, #144]
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
LBB0_18:
	ldr	x0, [x19, #144]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.19:
	ldr	x8, [x19, #136]
	cbz	x8, LBB0_32
; %bb.20:
	mov	x0, #0
	str	xzr, [x19, #24]
	b	LBB0_22
LBB0_21:
	ldr	x0, [x19, #24]
LBB0_22:
	bl	_clk_prepare_enable
	cbz	w0, LBB0_24
; %bb.23:
	mov	x22, x0
	ldr	x0, [x19, #144]
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_24:
	mov	x0, x19
	bl	_bam_init
	mov	x22, x0
	cbnz	w0, LBB0_42
; %bb.25:
	add	x21, x19, #32
Lloh32:
	adrp	x8, _dma_tasklet@GOTPAGE
Lloh33:
	ldr	x8, [x8, _dma_tasklet@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_tasklet_init
	ldr	x0, [x19, #144]
	ldr	w1, [x19, #12]
	ldr	w3, [x23]
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_33
; %bb.26:
	add	x0, x19, #128
	bl	_INIT_LIST_HEAD
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.27:
	mov	x23, #0
	mov	x22, #0
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x1, x8, x23
	mov	x0, x19
	mov	x2, x22
	bl	_bam_channel_init
	add	x22, x22, #1
	ldrsw	x8, [x19, #12]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_28
LBB0_29:
	ldr	x0, [x19, #144]
	ldr	w1, [x19]
Lloh35:
	adrp	x8, _bam_dma_irq@GOTPAGE
Lloh36:
	ldr	x8, [x8, _bam_dma_irq@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	adrp	x4, l_.str.10@PAGE
Lloh42:
	add	x4, x4, l_.str.10@PAGEOFF
	mov	x5, x19
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_38
; %bb.30:
	ldr	x0, [x19, #144]
	str	x0, [x19, #56]
	add	x8, x19, #152
	str	x8, [x0, #8]
Lloh43:
	adrp	x8, _BAM_FIFO_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BAM_FIFO_SIZE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_dma_set_max_seg_size
	cbz	w0, LBB0_34
; %bb.31:
	mov	x22, x0
	ldr	x0, [x19, #144]
Lloh46:
	adrp	x1, l_.str.11@PAGE
Lloh47:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_err
	b	LBB0_38
LBB0_32:
	ldr	x0, [x19, #24]
	b	LBB0_4
LBB0_33:
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_41
LBB0_34:
	add	x23, x19, #48
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	w0, [x19, #124]
	bl	_dma_cap_zero
Lloh51:
	adrp	x8, _DMA_SLAVE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _DMA_SLAVE@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	ldr	w1, [x19, #124]
	bl	_dma_cap_set
Lloh54:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh55:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh57:
	adrp	x8, _DMA_MEM_TO_DEV@GOTPAGE
Lloh58:
	ldr	x8, [x8, _DMA_MEM_TO_DEV@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w22
	str	w8, [x19, #48]
Lloh60:
	adrp	x8, _DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPAGE
Lloh61:
	ldr	x8, [x8, _DMA_RESIDUE_GRANULARITY_SEGMENT@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
Lloh63:
	adrp	x9, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGE
Lloh64:
	ldr	x9, [x9, _DMA_SLAVE_BUSWIDTH_4_BYTES@GOTPAGEOFF]
	str	w8, [x19, #120]
Lloh65:
	ldr	x8, [x9]
	stp	x8, x8, [x19, #104]
Lloh66:
	adrp	x8, _bam_alloc_chan@GOTPAGE
Lloh67:
	ldr	x8, [x8, _bam_alloc_chan@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	str	w8, [x19, #96]
Lloh69:
	adrp	x8, _bam_free_chan@GOTPAGE
Lloh70:
	ldr	x8, [x8, _bam_free_chan@GOTPAGEOFF]
Lloh71:
	adrp	x9, _bam_prep_slave_sg@GOTPAGE
Lloh72:
	ldr	x9, [x9, _bam_prep_slave_sg@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
Lloh74:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #88]
Lloh75:
	adrp	x8, _bam_slave_config@GOTPAGE
Lloh76:
	ldr	x8, [x8, _bam_slave_config@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
Lloh78:
	adrp	x9, _bam_pause@GOTPAGE
Lloh79:
	ldr	x9, [x9, _bam_pause@GOTPAGEOFF]
Lloh80:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #80]
Lloh81:
	adrp	x8, _bam_resume@GOTPAGE
Lloh82:
	ldr	x8, [x8, _bam_resume@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
Lloh84:
	adrp	x9, _bam_dma_terminate_all@GOTPAGE
Lloh85:
	ldr	x9, [x9, _bam_dma_terminate_all@GOTPAGEOFF]
Lloh86:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #72]
Lloh87:
	adrp	x8, _bam_issue_pending@GOTPAGE
Lloh88:
	ldr	x8, [x8, _bam_issue_pending@GOTPAGEOFF]
Lloh89:
	adrp	x9, _bam_tx_status@GOTPAGE
Lloh90:
	ldr	x9, [x9, _bam_tx_status@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
Lloh92:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
	ldr	x8, [x19, #144]
	str	x8, [x19, #56]
	mov	x0, x23
	bl	_dma_async_device_register
	cbz	w0, LBB0_36
; %bb.35:
	mov	x22, x0
	ldr	x0, [x19, #144]
Lloh93:
	adrp	x1, l_.str.12@PAGE
Lloh94:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_dev_err
	b	LBB0_38
LBB0_36:
	ldr	w0, [x20]
Lloh95:
	adrp	x8, _bam_dma_xlate@GOTPAGE
Lloh96:
	ldr	x8, [x8, _bam_dma_xlate@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_of_dma_controller_register
	cbz	w0, LBB0_43
; %bb.37:
	mov	x22, x0
	mov	x0, x23
	bl	_dma_async_device_unregister
LBB0_38:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_41
; %bb.39:
	mov	x20, #0
	mov	x23, #0
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, x20
	bl	_tasklet_kill
	add	x23, x23, #1
	ldrsw	x8, [x19, #12]
	add	x20, x20, #4
	cmp	x23, x8
	b.lt	LBB0_40
LBB0_41:
	mov	x0, x21
	bl	_tasklet_kill
LBB0_42:
	ldr	x0, [x19, #24]
	bl	_clk_disable_unprepare
	b	LBB0_8
LBB0_43:
	ldr	x8, [x19, #136]
	cbz	x8, LBB0_45
; %bb.44:
	mov	x0, x20
	bl	_pm_runtime_disable
	mov	w22, #0
	b	LBB0_8
LBB0_45:
	mov	x0, x20
	bl	_pm_runtime_irq_safe
Lloh98:
	adrp	x8, _BAM_DMA_AUTOSUSPEND_DELAY@GOTPAGE
Lloh99:
	ldr	x8, [x8, _BAM_DMA_AUTOSUSPEND_DELAY@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x20
	bl	_pm_runtime_use_autosuspend
	mov	x0, x20
	bl	_pm_runtime_mark_last_busy
	mov	x0, x20
	bl	_pm_runtime_set_active
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	w22, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	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 AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh91
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh73
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bam_of_match,4,2               ; @bam_of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported BAM module\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"qcom,ee"

l_.str.2:                               ; @.str.2
	.asciz	"Execution environment unspecified\n"

l_.str.3:                               ; @.str.3
	.asciz	"qcom,controlled-remotely"

l_.str.4:                               ; @.str.4
	.asciz	"num-channels"

l_.str.5:                               ; @.str.5
	.asciz	"num-channels unspecified in dt\n"

l_.str.6:                               ; @.str.6
	.asciz	"qcom,num-ees"

l_.str.7:                               ; @.str.7
	.asciz	"num-ees unspecified in dt\n"

l_.str.8:                               ; @.str.8
	.asciz	"bam_clk"

l_.str.9:                               ; @.str.9
	.asciz	"failed to prepare/enable clock\n"

	.comm	_dma_tasklet,4,2                ; @dma_tasklet
	.comm	_bam_dma_irq,4,2                ; @bam_dma_irq
	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
l_.str.10:                              ; @.str.10
	.asciz	"bam_dma"

	.comm	_BAM_FIFO_SIZE,4,2              ; @BAM_FIFO_SIZE
l_.str.11:                              ; @.str.11
	.asciz	"cannot set maximum segment size\n"

	.comm	_DMA_SLAVE,4,2                  ; @DMA_SLAVE
	.comm	_DMA_DEV_TO_MEM,4,2             ; @DMA_DEV_TO_MEM
	.comm	_DMA_MEM_TO_DEV,4,2             ; @DMA_MEM_TO_DEV
	.comm	_DMA_RESIDUE_GRANULARITY_SEGMENT,4,2 ; @DMA_RESIDUE_GRANULARITY_SEGMENT
	.comm	_DMA_SLAVE_BUSWIDTH_4_BYTES,8,3 ; @DMA_SLAVE_BUSWIDTH_4_BYTES
	.comm	_bam_alloc_chan,4,2             ; @bam_alloc_chan
	.comm	_bam_free_chan,4,2              ; @bam_free_chan
	.comm	_bam_prep_slave_sg,4,2          ; @bam_prep_slave_sg
	.comm	_bam_slave_config,4,2           ; @bam_slave_config
	.comm	_bam_pause,4,2                  ; @bam_pause
	.comm	_bam_resume,4,2                 ; @bam_resume
	.comm	_bam_dma_terminate_all,4,2      ; @bam_dma_terminate_all
	.comm	_bam_issue_pending,4,2          ; @bam_issue_pending
	.comm	_bam_tx_status,4,2              ; @bam_tx_status
l_.str.12:                              ; @.str.12
	.asciz	"failed to register dma async device\n"

	.comm	_bam_dma_xlate,4,2              ; @bam_dma_xlate
	.comm	_BAM_DMA_AUTOSUSPEND_DELAY,4,2  ; @BAM_DMA_AUTOSUSPEND_DELAY
	.no_dead_strip	_bam_dma_probe
.subsections_via_symbols
