	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtsx_pci_add_sg_tbl
_rtsx_pci_add_sg_tbl:                   ## @rtsx_pci_add_sg_tbl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ecx
	movq	%rsi, %rdx
	movq	%rdi, %r14
	movslq	(%rdi), %rbx
	shlq	$2, %rbx
	addq	8(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pcr_dbg
	movq	%rbx, %rsi
	callq	_put_unaligned_le64
	incl	(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTSX_SG_VALID,4,2              ## @RTSX_SG_VALID
	.comm	_RTSX_SG_TRANS_DATA,4,2         ## @RTSX_SG_TRANS_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA addr: 0x%x, Len: 0x%x\n"

	.comm	_RTSX_SG_END,4,2                ## @RTSX_SG_END
	.no_dead_strip	_rtsx_pci_add_sg_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtsx_pci_add_sg_tbl
_rtsx_pci_add_sg_tbl:                   ; @rtsx_pci_add_sg_tbl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x3, x2
	mov	x2, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldrsw	x21, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pcr_dbg
	add	x1, x20, x21, lsl #2
	bl	_put_unaligned_le64
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RTSX_SG_VALID,4,2              ; @RTSX_SG_VALID
	.comm	_RTSX_SG_TRANS_DATA,4,2         ; @RTSX_SG_TRANS_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA addr: 0x%x, Len: 0x%x\n"

	.comm	_RTSX_SG_END,4,2                ; @RTSX_SG_END
	.no_dead_strip	_rtsx_pci_add_sg_tbl
.subsections_via_symbols
