	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_update_channel_loop
_sdma_update_channel_loop:              ## @sdma_update_channel_loop
	.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
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	4(%rdi), %r14
	xorl	%r12d, %r12d
	movq	_BD_DONE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	32(%rbx), %rcx
	movl	(%rcx,%rax,8), %edx
	movl	(%r13), %esi
	testl	%edx, %esi
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BD_RROR@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%edx, %edi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	notl	%edi
	andl	%edi, %edx
	movl	%edx, (%rcx,%rax,8)
	movq	_DMA_ERROR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, (%r15)
	xorl	%r12d, %r12d
	movq	_EIO@GOTPCREL(%rip), %rsi
	subl	(%rsi), %r12d
	movl	(%r13), %esi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%esi, %edx
	movl	4(%rcx,%rax,8), %esi
	movl	%esi, 28(%rbx)
	movl	%edx, (%rcx,%rax,8)
	movl	24(%rbx), %edx
	movl	%edx, 4(%rcx,%rax,8)
	movq	%rax, 8(%rbx)
	incq	%rax
	movslq	16(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, (%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
	addq	$20, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_dmaengine_desc_get_callback_invoke
	movq	%r14, %rdi
	callq	_spin_lock
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	jmp	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BD_DONE,4,2                    ## @BD_DONE
	.comm	_BD_RROR,4,2                    ## @BD_RROR
	.comm	_DMA_ERROR,4,2                  ## @DMA_ERROR
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_sdma_update_channel_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_update_channel_loop
_sdma_update_channel_loop:              ; @sdma_update_channel_loop
	.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
	ldr	x27, [x0, #8]
	cbz	x27, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	w24, #0
	ldr	w21, [x0]
	add	x20, x0, #4
Lloh0:
	adrp	x22, _BD_DONE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BD_DONE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _BD_RROR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BD_RROR@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DMA_ERROR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DMA_ERROR@GOTPAGEOFF]
Lloh6:
	adrp	x26, _EIO@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EIO@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x27, [x19, #8]
	cbz	x27, LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x27, #32]
	ldr	x8, [x27]
	add	x9, x10, x8, lsl #3
	ldr	w11, [x9]
	ldr	w12, [x22]
	tst	w12, w11
	b.ne	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w13, [x23]
	tst	w13, w11
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bic	w11, w11, w13
	str	w11, [x9]
	ldr	w12, [x25]
	str	w12, [x19]
	ldr	w12, [x26]
	neg	w24, w12
	ldr	w12, [x22]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, x8, lsl #3
	ldr	w13, [x10, #4]
	str	w13, [x27, #28]
	orr	w11, w11, w12
	str	w11, [x9]
	ldr	w9, [x27, #24]
	str	w9, [x10, #4]
	add	x9, x8, #1
	ldrsw	x10, [x27, #16]
	udiv	x11, x9, x10
	msub	x9, x11, x10, x9
	stp	x9, x8, [x27]
	mov	x0, x20
	bl	_spin_unlock
	add	x0, x27, #20
	mov	x1, #0
	bl	_dmaengine_desc_get_callback_invoke
	mov	x0, x20
	bl	_spin_lock
	cbz	w24, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w21, [x19]
	b	LBB0_2
LBB0_8:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BD_DONE,4,2                    ; @BD_DONE
	.comm	_BD_RROR,4,2                    ; @BD_RROR
	.comm	_DMA_ERROR,4,2                  ; @DMA_ERROR
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_sdma_update_channel_loop
.subsections_via_symbols
