	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp2x_make_fb_bufferable        ## -- Begin function gp2x_make_fb_bufferable
	.p2align	4, 0x90
_gp2x_make_fb_bufferable:               ## @gp2x_make_fb_bufferable
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r15d, %r15d
	testl	%edi, %edi
	setne	%r15b
	movq	_WCB_B_BIT@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_gp2x_screens@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	movl	$153600, %ecx                   ## imm = 0x25800
	callq	_warm_change_cb_range
	movl	%eax, %r14d
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	4(%rax), %edx
	movl	%r15d, %esi
	movl	$153600, %ecx                   ## imm = 0x25800
	callq	_warm_change_cb_range
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	8(%rax), %edx
	movl	%r15d, %esi
	movl	$153600, %ecx                   ## imm = 0x25800
	callq	_warm_change_cb_range
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movl	(%r12), %edi
	movq	(%r13), %rax
	movl	12(%rax), %edx
	movl	%r15d, %esi
	movl	$153600, %ecx                   ## imm = 0x25800
	callq	_warm_change_cb_range
	orl	%r14d, %eax
	je	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_2:
	leaq	L_str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WCB_B_BIT,4,2                  ## @WCB_B_BIT
	.comm	_gp2x_screens,8,3               ## @gp2x_screens
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not make fb buferable.\n"

L_str:                                  ## @str
	.asciz	"made fb buferable."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gp2x_make_fb_bufferable        ; -- Begin function gp2x_make_fb_bufferable
	.p2align	2
_gp2x_make_fb_bufferable:               ; @gp2x_make_fb_bufferable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cmp	w0, #0
Lloh0:
	adrp	x21, _WCB_B_BIT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WCB_B_BIT@GOTPAGEOFF]
	cset	w19, ne
	ldr	w0, [x21]
Lloh2:
	adrp	x22, _gp2x_screens@GOTPAGE
Lloh3:
	ldr	x22, [x22, _gp2x_screens@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w2, [x8]
	mov	x1, x19
	mov	w3, #22528
	movk	w3, #2, lsl #16
	bl	_warm_change_cb_range
	mov	x20, x0
	ldr	w0, [x21]
	ldr	x8, [x22]
	ldr	w2, [x8, #4]
	mov	x1, x19
	mov	w3, #22528
	movk	w3, #2, lsl #16
	bl	_warm_change_cb_range
	orr	w20, w0, w20
	ldr	w0, [x21]
	ldr	x8, [x22]
	ldr	w2, [x8, #8]
	mov	x1, x19
	mov	w3, #22528
	movk	w3, #2, lsl #16
	bl	_warm_change_cb_range
	orr	w20, w20, w0
	ldr	w0, [x21]
	ldr	x8, [x22]
	ldr	w2, [x8, #12]
	mov	x1, x19
	mov	w3, #22528
	movk	w3, #2, lsl #16
	bl	_warm_change_cb_range
	orr	w8, w20, w0
	cbz	w8, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_fprintf
LBB0_2:
Lloh9:
	adrp	x0, l_str@PAGE
Lloh10:
	add	x0, x0, l_str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_puts
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_WCB_B_BIT,4,2                  ; @WCB_B_BIT
	.comm	_gp2x_screens,8,3               ; @gp2x_screens
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not make fb buferable.\n"

l_str:                                  ; @str
	.asciz	"made fb buferable."

.subsections_via_symbols
