	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __idmac_terminate_all
___idmac_terminate_all:                 ## @__idmac_terminate_all
	.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
	movq	%rdi, %rbx
	callq	_to_idmac_chan
	movq	%rax, %r13
	movl	(%rbx), %edi
	callq	_to_idmac
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	_IPU_CHANNEL_ENABLED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setge	%dl
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ipu_disable_channel
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_ipu
	movq	%rax, %rdi
	callq	_tasklet_disable
	leaq	12(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	leaq	40(%r13), %rdi
	leaq	24(%r13), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_list_splice_init
	movq	32(%r13), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.1:
	cmpl	$0, 8(%r13)
	jle	LBB0_7
## %bb.2:
	movl	$4, %r15d
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r15), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r15), %rdi
	addq	$-4, %rdi
	callq	_async_tx_clear_ack
	movslq	8(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %r12
	addq	$8, %r15
	incq	%r14
	jmp	LBB0_3
LBB0_7:
	movq	16(%r13), %rax
	movq	$0, (%rax)
	movq	16(%r13), %rax
	movq	$0, 8(%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_to_ipu
	movq	%rax, %rdi
	callq	_tasklet_enable
	movq	_IPU_CHANNEL_INITIALIZED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPU_CHANNEL_ENABLED,8,3        ## @IPU_CHANNEL_ENABLED
	.comm	_IPU_CHANNEL_INITIALIZED,8,3    ## @IPU_CHANNEL_INITIALIZED
	.no_dead_strip	___idmac_terminate_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __idmac_terminate_all
___idmac_terminate_all:                 ; @__idmac_terminate_all
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_to_idmac_chan
	mov	x19, x0
	ldr	w0, [x20]
	bl	_to_idmac
	mov	x20, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IPU_CHANNEL_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPU_CHANNEL_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w2, ge
	mov	x1, x19
	bl	_ipu_disable_channel
	mov	x0, x20
	bl	_to_ipu
	bl	_tasklet_disable
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x0, x19, #40
	add	x22, x19, #24
	mov	x1, x22
	bl	_list_splice_init
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w9, [x19, #8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.2:
	mov	w24, #4
	mov	w25, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x8, x24
	mov	x0, x23
	bl	_list_empty
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_list_add
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x0, x23, #4
	bl	_async_tx_clear_ack
	ldrsw	x8, [x19, #8]
	cmp	x25, x8
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #32]
	add	x24, x24, #8
	add	x25, x25, #1
	b	LBB0_3
LBB0_7:
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	ldr	x8, [x19, #16]
	str	xzr, [x8, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	bl	_to_ipu
	bl	_tasklet_enable
Lloh3:
	adrp	x8, _IPU_CHANNEL_INITIALIZED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPU_CHANNEL_INITIALIZED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IPU_CHANNEL_ENABLED,8,3        ; @IPU_CHANNEL_ENABLED
	.comm	_IPU_CHANNEL_INITIALIZED,8,3    ; @IPU_CHANNEL_INITIALIZED
	.no_dead_strip	___idmac_terminate_all
.subsections_via_symbols
