	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_DMA_XOR@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_DMA_PQ@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_15
## %bb.5:
	leaq	L_.str.2(%rip), %rax
LBB0_6:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_threads_per_chan@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rax, %r14
	movq	8(%r13), %rax
	movq	%rax, 16(%r14)
	movl	%r12d, (%r14)
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	_dmatest_func@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_chan_name
	movl	%r15d, %edi
	movq	%r14, %rsi
	leaq	L_.str.4(%rip), %rdx
	movl	%eax, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_kthread_run
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	incl	%ebx
	movq	_threads_per_chan@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jb	LBB0_9
	jmp	LBB0_14
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_chan_name
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_pr_warning
	jmp	LBB0_14
LBB0_12:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_chan_name
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_pr_warning
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_14
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %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_XOR,4,2                    ## @DMA_XOR
L_.str.1:                               ## @.str.1
	.asciz	"xor"

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"dmatest: Failed to run 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	x22, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _DMA_XOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_XOR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh10:
	adrp	x8, _DMA_PQ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_PQ@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_14
; %bb.5:
Lloh13:
	adrp	x21, l_.str.2@PAGE
Lloh14:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_6:
Lloh15:
	adrp	x27, _threads_per_chan@GOTPAGE
Lloh16:
	ldr	x27, [x27, _threads_per_chan@GOTPAGEOFF]
	ldr	w8, [x27]
	cbz	w8, LBB0_11
; %bb.7:
	mov	w19, #0
Lloh17:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh18:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
Lloh19:
	adrp	x24, l_.str.4@PAGE
Lloh20:
	add	x24, x24, l_.str.4@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x28]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x25, x0
	ldr	x8, [x23, #8]
	str	x8, [x0, #16]
	str	w22, [x0]
	bl	_smp_wmb
Lloh21:
	adrp	x8, _dmatest_func@GOTPAGE
Lloh22:
	ldr	x8, [x8, _dmatest_func@GOTPAGEOFF]
Lloh23:
	ldr	w26, [x8]
	mov	x0, x20
	bl	_dma_chan_name
	mov	x3, x0
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x4, x21
	mov	x5, x19
	bl	_kthread_run
	str	w0, [x25, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x25, #4
	mov	x1, x23
	bl	_list_add_tail
	add	w19, w19, #1
	ldr	w8, [x27]
	cmp	w19, w8
	b.lo	LBB0_8
	b	LBB0_15
LBB0_11:
	mov	w19, #0
	b	LBB0_15
LBB0_12:
	mov	x0, x20
	bl	_dma_chan_name
	mov	x1, x0
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_pr_warning
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	bl	_dma_chan_name
	mov	x1, x0
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x2, x21
	mov	x3, x19
	bl	_pr_warning
	mov	x0, x25
	bl	_kfree
	b	LBB0_15
LBB0_14:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_15:
	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 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 AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"copy"

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

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"dmatest: Failed to run thread %s-%s%u\n"

	.no_dead_strip	_dmatest_add_threads
.subsections_via_symbols
