	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmatest_add_threads
_dmatest_add_threads:                   ## @dmatest_add_threads
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rsi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_DMA_MEMSET@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_DMA_XOR@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_DMA_PQ@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_17
## %bb.7:
	leaq	L_.str.3(%rip), %rax
LBB0_8:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.10:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r14
	movq	%r12, 40(%rax)
	movq	8(%r15), %rax
	movq	%rax, 32(%r14)
	movl	%r13d, (%r14)
	leaq	16(%r14), %rdi
	movq	%rdi, 24(%r14)
	callq	_init_waitqueue_head
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	_dmatest_func@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_chan_name
	movl	%ebx, %edi
	movq	%r14, %rsi
	leaq	L_.str.5(%rip), %rdx
	movl	%eax, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_kthread_create
	movl	%eax, 12(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	12(%r14), %edi
	callq	_get_task_struct
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movl	$1, 4(%r14)
	incl	%ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpl	(%r12), %ebx
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	jb	LBB0_11
	jmp	LBB0_16
LBB0_9:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_16
LBB0_12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_chan_name
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_pr_warn
	jmp	LBB0_16
LBB0_14:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_chan_name
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_pr_warn
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_16
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
LBB0_16:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"copy"

	.comm	_DMA_MEMSET,4,2                 ## @DMA_MEMSET
L_.str.1:                               ## @.str.1
	.asciz	"set"

	.comm	_DMA_XOR,4,2                    ## @DMA_XOR
L_.str.2:                               ## @.str.2
	.asciz	"xor"

	.comm	_DMA_PQ,4,2                     ## @DMA_PQ
L_.str.3:                               ## @.str.3
	.asciz	"pq"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.4:                               ## @.str.4
	.asciz	"No memory for %s-%s%u\n"

	.comm	_dmatest_func,4,2               ## @dmatest_func
L_.str.5:                               ## @.str.5
	.asciz	"%s-%s%u"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to create thread %s-%s%u\n"

	.no_dead_strip	_dmatest_add_threads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmatest_add_threads
_dmatest_add_threads:                   ; @dmatest_add_threads
	.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, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x1, #8]
Lloh0:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x24, l_.str@PAGE
Lloh4:
	add	x24, x24, l_.str@PAGEOFF
	ldr	w8, [x22]
	cbnz	w8, LBB0_6
	b	LBB0_14
LBB0_2:
Lloh5:
	adrp	x8, _DMA_MEMSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_MEMSET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x24, l_.str.1@PAGE
Lloh9:
	add	x24, x24, l_.str.1@PAGEOFF
	ldr	w8, [x22]
	cbnz	w8, LBB0_6
	b	LBB0_14
LBB0_4:
Lloh10:
	adrp	x8, _DMA_XOR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_XOR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_12
; %bb.5:
Lloh13:
	adrp	x24, l_.str.2@PAGE
Lloh14:
	add	x24, x24, l_.str.2@PAGEOFF
	ldr	w8, [x22]
	cbz	w8, LBB0_14
LBB0_6:
	mov	w23, #0
Lloh15:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	adrp	x25, l_.str.5@PAGE
Lloh18:
	add	x25, x25, l_.str.5@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x0
	str	x22, [x0, #40]
	ldr	x8, [x21, #8]
	str	w20, [x0], #16
	stp	x0, x8, [x26, #24]
	bl	_init_waitqueue_head
	bl	_smp_wmb
Lloh19:
	adrp	x8, _dmatest_func@GOTPAGE
Lloh20:
	ldr	x8, [x8, _dmatest_func@GOTPAGEOFF]
Lloh21:
	ldr	w27, [x8]
	mov	x0, x19
	bl	_dma_chan_name
	mov	x3, x0
	mov	x0, x27
	mov	x1, x26
	mov	x2, x25
	mov	x4, x24
	mov	x5, x23
	bl	_kthread_create
	str	w0, [x26, #12]
	bl	_IS_ERR
	cbnz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x26, #12]
	bl	_get_task_struct
	add	x0, x26, #8
	mov	x1, x21
	bl	_list_add_tail
	mov	w8, #1
	str	w8, [x26, #4]
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.lo	LBB0_7
	b	LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_dma_chan_name
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x2, x24
	mov	x3, x23
	bl	_pr_warn
	b	LBB0_15
LBB0_11:
	mov	x0, x19
	bl	_dma_chan_name
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str.6@PAGE
Lloh25:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x2, x24
	mov	x3, x23
	bl	_pr_warn
	mov	x0, x26
	bl	_kfree
	b	LBB0_15
LBB0_12:
Lloh26:
	adrp	x8, _DMA_PQ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DMA_PQ@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_16
; %bb.13:
Lloh29:
	adrp	x24, l_.str.3@PAGE
Lloh30:
	add	x24, x24, l_.str.3@PAGEOFF
	ldr	w8, [x22]
	cbnz	w8, LBB0_6
LBB0_14:
	mov	w23, #0
LBB0_15:
	mov	x0, x23
	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
LBB0_16:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"copy"

	.comm	_DMA_MEMSET,4,2                 ; @DMA_MEMSET
l_.str.1:                               ; @.str.1
	.asciz	"set"

	.comm	_DMA_XOR,4,2                    ; @DMA_XOR
l_.str.2:                               ; @.str.2
	.asciz	"xor"

	.comm	_DMA_PQ,4,2                     ; @DMA_PQ
l_.str.3:                               ; @.str.3
	.asciz	"pq"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.4:                               ; @.str.4
	.asciz	"No memory for %s-%s%u\n"

	.comm	_dmatest_func,4,2               ; @dmatest_func
l_.str.5:                               ; @.str.5
	.asciz	"%s-%s%u"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to create thread %s-%s%u\n"

	.no_dead_strip	_dmatest_add_threads
.subsections_via_symbols
