	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_mmc_dmar_fixup
_octeon_mmc_dmar_fixup:                 ## @octeon_mmc_dmar_fixup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	_MMC_WRITE_MULTIPLE_BLOCK@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_2
## %bb.1:
	movl	4(%rdx), %eax
	imull	(%rdx), %eax
	cmpl	$1025, %eax                     ## imm = 0x401
	jge	LBB0_3
LBB0_2:
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %eax
	addq	%rcx, %rax
	addq	$-1024, %rax                    ## imm = 0xFC00
	movq	%rax, (%rdi)
	movq	%rax, %rdi
	movl	$512, %esi                      ## imm = 0x200
	popq	%rbp
	jmp	_l2c_lock_mem_region            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_WRITE_MULTIPLE_BLOCK,8,3   ## @MMC_WRITE_MULTIPLE_BLOCK
	.no_dead_strip	_octeon_mmc_dmar_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_mmc_dmar_fixup
_octeon_mmc_dmar_fixup:                 ; @octeon_mmc_dmar_fixup
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MMC_WRITE_MULTIPLE_BLOCK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	w8, w9, [x2]
	mul	w8, w9, w8
	cmp	w8, #1025
	b.ge	LBB0_3
LBB0_2:
	ret
LBB0_3:
	add	x8, x3, w8, uxtw
	sub	x8, x8, #1024
	str	x8, [x0]
	mov	x0, x8
	mov	w1, #512
	b	_l2c_lock_mem_region
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_WRITE_MULTIPLE_BLOCK,8,3   ; @MMC_WRITE_MULTIPLE_BLOCK
	.no_dead_strip	_octeon_mmc_dmar_fixup
.subsections_via_symbols
