	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setmode                        ## -- Begin function setmode
	.p2align	4, 0x90
_setmode:                               ## @setmode
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_FBIOGET_VSCREENINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqu	%xmm0, -44(%rbp)
	movl	16(%r14), %eax
	movl	%eax, -48(%rbp)
	movups	(%r14), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_FBIOPUT_VSCREENINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	sarl	$31, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$-2, %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FBIOGET_VSCREENINFO,4,2        ## @FBIOGET_VSCREENINFO
	.comm	_FBIOPUT_VSCREENINFO,4,2        ## @FBIOPUT_VSCREENINFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setmode                        ; -- Begin function setmode
	.p2align	2
_setmode:                               ; @setmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FBIOGET_VSCREENINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FBIOGET_VSCREENINFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x22, sp
	mov	x2, sp
	bl	_ioctl
	tbnz	w0, #31, LBB0_2
; %bb.1:
	add	x8, x22, #20
	ldr	d0, [x21]
	fmov	d1, d0
	st2.2s	{ v0, v1 }, [x8]
	ldr	w8, [x20, #16]
	str	w8, [sp, #16]
	ldr	q0, [x20]
	str	q0, [sp]
Lloh3:
	adrp	x8, _FBIOPUT_VSCREENINFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FBIOPUT_VSCREENINFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_ioctl
	asr	w0, w0, #31
	b	LBB0_3
LBB0_2:
	mov	w0, #-2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FBIOGET_VSCREENINFO,4,2        ; @FBIOGET_VSCREENINFO
	.comm	_FBIOPUT_VSCREENINFO,4,2        ; @FBIOPUT_VSCREENINFO
.subsections_via_symbols
