	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_gfx_frame
_omap_gfx_frame:                        ## @omap_gfx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %r14d
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	cmpl	$5, %edx
	jb	LBB0_8
## %bb.2:
	movl	%ecx, %r13d
	cmpl	$5, %ecx
	jb	LBB0_8
## %bb.3:
	cmpl	%r15d, (%rbx)
	jne	LBB0_5
## %bb.4:
	cmpl	%r13d, 4(%rbx)
	je	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	movl	32(%rbx), %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_omapfb_set_mode
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_ERR
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_7:
	movl	%r15d, (%rbx)
	movl	%r13d, 4(%rbx)
LBB0_8:
	movq	16(%rbp), %r15
	movl	32(%rbx), %edi
	callq	_omapfb_prepare
	movl	4(%rbx), %edx
	movl	32(%rbx), %edi
	movq	%r12, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_omapfb_blit_frame
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.9:
	movl	32(%rbx), %edi
	movq	8(%rbx), %rsi
	movl	16(%rbx), %edx
	movl	20(%rbx), %ecx
	callq	_omapfb_blit_frame
LBB0_10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_omap_render_msg
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[video_omap]: mode set (resolution changed by core)\n"

L_.str.1:                               ## @.str.1
	.asciz	"[video_omap]: mode set failed\n"

	.no_dead_strip	_omap_gfx_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_frame
_omap_gfx_frame:                        ; @omap_gfx_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x1, LBB0_12
; %bb.1:
	mov	x19, x6
	mov	x21, x5
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	cmp	w2, #5
	b.lo	LBB0_8
; %bb.2:
	mov	x23, x3
	cmp	w3, #5
	b.lo	LBB0_8
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, w24
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x20, #4]
	cmp	w8, w23
	b.eq	LBB0_8
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	ldr	w0, [x20, #32]
	mov	x1, x24
	mov	x2, x23
	bl	_omapfb_set_mode
	cbz	x0, LBB0_7
; %bb.6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_ERR
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	stp	w24, w23, [x20]
LBB0_8:
	ldr	w0, [x20, #32]
	bl	_omapfb_prepare
	ldr	w0, [x20, #32]
	ldr	w2, [x20, #4]
	mov	x1, x22
	mov	x3, x21
	bl	_omapfb_blit_frame
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x20, #32]
	ldr	x1, [x20, #8]
	ldp	w2, w3, [x20, #16]
	bl	_omapfb_blit_frame
LBB0_10:
	cbz	x19, LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_omap_render_msg
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[video_omap]: mode set (resolution changed by core)\n"

l_.str.1:                               ; @.str.1
	.asciz	"[video_omap]: mode set failed\n"

	.no_dead_strip	_omap_gfx_frame
.subsections_via_symbols
