	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omapfb_enable_plane
_omapfb_enable_plane:                   ## @omapfb_enable_plane
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	$0, -16(%rbp)
	movl	(%rdi), %edi
	movq	_OMAPFB_QUERY_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movl	$1, -16(%rbp)
	movl	(%rbx), %edi
	movq	_OMAPFB_SETUP_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_RARCH_ERR
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAPFB_QUERY_PLANE,4,2         ## @OMAPFB_QUERY_PLANE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[video_omap]: enable plane (query) failed\n"

	.comm	_OMAPFB_SETUP_PLANE,4,2         ## @OMAPFB_SETUP_PLANE
L_.str.1:                               ## @.str.1
	.asciz	"[video_omap]: enable plane failed\n"

	.no_dead_strip	_omapfb_enable_plane
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omapfb_enable_plane
_omapfb_enable_plane:                   ; @omapfb_enable_plane
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _OMAPFB_QUERY_PLANE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAPFB_QUERY_PLANE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _OMAPFB_SETUP_PLANE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OMAPFB_SETUP_PLANE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_RARCH_ERR
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAPFB_QUERY_PLANE,4,2         ; @OMAPFB_QUERY_PLANE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[video_omap]: enable plane (query) failed\n"

	.comm	_OMAPFB_SETUP_PLANE,4,2         ; @OMAPFB_SETUP_PLANE
l_.str.1:                               ; @.str.1
	.asciz	"[video_omap]: enable plane failed\n"

	.no_dead_strip	_omapfb_enable_plane
.subsections_via_symbols
