	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_pci_complete_unfinished_transfer ## -- Begin function rtsx_pci_complete_unfinished_transfer
	.p2align	4, 0x90
_rtsx_pci_complete_unfinished_transfer: ## @rtsx_pci_complete_unfinished_transfer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rdi
	movq	%rdi, (%rbx)
	callq	_init_completion
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_complete
LBB0_2:
	cmpl	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_rtsx_pci_stop_cmd
LBB0_4:
	movl	$2, %edi
	callq	_msecs_to_jiffies
	leaq	-16(%rbp), %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_interruptible_timeout
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtsx_pci_complete_unfinished_transfer ; -- Begin function rtsx_pci_complete_unfinished_transfer
	.p2align	2
_rtsx_pci_complete_unfinished_transfer: ; @rtsx_pci_complete_unfinished_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x8, sp, #8
	str	x8, [x0]
	add	x0, sp, #8
	bl	_init_completion
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_complete
LBB0_2:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_rtsx_pci_stop_cmd
LBB0_4:
	mov	w0, #2
	bl	_msecs_to_jiffies
	mov	x1, x0
	add	x0, sp, #8
	bl	_wait_for_completion_interruptible_timeout
	str	xzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
