	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zynqmp_dma_probe
_zynqmp_dma_probe:                      ## @zynqmp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$96, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, (%rax)
	leaq	72(%rax), %rdi
	callq	_INIT_LIST_HEAD
	movl	$44, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_set_mask
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	68(%rbx), %esi
	callq	_dma_cap_set
	movq	_zynqmp_dma_prep_memcpy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_zynqmp_dma_device_terminate_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	_zynqmp_dma_issue_pending@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	_zynqmp_dma_alloc_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_zynqmp_dma_free_chan_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_dma_cookie_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_zynqmp_dma_device_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r14, 32(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 88(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	88(%rbx), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_16:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 80(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	80(%rbx), %rdi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	(%rbx), %rdi
	movq	_ZDMA_PM_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	(%rbx), %rdi
	callq	_pm_runtime_use_autosuspend
	movq	(%rbx), %rdi
	callq	_pm_runtime_enable
	movq	(%rbx), %rdi
	callq	_pm_runtime_get_sync
	movq	(%rbx), %rdi
	callq	_pm_runtime_enabled
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_zynqmp_dma_chan_probe
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_13
LBB0_8:
	movq	(%rbx), %rdi
	callq	_zynqmp_dma_runtime_resume
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
	jmp	LBB0_9
LBB0_11:
	movq	%rbx, %r12
	addq	$16, %r12
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	callq	_BIT
	movq	%rax, 24(%rbx)
	movq	8(%rbx), %rax
	movl	(%rax), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	callq	_BIT
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	callq	_dma_async_device_register
	movl	(%r14), %edi
	movq	_of_zynqmp_dma_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_of_dma_controller_register
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_dma_async_device_unregister
	movq	8(%rbx), %rdi
	callq	_zynqmp_dma_chan_remove
LBB0_13:
	movq	(%rbx), %rdi
	callq	_pm_runtime_enabled
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movq	(%rbx), %rdi
	callq	_zynqmp_dma_runtime_suspend
LBB0_15:
	movq	(%rbx), %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_16
LBB0_17:
	movq	(%rbx), %rdi
	callq	_pm_runtime_mark_last_busy
	movq	(%rbx), %rdi
	callq	_pm_runtime_put_sync_autosuspend
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.comm	_zynqmp_dma_prep_memcpy,4,2     ## @zynqmp_dma_prep_memcpy
	.comm	_zynqmp_dma_device_terminate_all,4,2 ## @zynqmp_dma_device_terminate_all
	.comm	_zynqmp_dma_issue_pending,4,2   ## @zynqmp_dma_issue_pending
	.comm	_zynqmp_dma_alloc_chan_resources,4,2 ## @zynqmp_dma_alloc_chan_resources
	.comm	_zynqmp_dma_free_chan_resources,4,2 ## @zynqmp_dma_free_chan_resources
	.comm	_dma_cookie_status,4,2          ## @dma_cookie_status
	.comm	_zynqmp_dma_device_config,4,2   ## @zynqmp_dma_device_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clk_main"

L_.str.1:                               ## @.str.1
	.asciz	"main clock not found.\n"

L_.str.2:                               ## @.str.2
	.asciz	"clk_apb"

L_.str.3:                               ## @.str.3
	.asciz	"apb clock not found.\n"

	.comm	_ZDMA_PM_TIMEOUT,4,2            ## @ZDMA_PM_TIMEOUT
L_.str.4:                               ## @.str.4
	.asciz	"Probing channel failed\n"

	.comm	_of_zynqmp_dma_xlate,4,2        ## @of_zynqmp_dma_xlate
L_.str.5:                               ## @.str.5
	.asciz	"Unable to register DMA to DT\n"

L_.str.6:                               ## @.str.6
	.asciz	"ZynqMP DMA driver Probe success\n"

	.no_dead_strip	_zynqmp_dma_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zynqmp_dma_probe
_zynqmp_dma_probe:                      ; @zynqmp_dma_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #96
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x20, [x0], #72
	bl	_INIT_LIST_HEAD
	mov	w0, #44
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_mask
Lloh3:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x19, #68]
	bl	_dma_cap_set
Lloh6:
	adrp	x8, _zynqmp_dma_prep_memcpy@GOTPAGE
Lloh7:
	ldr	x8, [x8, _zynqmp_dma_prep_memcpy@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _zynqmp_dma_device_terminate_all@GOTPAGE
Lloh10:
	ldr	x9, [x9, _zynqmp_dma_device_terminate_all@GOTPAGEOFF]
	str	w8, [x19, #64]
Lloh11:
	ldr	w8, [x9]
Lloh12:
	adrp	x9, _zynqmp_dma_issue_pending@GOTPAGE
Lloh13:
	ldr	x9, [x9, _zynqmp_dma_issue_pending@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
Lloh15:
	adrp	x8, _zynqmp_dma_alloc_chan_resources@GOTPAGE
Lloh16:
	ldr	x8, [x8, _zynqmp_dma_alloc_chan_resources@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _zynqmp_dma_free_chan_resources@GOTPAGE
Lloh19:
	ldr	x9, [x9, _zynqmp_dma_free_chan_resources@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh21:
	adrp	x8, _dma_cookie_status@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dma_cookie_status@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _zynqmp_dma_device_config@GOTPAGE
Lloh25:
	ldr	x9, [x9, _zynqmp_dma_device_config@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	str	x20, [x19, #32]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #88]
	b	LBB0_7
LBB0_3:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #80]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x0, [x19]
Lloh38:
	adrp	x8, _ZDMA_PM_TIMEOUT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ZDMA_PM_TIMEOUT@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x19]
	bl	_pm_runtime_use_autosuspend
	ldr	x0, [x19]
	bl	_pm_runtime_enable
	ldr	x0, [x19]
	bl	_pm_runtime_get_sync
	ldr	x0, [x19]
	bl	_pm_runtime_enabled
	cbz	w0, LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_zynqmp_dma_chan_probe
	cbz	w0, LBB0_12
; %bb.10:
	mov	x21, x0
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_14
LBB0_11:
	ldr	x0, [x19]
	bl	_zynqmp_dma_runtime_resume
	mov	x21, x0
	cbnz	w0, LBB0_4
	b	LBB0_9
LBB0_12:
	add	x22, x19, #16
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	bl	_BIT
	str	x0, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	bl	_BIT
	str	x0, [x19, #16]
	mov	x0, x22
	bl	_dma_async_device_register
	ldr	w0, [x20]
Lloh43:
	adrp	x8, _of_zynqmp_dma_xlate@GOTPAGE
Lloh44:
	ldr	x8, [x8, _of_zynqmp_dma_xlate@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_of_dma_controller_register
	mov	x21, x0
	cbz	w0, LBB0_17
; %bb.13:
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x22
	bl	_dma_async_device_unregister
	ldr	x0, [x19, #8]
	bl	_zynqmp_dma_chan_remove
LBB0_14:
	ldr	x0, [x19]
	bl	_pm_runtime_enabled
	cbnz	w0, LBB0_16
; %bb.15:
	ldr	x0, [x19]
	bl	_zynqmp_dma_runtime_suspend
LBB0_16:
	ldr	x0, [x19]
	bl	_pm_runtime_disable
	b	LBB0_4
LBB0_17:
	ldr	x0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	x0, [x19]
	bl	_pm_runtime_put_sync_autosuspend
Lloh48:
	adrp	x1, l_.str.6@PAGE
Lloh49:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.comm	_zynqmp_dma_prep_memcpy,4,2     ; @zynqmp_dma_prep_memcpy
	.comm	_zynqmp_dma_device_terminate_all,4,2 ; @zynqmp_dma_device_terminate_all
	.comm	_zynqmp_dma_issue_pending,4,2   ; @zynqmp_dma_issue_pending
	.comm	_zynqmp_dma_alloc_chan_resources,4,2 ; @zynqmp_dma_alloc_chan_resources
	.comm	_zynqmp_dma_free_chan_resources,4,2 ; @zynqmp_dma_free_chan_resources
	.comm	_dma_cookie_status,4,2          ; @dma_cookie_status
	.comm	_zynqmp_dma_device_config,4,2   ; @zynqmp_dma_device_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clk_main"

l_.str.1:                               ; @.str.1
	.asciz	"main clock not found.\n"

l_.str.2:                               ; @.str.2
	.asciz	"clk_apb"

l_.str.3:                               ; @.str.3
	.asciz	"apb clock not found.\n"

	.comm	_ZDMA_PM_TIMEOUT,4,2            ; @ZDMA_PM_TIMEOUT
l_.str.4:                               ; @.str.4
	.asciz	"Probing channel failed\n"

	.comm	_of_zynqmp_dma_xlate,4,2        ; @of_zynqmp_dma_xlate
l_.str.5:                               ; @.str.5
	.asciz	"Unable to register DMA to DT\n"

l_.str.6:                               ; @.str.6
	.asciz	"ZynqMP DMA driver Probe success\n"

	.no_dead_strip	_zynqmp_dma_probe
.subsections_via_symbols
