	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tce_build                      ## -- Begin function tce_build
	.p2align	4, 0x90
_tce_build:                             ## @tce_build
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %r12
	shlq	$2, %r12
	addq	(%rdi), %r12
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movq	_TCE_WRITE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	xorl	%r13d, %r13d
	cmpl	%r8d, (%rax)
	cmovnel	%edx, %r13d
	movq	_TCE_READ_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_virt_to_bus
	movl	%eax, %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	sarl	%cl, %ebx
	movq	_TCE_RPN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r13d, %eax
	movq	_TCE_RPN_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %ebx
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be64
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_flush_tce
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	addq	$4, %r12
	movl	%ebx, %r13d
	decl	%r14d
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCE_READ_SHIFT,4,2             ## @TCE_READ_SHIFT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TCE_WRITE_SHIFT,4,2            ## @TCE_WRITE_SHIFT
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_TCE_RPN_MASK,4,2               ## @TCE_RPN_MASK
	.comm	_TCE_RPN_SHIFT,4,2              ## @TCE_RPN_SHIFT
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tce_build                      ; -- Begin function tce_build
	.p2align	2
_tce_build:                             ; @tce_build
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	w2, LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	ldr	x8, [x0]
	add	x21, x8, x1, lsl #2
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TCE_WRITE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCE_WRITE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	w8, w4
	csel	w8, wzr, w9, eq
Lloh6:
	adrp	x9, _TCE_READ_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TCE_READ_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w10, w9
Lloh9:
	adrp	x23, _PAGE_SHIFT@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PAGE_SHIFT@GOTPAGEOFF]
Lloh11:
	adrp	x24, _TCE_RPN_MASK@GOTPAGE
Lloh12:
	ldr	x24, [x24, _TCE_RPN_MASK@GOTPAGEOFF]
	orr	w22, w8, w9
Lloh13:
	adrp	x25, _TCE_RPN_SHIFT@GOTPAGE
Lloh14:
	ldr	x25, [x25, _TCE_RPN_SHIFT@GOTPAGEOFF]
Lloh15:
	adrp	x26, _PAGE_SIZE@GOTPAGE
Lloh16:
	ldr	x26, [x26, _PAGE_SIZE@GOTPAGEOFF]
	mov	x27, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	mov	x0, x19
	bl	_virt_to_bus
	ldr	w8, [x23]
	asr	w8, w0, w8
	ldr	w9, [x24]
	bic	w9, w22, w9
	ldr	w10, [x25]
	lsl	w8, w8, w10
	orr	w22, w8, w9
	mov	x0, x22
	bl	_cpu_to_be64
	str	w0, [x27], #4
	mov	x0, x21
	bl	_flush_tce
	ldr	x8, [x26]
	add	x19, x8, x19
	mov	x21, x27
	cbnz	w20, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TCE_READ_SHIFT,4,2             ; @TCE_READ_SHIFT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TCE_WRITE_SHIFT,4,2            ; @TCE_WRITE_SHIFT
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_TCE_RPN_MASK,4,2               ; @TCE_RPN_MASK
	.comm	_TCE_RPN_SHIFT,4,2              ; @TCE_RPN_SHIFT
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
