	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function sunxi_set_texture_frame
LCPI0_0:
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	1                               ## 0x1
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	5                               ## 0x5
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	9                               ## 0x9
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	128                             ## 0x80
	.byte	13                              ## 0xd
	.byte	128                             ## 0x80
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sunxi_set_texture_frame:               ## @sunxi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, 16(%rdi)
	je	LBB0_14
## %bb.1:
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rdi, %rbx
	movq	%rsp, %r12
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	8(%rbx), %rax
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.2:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	andl	$2147483647, %r15d              ## imm = 0x7FFFFFFF
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	shll	$2, %r8d
	movq	8(%rax), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	movl	%r13d, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	%r15d, %r12d
	movl	%r12d, %eax
	andl	$-8, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	$16, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = [128,128,1,128,128,128,5,128,128,128,9,128,128,128,13,128]
	movdqa	LCPI0_1(%rip), %xmm7            ## xmm7 = [0,255,0,0,0,255,0,0,0,255,0,0,0,255,0,0]
	movdqa	LCPI0_2(%rip), %xmm8            ## xmm8 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	xorl	%ebx, %ebx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %edi
	imull	%ebx, %edi
	addq	-120(%rbp), %rdi                ## 8-byte Folded Reload
	movq	%r14, %rsi
	movl	%r8d, %edx
	callq	_memcpy
	movdqa	LCPI0_2(%rip), %xmm8            ## xmm8 = [255,0,0,0,255,0,0,0,255,0,0,0,255,0,0,0]
	movdqa	LCPI0_1(%rip), %xmm7            ## xmm7 = [0,255,0,0,0,255,0,0,0,255,0,0,0,255,0,0]
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = [128,128,1,128,128,128,5,128,128,128,9,128,128,128,13,128]
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	incq	%rbx
	addl	%r15d, %r13d
	cmpq	-112(%rbp), %rbx                ## 8-byte Folded Reload
	je	LBB0_12
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %eax
	cmpl	$8, %r15d
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	xorl	%edx, %edx
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-16(%rcx,%rdx,4), %xmm0
	movdqu	(%rcx,%rdx,4), %xmm1
	movdqa	%xmm0, %xmm2
	pshufb	%xmm6, %xmm2
	movdqa	%xmm1, %xmm3
	pshufb	%xmm6, %xmm3
	movdqa	%xmm0, %xmm4
	pslld	$4, %xmm4
	movdqa	%xmm1, %xmm5
	pslld	$4, %xmm5
	pand	%xmm7, %xmm4
	pand	%xmm7, %xmm5
	pand	%xmm8, %xmm0
	por	%xmm2, %xmm0
	por	%xmm4, %xmm0
	pand	%xmm8, %xmm1
	por	%xmm3, %xmm1
	por	%xmm5, %xmm1
	movdqa	%xmm0, (%r14,%rdx,4)
	movdqa	%xmm1, 16(%r14,%rdx,4)
	addq	$8, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %rcx
	cmpq	%r12, %rsi
	je	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rcx,4), %edx
	movl	%edx, %esi
	movzbl	%dl, %edi
	shll	$8, %edx
	andl	$16711680, %edx                 ## imm = 0xFF0000
	shll	$4, %esi
	andl	$65280, %esi                    ## imm = 0xFF00
	orl	%esi, %edi
	orl	%edx, %edi
	movl	%edi, (%r14,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %r12
	jne	LBB0_10
	jmp	LBB0_11
LBB0_12:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	movl	-60(%rbp), %r15d                ## 4-byte Reload
	movq	-88(%rbp), %r12                 ## 8-byte Reload
LBB0_13:
	movq	(%rbx), %rdi
	movl	(%rdi), %r9d
	movl	4(%rdi), %esi
	movl	(%rax), %edx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	callq	_sunxi_layer_set_rgb_input_buffer
	movq	%r12, %rsp
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sunxi_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 sunxi_set_texture_frame
_sunxi_set_texture_frame:               ; @sunxi_set_texture_frame
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_14
; %bb.1:
	mov	x22, x1
	mov	x19, sp
	ldr	x8, [x0]
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x0, #8]
	cbz	w4, LBB0_13
; %bb.2:
	stp	x0, x19, [x29, #-120]           ; 16-byte Folded Spill
	mov	w26, #0
	mov	x27, #0
	stp	w3, w4, [x29, #-104]            ; 8-byte Folded Spill
	and	w28, w3, #0x7fffffff
	lsl	w24, w12, #2
	ldr	x25, [x8, #8]
	and	x20, x28, #0x7ffffff0
	add	x8, x23, #32
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	add	x21, x22, #32
	movi.2d	v20, #0xff000000ff0000
	movi.2d	v21, #0x00ff000000ff00
	movi.2d	v22, #0x0000ff000000ff
	mov	w19, w4
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mul	w8, w24, w27
	add	x0, x25, x8
	mov	x1, x23
	mov	x2, x24
	bl	_memcpy
	movi.2d	v22, #0x0000ff000000ff
	movi.2d	v21, #0x00ff000000ff00
	movi.2d	v20, #0xff000000ff0000
	add	x27, x27, #1
	add	w26, w26, w28
	cmp	x27, x19
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	cbz	w28, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w26
	lsl	x8, x8, #2
	cmp	w28, #16
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x21, x8
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	mov	x11, x20
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x9, #-32]
	shl.4s	v2, v0, #8
	ldp	q3, q4, [x9], #64
	shl.4s	v5, v1, #8
	shl.4s	v6, v3, #8
	shl.4s	v7, v4, #8
	and.16b	v2, v2, v20
	and.16b	v5, v5, v20
	and.16b	v6, v6, v20
	and.16b	v7, v7, v20
	shl.4s	v16, v0, #4
	shl.4s	v17, v1, #4
	shl.4s	v18, v3, #4
	shl.4s	v19, v4, #4
	and.16b	v16, v16, v21
	and.16b	v17, v17, v21
	and.16b	v18, v18, v21
	and.16b	v19, v19, v21
	and.16b	v0, v0, v22
	and.16b	v1, v1, v22
	and.16b	v3, v3, v22
	and.16b	v4, v4, v22
	orr.16b	v0, v16, v0
	orr.16b	v1, v17, v1
	orr.16b	v3, v18, v3
	orr.16b	v4, v19, v4
	orr.16b	v0, v0, v2
	orr.16b	v1, v1, v5
	orr.16b	v2, v3, v6
	stp	q0, q1, [x10, #-32]
	orr.16b	v0, v4, v7
	stp	q2, q0, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x10, x20
	cmp	x20, x28
	b.eq	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x9, x10, #2
	add	x8, x9, x8
	add	x8, x22, x8
	add	x9, x23, x9
	sub	x10, x28, x10
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x8], #4
	lsr	w12, w11, #8
	lsr	w13, w11, #4
	and	w11, w11, #0xff
	bfi	w11, w13, #8, #8
	bfi	w11, w12, #16, #8
	str	w11, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_11
	b	LBB0_3
LBB0_12:
	ldp	x0, x19, [x29, #-120]           ; 16-byte Folded Reload
	ldr	x8, [x0, #8]
	ldp	w3, w4, [x29, #-104]            ; 8-byte Folded Reload
LBB0_13:
	ldr	x0, [x0]
	ldr	w2, [x8]
	ldp	w5, w1, [x0]
	bl	_sunxi_layer_set_rgb_input_buffer
	mov	sp, x19
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sunxi_set_texture_frame
.subsections_via_symbols
