	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rga_cmd_set_mode
_rga_cmd_set_mode:                      ## @rga_cmd_set_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_RGA_MODE_BITBLT_MODE_SRC_TO_DST@GOTPCREL(%rip), %rcx
	movq	_RGA_ALPHA_CTRL0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_RGA_MODE_BASE_REG@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	subl	%esi, %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	movl	(%rcx), %ecx
	movq	$0, (%rax,%rdx,8)
	movq	_RGA_ALPHA_CTRL1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	subl	%esi, %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	movq	$0, (%rax,%rdx,8)
	shlq	$32, %rcx
	orq	$1, %rcx
	movq	_RGA_MODE_CTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	subl	%esi, %edx
	sarl	$2, %edx
	movslq	%edx, %rdx
	movq	%rcx, (%rax,%rdx,8)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RGA_MODE_RENDER_BITBLT,4,2     ## @RGA_MODE_RENDER_BITBLT
	.comm	_RGA_MODE_BITBLT_MODE_SRC_TO_DST,4,2 ## @RGA_MODE_BITBLT_MODE_SRC_TO_DST
	.comm	_RGA_ALPHA_CTRL0,4,2            ## @RGA_ALPHA_CTRL0
	.comm	_RGA_MODE_BASE_REG,4,2          ## @RGA_MODE_BASE_REG
	.comm	_RGA_ALPHA_CTRL1,4,2            ## @RGA_ALPHA_CTRL1
	.comm	_RGA_MODE_CTRL,4,2              ## @RGA_MODE_CTRL
	.no_dead_strip	_rga_cmd_set_mode
.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_mode
_rga_cmd_set_mode:                      ; @rga_cmd_set_mode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _RGA_MODE_BITBLT_MODE_SRC_TO_DST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RGA_MODE_BITBLT_MODE_SRC_TO_DST@GOTPAGEOFF]
Lloh2:
	adrp	x10, _RGA_ALPHA_CTRL0@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RGA_ALPHA_CTRL0@GOTPAGEOFF]
Lloh4:
	adrp	x11, _RGA_MODE_BASE_REG@GOTPAGE
Lloh5:
	ldr	x11, [x11, _RGA_MODE_BASE_REG@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
Lloh7:
	ldr	w11, [x11]
	sub	w10, w10, w11
	asr	w10, w10, #2
	str	xzr, [x8, w10, sxtw #3]
Lloh8:
	adrp	x10, _RGA_ALPHA_CTRL1@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RGA_ALPHA_CTRL1@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	sub	w10, w10, w11
	asr	w10, w10, #2
	str	xzr, [x8, w10, sxtw #3]
Lloh11:
	ldr	w9, [x9]
	mov	w10, #1
Lloh12:
	adrp	x12, _RGA_MODE_CTRL@GOTPAGE
Lloh13:
	ldr	x12, [x12, _RGA_MODE_CTRL@GOTPAGEOFF]
	bfi	x10, x9, #32, #32
Lloh14:
	ldr	w9, [x12]
	sub	w9, w9, w11
	asr	w9, w9, #2
	str	x10, [x8, w9, sxtw #3]
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RGA_MODE_RENDER_BITBLT,4,2     ; @RGA_MODE_RENDER_BITBLT
	.comm	_RGA_MODE_BITBLT_MODE_SRC_TO_DST,4,2 ; @RGA_MODE_BITBLT_MODE_SRC_TO_DST
	.comm	_RGA_ALPHA_CTRL0,4,2            ; @RGA_ALPHA_CTRL0
	.comm	_RGA_MODE_BASE_REG,4,2          ; @RGA_MODE_BASE_REG
	.comm	_RGA_ALPHA_CTRL1,4,2            ; @RGA_ALPHA_CTRL1
	.comm	_RGA_MODE_CTRL,4,2              ; @RGA_MODE_CTRL
	.no_dead_strip	_rga_cmd_set_mode
.subsections_via_symbols
