	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ofwfb_set_mode
_ofwfb_set_mode:                        ## @ofwfb_set_mode
	.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	%rdi, -120(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ofwfb_reset_on_switch@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	movl	$64, %edx
	callq	_OF_package_to_path
	movq	%r14, %rdi
	callq	_OF_open
	cmpl	$8, (%rbx)
	jne	LBB0_4
## %bb.2:
	movl	%eax, %r12d
	movl	$8, %ebx
	xorl	%r13d, %r13d
	leaq	-124(%rbp), %r14
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ofwfb_cmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx), %r8d
	movl	-8(%rax,%rbx), %r10d
	movl	-4(%rax,%rbx), %r9d
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	movl	$1, %ecx
	pushq	%r14
	pushq	%r13
	pushq	%r10
	callq	_OF_call_method
	addq	$32, %rsp
	incq	%r13
	addq	$12, %rbx
	cmpq	$16, %r13
	jne	LBB0_3
LBB0_4:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	addq	$4, %rdi
	movq	_V_DISPLAY_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ofwfb_blank_display
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ofwfb_reset_on_switch,8,3      ## @ofwfb_reset_on_switch
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"color!"

	.comm	_ofwfb_cmap,8,3                 ## @ofwfb_cmap
	.comm	_V_DISPLAY_ON,4,2               ## @V_DISPLAY_ON
	.no_dead_strip	_ofwfb_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ofwfb_set_mode
_ofwfb_set_mode:                        ; @ofwfb_set_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _ofwfb_reset_on_switch@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ofwfb_reset_on_switch@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	w0, [x19, #8]
	add	x1, sp, #24
	mov	w2, #64
	bl	_OF_package_to_path
	add	x0, sp, #24
	bl	_OF_open
	ldr	w8, [x19]
	cmp	w8, #8
	b.ne	LBB0_4
; %bb.2:
	mov	x20, x0
	mov	x23, #0
	mov	x21, #0
Lloh6:
	adrp	x24, _ofwfb_cmap@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ofwfb_cmap@GOTPAGEOFF]
	add	x25, sp, #20
Lloh8:
	adrp	x22, l_.str@PAGE
Lloh9:
	add	x22, x22, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x8, x8, x23
	ldp	w5, w4, [x8, #4]
	ldr	w6, [x8]
	str	x25, [sp]
	mov	x0, x22
	mov	x1, x20
	mov	w2, #4
	mov	w3, #1
	mov	x7, x21
	bl	_OF_call_method
	add	x21, x21, #1
	add	x23, x23, #12
	cmp	x21, #16
	b.ne	LBB0_3
LBB0_4:
	add	x0, x19, #4
Lloh10:
	adrp	x8, _V_DISPLAY_ON@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V_DISPLAY_ON@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_ofwfb_blank_display
	ldur	x8, [x29, #-72]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ofwfb_reset_on_switch,8,3      ; @ofwfb_reset_on_switch
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"color!"

	.comm	_ofwfb_cmap,8,3                 ; @ofwfb_cmap
	.comm	_V_DISPLAY_ON,4,2               ; @V_DISPLAY_ON
	.no_dead_strip	_ofwfb_set_mode
.subsections_via_symbols
