	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rga_cmd_set_src_addr
_rga_cmd_set_src_addr:                  ## @rga_cmd_set_src_addr
	.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	(%rdi), %rax
	movq	(%rax), %r14
	movq	_RGA_MMU_SRC_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RGA_MODE_BASE_REG@GOTPCREL(%rip), %r15
	subl	(%r15), %ebx
	movq	%rsi, %rdi
	callq	_virt_to_phys
	sarl	$4, %eax
	andl	$-4, %ebx
	movl	%eax, (%r14,%rbx)
	movq	_RGA_MMU_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	(%r15), %eax
	andl	$-4, %eax
	orl	$7, (%r14,%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RGA_MMU_SRC_BASE,4,2           ## @RGA_MMU_SRC_BASE
	.comm	_RGA_MODE_BASE_REG,4,2          ## @RGA_MODE_BASE_REG
	.comm	_RGA_MMU_CTRL1,4,2              ## @RGA_MMU_CTRL1
	.no_dead_strip	_rga_cmd_set_src_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rga_cmd_set_src_addr
_rga_cmd_set_src_addr:                  ; @rga_cmd_set_src_addr
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _RGA_MMU_SRC_BASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RGA_MMU_SRC_BASE@GOTPAGEOFF]
	ldr	x19, [x8]
Lloh2:
	ldr	w8, [x9]
Lloh3:
	adrp	x20, _RGA_MODE_BASE_REG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _RGA_MODE_BASE_REG@GOTPAGEOFF]
	ldr	w9, [x20]
	sub	w21, w8, w9
	mov	x0, x1
	bl	_virt_to_phys
	asr	w8, w0, #4
	and	w9, w21, #0xfffffffc
	str	w8, [x19, w9, uxtw]
Lloh5:
	adrp	x8, _RGA_MMU_CTRL1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RGA_MMU_CTRL1@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20]
	sub	w8, w8, w9
	and	w8, w8, #0xfffffffc
	ldr	w9, [x19, x8]
	orr	w9, w9, #0x7
	str	w9, [x19, x8]
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RGA_MMU_SRC_BASE,4,2           ; @RGA_MMU_SRC_BASE
	.comm	_RGA_MODE_BASE_REG,4,2          ; @RGA_MODE_BASE_REG
	.comm	_RGA_MMU_CTRL1,4,2              ; @RGA_MMU_CTRL1
	.no_dead_strip	_rga_cmd_set_src_addr
.subsections_via_symbols
