	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsxx_eeh_save_issued_dmas      ## -- Begin function rsxx_eeh_save_issued_dmas
	.p2align	4, 0x90
_rsxx_eeh_save_issued_dmas:             ## @rsxx_eeh_save_issued_dmas
	.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
	movq	%rdi, %r13
	movl	(%rdi), %edi
	shll	$2, %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	cmpl	$0, (%r13)
	jle	LBB0_18
## %bb.2:
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %rbx
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	8(%r13), %rax
	leaq	(%rax,%rbx), %rsi
	addq	$36, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_splice
	movq	8(%r13), %rax
	leaq	(%rax,%rbx), %rsi
	addq	$20, %rsi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_atomic_sub
	movq	8(%r13), %rax
	leaq	(%rax,%rbx), %rdi
	addl	%r14d, 16(%rax,%rbx)
	movq	$0, 8(%rax,%rbx)
	callq	_spin_unlock_bh
	incq	%r12
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	_RSXX_MAX_OUTSTANDING_CMDS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jle	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	(%rcx), %ecx
	movl	%r12d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_pci_unmap_page
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=2
	addq	$8, %r14
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add_tail
	movq	8(%r13), %rax
	movl	40(%rax,%r15), %edi
	movl	%ebx, %esi
	callq	_push_tracker
	incl	-44(%rbp)                       ## 4-byte Folded Spill
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=2
	incl	%ebx
	movq	_RSXX_MAX_OUTSTANDING_CMDS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_17
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r13), %rax
	leaq	(%r12,%r12,2), %r15
	shlq	$4, %r15
	movl	40(%rax,%r15), %edi
	movl	%ebx, %esi
	callq	_get_tracker_dma
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_HW_CMD_BLK_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r13), %rcx
	decl	32(%rcx,%r15)
	movq	_HW_CMD_BLK_DISCARD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	_HW_CMD_BLK_DISCARD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r13), %rdx
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	decl	28(%rdx,%r15)
	jmp	LBB0_15
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	decl	24(%rdx,%r15)
	cmpq	%rcx, %rax
	je	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movl	16(%r13), %r12d
	movl	12(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_get_dma_size
	movq	(%r14), %rdx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movq	_HW_CMD_BLK_WRITE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$40, %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	_RSXX_MAX_OUTSTANDING_CMDS,4,2  ## @RSXX_MAX_OUTSTANDING_CMDS
	.comm	_HW_CMD_BLK_WRITE,8,3           ## @HW_CMD_BLK_WRITE
	.comm	_HW_CMD_BLK_DISCARD,8,3         ## @HW_CMD_BLK_DISCARD
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rsxx_eeh_save_issued_dmas      ; -- Begin function rsxx_eeh_save_issued_dmas
	.p2align	2
_rsxx_eeh_save_issued_dmas:             ; @rsxx_eeh_save_issued_dmas
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	w8, [x0]
	lsl	w0, w8, #2
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x0, LBB0_17
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.2:
	mov	x27, #0
Lloh3:
	adrp	x26, _RSXX_MAX_OUTSTANDING_CMDS@GOTPAGE
Lloh4:
	ldr	x26, [x26, _RSXX_MAX_OUTSTANDING_CMDS@GOTPAGEOFF]
	mov	w20, #48
Lloh5:
	adrp	x28, _HW_CMD_BLK_DISCARD@GOTPAGE
Lloh6:
	ldr	x28, [x28, _HW_CMD_BLK_DISCARD@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	add	x9, x27, x27, lsl #1
	lsl	x23, x9, #4
	add	x0, x8, x23
	bl	_spin_lock_bh
	ldr	x8, [x19, #8]
	add	x8, x8, x23
	add	x1, x8, #36
	mov	x0, x21
	bl	_list_splice
	ldr	x8, [x19, #8]
	add	x8, x8, x23
	add	x1, x8, #20
	mov	x0, x22
	bl	_atomic_sub
	ldr	x8, [x19, #8]
	add	x0, x8, x23
	ldr	w8, [x0, #16]
	add	w8, w8, w22
	str	w8, [x0, #16]
	str	xzr, [x0, #8]
	bl	_spin_unlock_bh
	add	x27, x27, #1
	ldrsw	x8, [x19]
	cmp	x27, x8
	b.ge	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x21, x8, x27, lsl #2
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
	mov	w23, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
	madd	x8, x27, x20, x10
	ldr	w9, [x8, #28]
	sub	w9, w9, #1
	str	w9, [x8, #28]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x0, x24, #8
	mov	x1, x21
	bl	_list_add_tail
	ldr	x8, [x19, #8]
	madd	x8, x27, x20, x8
	ldr	w0, [x8, #40]
	mov	x1, x23
	bl	_push_tracker
	add	w22, w22, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	w23, w23, #1
	ldr	w8, [x26]
	cmp	w23, w8
	b.ge	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	madd	x8, x27, x20, x8
	ldr	w0, [x8, #40]
	mov	x1, x23
	bl	_get_tracker_dma
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x24, x0
	ldr	x8, [x0]
Lloh7:
	adrp	x9, _HW_CMD_BLK_WRITE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HW_CMD_BLK_WRITE@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x19, #8]
	madd	x9, x27, x20, x9
	ldr	w10, [x9, #32]
	sub	w10, w10, #1
	str	w10, [x9, #32]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_8
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x28]
	ldr	x10, [x19, #8]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	madd	x10, x27, x20, x10
	ldr	w11, [x10, #24]
	sub	w11, w11, #1
	str	w11, [x10, #24]
	cmp	x8, x9
	b.eq	LBB0_8
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	w25, [x19, #16]
	mov	x20, x21
	mov	x21, x26
	ldr	w26, [x24, #12]
	mov	x0, x24
	bl	_get_dma_size
	mov	x2, x0
	ldr	x8, [x24]
Lloh10:
	adrp	x9, _HW_CMD_BLK_WRITE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HW_CMD_BLK_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh13:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh15:
	adrp	x9, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	mov	x0, x25
	mov	x1, x26
	mov	x26, x21
	mov	x21, x20
	mov	w20, #48
	bl	_pci_unmap_page
	b	LBB0_8
LBB0_16:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_kfree
	mov	w0, #0
	b	LBB0_18
LBB0_17:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RSXX_MAX_OUTSTANDING_CMDS,4,2  ; @RSXX_MAX_OUTSTANDING_CMDS
	.comm	_HW_CMD_BLK_WRITE,8,3           ; @HW_CMD_BLK_WRITE
	.comm	_HW_CMD_BLK_DISCARD,8,3         ; @HW_CMD_BLK_DISCARD
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
.subsections_via_symbols
