	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rga_cmd_set
_rga_cmd_set:                           ## @rga_cmd_set
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	16(%rbx), %edi
	movq	_RGA_CMDBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	_rga_cmd_set_src_addr
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_rga_cmd_set_src1_addr
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_rga_cmd_set_dst_addr
	movq	%r14, %rdi
	callq	_rga_cmd_set_mode
	movq	%r14, %rdi
	callq	_rga_cmd_set_trans_info
	movq	_RGA_CMD_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_rga_write
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dma_sync_single_for_device     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RGA_CMDBUF_SIZE,4,2            ## @RGA_CMDBUF_SIZE
	.comm	_RGA_CMD_BASE,4,2               ## @RGA_CMD_BASE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.no_dead_strip	_rga_cmd_set
.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
_rga_cmd_set:                           ; @rga_cmd_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w0, [x20, #16]
Lloh0:
	adrp	x8, _RGA_CMDBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RGA_CMDBUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w1, [x20, #12]
	mov	x0, x19
	bl	_rga_cmd_set_src_addr
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_rga_cmd_set_src1_addr
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_rga_cmd_set_dst_addr
	mov	x0, x19
	bl	_rga_cmd_set_mode
	mov	x0, x19
	bl	_rga_cmd_set_trans_info
Lloh3:
	adrp	x8, _RGA_CMD_BASE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RGA_CMD_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x20
	bl	_rga_write
	ldp	w1, w0, [x20]
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	ldr	w3, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dma_sync_single_for_device
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RGA_CMDBUF_SIZE,4,2            ; @RGA_CMDBUF_SIZE
	.comm	_RGA_CMD_BASE,4,2               ; @RGA_CMD_BASE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.no_dead_strip	_rga_cmd_set
.subsections_via_symbols
