	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_dma_init_virtual_channels
_s3c24xx_dma_init_virtual_channels:     ## @s3c24xx_dma_init_virtual_channels
	.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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%rsi), %rdi
	callq	_INIT_LIST_HEAD
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movl	%ebx, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r12)
	movq	_S3C24XX_DMA_CHAN_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, 4(%r12)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edx
	callq	_kasprintf
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_dbg
	movq	_s3c24xx_dma_desc_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	addq	$8, %rdi
	movl	%eax, 8(%r12)
	movq	%r13, %rsi
	callq	_vchan_init
	incl	%ebx
	cmpl	%ebx, %r15d
	jne	LBB0_2
LBB0_9:
	movl	(%r13), %edi
	testl	%r14d, %r14d
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_info
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %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
	.comm	_S3C24XX_DMA_CHAN_IDLE,4,2      ## @S3C24XX_DMA_CHAN_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slave%d"

L_.str.1:                               ## @.str.1
	.asciz	"memcpy%d"

L_.str.2:                               ## @.str.2
	.asciz	"initialize virtual channel \"%s\"\n"

	.comm	_s3c24xx_dma_desc_free,4,2      ## @s3c24xx_dma_desc_free
L_.str.3:                               ## @.str.3
	.asciz	"initialized %d virtual %s channels\n"

L_.str.4:                               ## @.str.4
	.asciz	"slave"

L_.str.5:                               ## @.str.5
	.asciz	"memcpy"

	.no_dead_strip	_s3c24xx_dma_init_virtual_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_dma_init_virtual_channels
_s3c24xx_dma_init_virtual_channels:     ; @s3c24xx_dma_init_virtual_channels
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	add	x0, x1, #4
	bl	_INIT_LIST_HEAD
	cbz	w19, LBB0_8
; %bb.1:
	mov	w23, #0
Lloh0:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _S3C24XX_DMA_CHAN_IDLE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _S3C24XX_DMA_CHAN_IDLE@GOTPAGEOFF]
Lloh4:
	adrp	x25, l_.str.2@PAGE
Lloh5:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh6:
	adrp	x26, _s3c24xx_dma_desc_free@GOTPAGE
Lloh7:
	ldr	x26, [x26, _s3c24xx_dma_desc_free@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w2, [x28]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x0
	str	w23, [x0]
	str	x22, [x0, #32]
	ldr	w8, [x24]
	str	w8, [x0, #24]
	cbz	w20, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #1
	str	w8, [x27, #4]
	ldr	w0, [x28]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x23
	bl	_kasprintf
	mov	x2, x0
	str	x0, [x27, #16]
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	mov	x1, x25
	bl	_dev_dbg
	ldr	w8, [x26]
	str	w8, [x27, #8]!
	mov	x0, x27
	mov	x1, x21
	bl	_vchan_init
	add	w23, w23, #1
	cmp	w19, w23
	b.ne	LBB0_2
LBB0_8:
	ldr	w0, [x21]
Lloh12:
	adrp	x8, l_.str.4@PAGE
Lloh13:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh14:
	adrp	x9, l_.str.5@PAGE
Lloh15:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w20, #0
	csel	x3, x9, x8, eq
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_dev_info
	b	LBB0_10
LBB0_9:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_S3C24XX_DMA_CHAN_IDLE,4,2      ; @S3C24XX_DMA_CHAN_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slave%d"

l_.str.1:                               ; @.str.1
	.asciz	"memcpy%d"

l_.str.2:                               ; @.str.2
	.asciz	"initialize virtual channel \"%s\"\n"

	.comm	_s3c24xx_dma_desc_free,4,2      ; @s3c24xx_dma_desc_free
l_.str.3:                               ; @.str.3
	.asciz	"initialized %d virtual %s channels\n"

l_.str.4:                               ; @.str.4
	.asciz	"slave"

l_.str.5:                               ; @.str.5
	.asciz	"memcpy"

	.no_dead_strip	_s3c24xx_dma_init_virtual_channels
.subsections_via_symbols
