	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function catu_get_table
_catu_get_table:                        ## @catu_get_table
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_tmc_sg_table_buf_size
	movq	%rax, %rcx
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rax
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %eax
LBB0_3:
	shrq	$20, %rax
	movq	_CATU_PAGES_PER_SYSPAGE@GOTPCREL(%rip), %rcx
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	(%rcx)
	movq	_CATU_PAGE_SIZE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %edx
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	8(%r15), %rcx
	movl	%eax, %eax
	movl	%edx, %ebx
	movq	(%rcx,%rax,8), %rcx
	addq	%rbx, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %eax
	movl	%edx, %ebx
LBB0_6:
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_page_address
	addq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CATU_PAGES_PER_SYSPAGE,4,2     ## @CATU_PAGES_PER_SYSPAGE
	.comm	_CATU_PAGE_SIZE,4,2             ## @CATU_PAGE_SIZE
	.no_dead_strip	_catu_get_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function catu_get_table
_catu_get_table:                        ; @catu_get_table
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_tmc_sg_table_buf_size
	udiv	x8, x21, x0
	msub	x8, x8, x0, x21
	lsr	x9, x8, #20
Lloh0:
	adrp	x8, _CATU_PAGES_PER_SYSPAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CATU_PAGES_PER_SYSPAGE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	udiv	w8, w9, w10
	msub	w9, w8, w10, w9
Lloh3:
	adrp	x10, _CATU_PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CATU_PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mul	w21, w10, w9
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
	ldr	x9, [x9, w8, uxtw #3]
	add	x9, x9, x21
	str	x9, [x20]
LBB0_2:
	ldr	x9, [x19]
	ldr	w0, [x9, x8, lsl #2]
	bl	_page_address
	add	x0, x21, x0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CATU_PAGES_PER_SYSPAGE,4,2     ; @CATU_PAGES_PER_SYSPAGE
	.comm	_CATU_PAGE_SIZE,4,2             ; @CATU_PAGE_SIZE
	.no_dead_strip	_catu_get_table
.subsections_via_symbols
