	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function sdl_set_texture_frame
LCPI0_0:
	.quad	0x406fe00000000000              ## double 255
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sdl_set_texture_frame:                 ## @sdl_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movl	%r8d, %r10d
	movl	%ecx, %r11d
	movl	%edx, %ecx
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_SCALER_FMT_RGBA4444@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_SCALER_FMT_ARGB8888@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	leaq	8(%rbx), %rdi
	movq	(%rbx), %rax
	movl	12(%rax), %esi
	movl	8(%rax), %r8d
	movl	(%rax), %r14d
	movl	4(%rax), %r9d
	leal	(,%r11,4), %eax
	pushq	%rax
	pushq	%r10
	pushq	%r11
	pushq	%r14
	callq	_video_frame_scale
	addq	$32, %rsp
	movq	(%rbx), %rdi
	movq	_SDL_SRCALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movss	-20(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_SDL_SetAlpha                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_FMT_ARGB8888,4,2        ## @SCALER_FMT_ARGB8888
	.comm	_SCALER_FMT_RGBA4444,4,2        ## @SCALER_FMT_RGBA4444
	.comm	_SDL_SRCALPHA,4,2               ## @SDL_SRCALPHA
	.no_dead_strip	_sdl_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 sdl_set_texture_frame
_sdl_set_texture_frame:                 ; @sdl_set_texture_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x7, x3
	fmov	s8, s0
	mov	x8, x1
	mov	x19, x0
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]
	cmp	w2, #0
	csel	x9, x10, x9, eq
	ldr	w3, [x9]
	add	x0, x0, #8
	ldr	x10, [x19]
	ldp	w9, w1, [x10, #8]
	ldp	w6, w5, [x10]
	lsl	w10, w7, #2
	stp	w4, w10, [sp]
	mov	x2, x8
	mov	x4, x9
	bl	_video_frame_scale
	ldr	x0, [x19]
Lloh4:
	adrp	x8, _SDL_SRCALPHA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SDL_SRCALPHA@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	fcvt	d0, s8
	mov	x8, #246290604621824
	movk	x8, #16495, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_SDL_SetAlpha
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.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
	.comm	_SDL_SRCALPHA,4,2               ; @SDL_SRCALPHA
	.no_dead_strip	_sdl_set_texture_frame
.subsections_via_symbols
