	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Java_org_yabause_android_YabauseRunnable_screenshot ## -- Begin function Java_org_yabause_android_YabauseRunnable_screenshot
	.p2align	4, 0x90
_Java_org_yabause_android_YabauseRunnable_screenshot: ## @Java_org_yabause_android_YabauseRunnable_screenshot
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdx
	movl	%r14d, %esi
	callq	_AndroidBitmap_getInfo
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_AndroidBitmap_lockPixels
	movl	-48(%rbp), %edi
	testl	%edi, %edi
	jle	LBB0_8
## %bb.1:
	movq	_dispbuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movl	-44(%rbp), %esi
	movq	_g_buf_width@GOTPCREL(%rip), %r8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-32(%rbp), %rbx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	-40(%rbp), %rdx
	addq	%rbx, %rdx
	movq	%rdx, -32(%rbp)
	movslq	(%r8), %rdx
	leaq	(%rax,%rdx,4), %rax
	incl	%ecx
	cmpl	%edi, %ecx
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%esi, %esi
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-32(%rbp), %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rax,%rdi,4), %esi
	movl	%esi, (%rbx,%rdi,4)
	incq	%rdi
	movslq	-44(%rbp), %rsi
	cmpq	%rsi, %rdi
	jl	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %edi
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_AndroidBitmap_unlockPixels
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dispbuffer,8,3                 ## @dispbuffer
	.comm	_g_buf_width,4,2                ## @g_buf_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Java_org_yabause_android_YabauseRunnable_screenshot ; -- Begin function Java_org_yabause_android_YabauseRunnable_screenshot
	.p2align	2
_Java_org_yabause_android_YabauseRunnable_screenshot: ; @Java_org_yabause_android_YabauseRunnable_screenshot
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x2
	mov	x20, x0
	add	x2, sp, #16
	mov	x1, x19
	bl	_AndroidBitmap_getInfo
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_AndroidBitmap_lockPixels
	ldr	w11, [sp, #16]
	cmp	w11, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, #0
Lloh0:
	adrp	x9, _dispbuffer@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dispbuffer@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w12, [sp, #20]
Lloh3:
	adrp	x10, _g_buf_width@GOTPAGE
Lloh4:
	ldr	x10, [x10, _g_buf_width@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x13, [sp, #8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrsw	x14, [sp, #24]
	add	x13, x13, x14
	str	x13, [sp, #8]
	ldrsw	x13, [x10]
	add	x9, x9, x13, lsl #2
	add	w8, w8, #1
	cmp	w8, w11
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	cmp	w12, #0
	b.le	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, #0
	ldr	x13, [sp, #8]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x12, x11, #2
	ldr	w14, [x9, x12]
	str	w14, [x13, x12]
	add	x11, x11, #1
	ldrsw	x12, [sp, #20]
	cmp	x11, x12
	b.lt	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [sp, #16]
	b	LBB0_3
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_AndroidBitmap_unlockPixels
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_dispbuffer,8,3                 ; @dispbuffer
	.comm	_g_buf_width,4,2                ; @g_buf_width
.subsections_via_symbols
