	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_gfx_set_texture_frame
_omap_gfx_set_texture_frame:            ## @omap_gfx_set_texture_frame
	.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
	movl	%r8d, %r10d
	movl	%ecx, %r11d
	movl	%edx, %ecx
	movq	%rsi, %rdx
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_SCALER_FMT_RGBA4444@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SCALER_FMT_ARGB8888@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	leaq	16(%rdi), %r14
	movl	12(%rdi), %esi
	movl	(%rdi), %r8d
	movl	8(%rdi), %r9d
	movl	4(%rdi), %ebx
	imull	%r8d, %ebx
	leal	(,%r11,4), %eax
	movq	%r14, %rdi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	pushq	%rbx
	callq	_video_frame_scale
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_FMT_ARGB8888,4,2        ## @SCALER_FMT_ARGB8888
	.comm	_SCALER_FMT_RGBA4444,4,2        ## @SCALER_FMT_RGBA4444
	.no_dead_strip	_omap_gfx_set_texture_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_gfx_set_texture_frame
_omap_gfx_set_texture_frame:            ; @omap_gfx_set_texture_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x7, x3
	mov	x8, x1
	cmp	w2, #0
Lloh0:
	adrp	x9, _SCALER_FMT_ARGB8888@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCALER_FMT_ARGB8888@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SCALER_FMT_RGBA4444@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SCALER_FMT_RGBA4444@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w3, [x9]
	add	x9, x0, #16
	ldp	w5, w1, [x0, #8]
	ldp	w10, w11, [x0]
	mul	w6, w11, w10
	lsl	w11, w7, #2
	stp	w4, w11, [sp]
	mov	x0, x9
	mov	x2, x8
	mov	x4, x10
	bl	_video_frame_scale
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_FMT_ARGB8888,4,2        ; @SCALER_FMT_ARGB8888
	.comm	_SCALER_FMT_RGBA4444,4,2        ; @SCALER_FMT_RGBA4444
	.no_dead_strip	_omap_gfx_set_texture_frame
.subsections_via_symbols
