	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_dmac_chan_probe
_rcar_dmac_chan_probe:                  ## @rcar_dmac_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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_platform_device
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, (%rbx)
	movq	8(%r14), %r12
	movl	%r15d, %edi
	callq	_RCAR_DMAC_CHAN_OFFSET
	addq	%r12, %rax
	movq	%rax, 40(%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 32(%rbx)
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	leaq	8(%rbx), %r13
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	20(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	12(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	leaq	L_.str(%rip), %rsi
	leaq	-53(%rbp), %r13
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_sprintf
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_platform_get_irq_byname
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	(%r14), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r12d, %edi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %edi
	movl	%r13d, %esi
	movl	%eax, %ecx
	movl	%r15d, %r8d
	callq	_devm_kasprintf
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	leaq	48(%rbx), %r12
	leaq	4(%r14), %r13
	movq	%r13, 56(%rbx)
	movq	%r12, %rdi
	callq	_dma_cookie_init
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	movl	(%r14), %edi
	movl	4(%rbx), %esi
	movq	_rcar_dmac_isr_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_rcar_dmac_isr_channel_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, (%rsp)
	xorl	%r12d, %r12d
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	%eax, %r15d
	movl	(%r14), %edi
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
	movl	%r15d, %r12d
	jmp	LBB0_7
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_6:
	subl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ch%u"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"%s:%u"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rcar_dmac_isr_channel,4,2      ## @rcar_dmac_isr_channel
	.comm	_rcar_dmac_isr_channel_thread,4,2 ## @rcar_dmac_isr_channel_thread
L_.str.2:                               ## @.str.2
	.asciz	"failed to request IRQ %u (%d)\n"

	.no_dead_strip	_rcar_dmac_chan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_dmac_chan_probe
_rcar_dmac_chan_probe:                  ; @rcar_dmac_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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_platform_device
	mov	x22, x0
	str	w21, [x19]
	ldr	x23, [x20, #8]
	mov	x0, x21
	bl	_RCAR_DMAC_CHAN_OFFSET
	add	x8, x0, x23
	str	x8, [x19, #40]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #32]
	add	x0, x19, #28
	bl	_spin_lock_init
	add	x23, x19, #8
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	mov	x0, x23
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #11
	mov	x2, x21
	bl	_sprintf
	add	x1, sp, #11
	mov	x0, x22
	bl	_platform_get_irq_byname
	str	w0, [x19, #4]
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w22, [x20]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	mov	x0, x22
	bl	_dev_name
	mov	x3, x0
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x23
	mov	x4, x21
	bl	_devm_kasprintf
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	add	x22, x19, #48
	add	x23, x20, #4
	str	x23, [x19, #56]
	mov	x0, x22
	bl	_dma_cookie_init
	mov	x0, x22
	mov	x1, x23
	bl	_list_add_tail
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
Lloh10:
	adrp	x8, _rcar_dmac_isr_channel@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rcar_dmac_isr_channel@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x8, _rcar_dmac_isr_channel_thread@GOTPAGE
Lloh14:
	ldr	x8, [x8, _rcar_dmac_isr_channel_thread@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	w4, #0
	mov	x5, x21
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.3:
	ldr	w0, [x20]
	ldr	w2, [x19, #4]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x21
	bl	_dev_err
	b	LBB0_7
LBB0_4:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ch%u"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"%s:%u"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rcar_dmac_isr_channel,4,2      ; @rcar_dmac_isr_channel
	.comm	_rcar_dmac_isr_channel_thread,4,2 ; @rcar_dmac_isr_channel_thread
l_.str.2:                               ; @.str.2
	.asciz	"failed to request IRQ %u (%d)\n"

	.no_dead_strip	_rcar_dmac_chan_probe
.subsections_via_symbols
