	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_O_RDWR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	_FBIOGET_VSCREENINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	cmpq	$0, -48(%rbp)
	je	LBB0_8
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
	movq	$0, -48(%rbp)
	movq	_FBIOPAN_DISPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_8:
	testl	%ebx, %ebx
	js	LBB0_10
## %bb.9:
	movl	%ebx, %edi
	callq	_close
LBB0_10:
	movl	(%r15), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	movq	_OMAPFB_QUERY_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	movl	%eax, %r14d
	movq	_OMAPFB_QUERY_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	orl	%r14d, %eax
	jne	LBB0_13
LBB0_14:
	movq	$0, -80(%rbp)
	movq	_OMAPFB_SETUP_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_15
LBB0_16:
	movq	$0, -64(%rbp)
	movq	_OMAPFB_SETUP_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_17
## %bb.18:
	testl	%ebx, %ebx
	js	LBB0_20
LBB0_19:
	movl	%ebx, %edi
	callq	_close
LBB0_20:
	movl	(%r15), %esi
	leaq	L_.str.11(%rip), %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_21
## %bb.22:
	movl	%eax, %ebx
	movq	_KDSETMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KD_TEXT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_23
LBB0_24:
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
LBB0_25:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.7(%rip), %rdi
	callq	_perror
	jmp	LBB0_20
LBB0_21:
	leaq	L_.str.12(%rip), %rdi
	callq	_perror
	movl	$1, %eax
	jmp	LBB0_25
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	jmp	LBB0_8
LBB0_13:
	leaq	L_.str.8(%rip), %rdi
	callq	_perror
	jmp	LBB0_14
LBB0_15:
	leaq	L_.str.9(%rip), %rdi
	callq	_perror
	jmp	LBB0_16
LBB0_17:
	leaq	L_.str.10(%rip), %rdi
	callq	_perror
	testl	%ebx, %ebx
	jns	LBB0_19
	jmp	LBB0_20
LBB0_23:
	leaq	L_.str.13(%rip), %rdi
	callq	_perror
	jmp	LBB0_24
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	callq	_perror
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/fb0"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.1:                               ## @.str.1
	.asciz	"open fb0"

	.comm	_FBIOGET_VSCREENINFO,4,2        ## @FBIOGET_VSCREENINFO
L_.str.2:                               ## @.str.2
	.asciz	"FBIOGET_VSCREENINFO ioctl"

L_.str.3:                               ## @.str.3
	.asciz	"fixing yoffset.. "

	.comm	_FBIOPAN_DISPLAY,4,2            ## @FBIOPAN_DISPLAY
L_.str.4:                               ## @.str.4
	.asciz	"ioctl FBIOPAN_DISPLAY"

L_.str.6:                               ## @.str.6
	.asciz	"/dev/fb1"

L_.str.7:                               ## @.str.7
	.asciz	"open fb1"

	.comm	_OMAPFB_QUERY_PLANE,4,2         ## @OMAPFB_QUERY_PLANE
	.comm	_OMAPFB_QUERY_MEM,4,2           ## @OMAPFB_QUERY_MEM
L_.str.8:                               ## @.str.8
	.asciz	"QUERY_*"

	.comm	_OMAPFB_SETUP_PLANE,4,2         ## @OMAPFB_SETUP_PLANE
L_.str.9:                               ## @.str.9
	.asciz	"SETUP_PLANE"

	.comm	_OMAPFB_SETUP_MEM,4,2           ## @OMAPFB_SETUP_MEM
L_.str.10:                              ## @.str.10
	.asciz	"SETUP_MEM"

L_.str.11:                              ## @.str.11
	.asciz	"/dev/tty"

L_.str.12:                              ## @.str.12
	.asciz	"open /dev/tty"

	.comm	_KDSETMODE,4,2                  ## @KDSETMODE
	.comm	_KD_TEXT,8,3                    ## @KD_TEXT
L_.str.13:                              ## @.str.13
	.asciz	"KDSETMODE KD_TEXT"

L_str:                                  ## @str
	.asciz	"ok"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x21, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _O_RDWR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x8, _FBIOGET_VSCREENINFO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FBIOGET_VSCREENINFO@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #56
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_20
; %bb.2:
	ldr	x8, [sp, #56]
	cbz	x8, LBB0_5
; %bb.3:
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	str	xzr, [sp, #56]
Lloh9:
	adrp	x8, _FBIOPAN_DISPLAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FBIOPAN_DISPLAY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #56
	mov	x0, x19
	bl	_ioctl
	tbnz	w0, #31, LBB0_25
; %bb.4:
Lloh12:
	adrp	x0, l_str@PAGE
Lloh13:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_5:
	tbnz	w19, #31, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_close
LBB0_7:
	ldr	w1, [x21]
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.8:
	mov	x19, x0
Lloh16:
	adrp	x8, _OMAPFB_QUERY_PLANE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OMAPFB_QUERY_PLANE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #32
	bl	_ioctl
	mov	x20, x0
Lloh19:
	adrp	x8, _OMAPFB_QUERY_MEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _OMAPFB_QUERY_MEM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	orr	w8, w0, w20
	cbnz	w8, LBB0_21
LBB0_9:
	str	xzr, [sp, #48]
Lloh22:
	adrp	x8, _OMAPFB_SETUP_PLANE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OMAPFB_SETUP_PLANE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	bl	_ioctl
	cbnz	w0, LBB0_22
LBB0_10:
	str	xzr, [sp, #16]
Lloh25:
	adrp	x8, _OMAPFB_SETUP_MEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _OMAPFB_SETUP_MEM@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	cbnz	w0, LBB0_23
; %bb.11:
	tbnz	w19, #31, LBB0_13
LBB0_12:
	mov	x0, x19
	bl	_close
LBB0_13:
	ldr	w1, [x21]
Lloh28:
	adrp	x0, l_.str.11@PAGE
Lloh29:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_19
; %bb.14:
	mov	x19, x0
Lloh30:
	adrp	x8, _KDSETMODE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KDSETMODE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _KD_TEXT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _KD_TEXT@GOTPAGEOFF]
Lloh35:
	ldr	x2, [x8]
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_24
LBB0_15:
	mov	x0, x19
	bl	_close
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_7
LBB0_18:
Lloh38:
	adrp	x0, l_.str.7@PAGE
Lloh39:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_perror
	b	LBB0_13
LBB0_19:
Lloh40:
	adrp	x0, l_.str.12@PAGE
Lloh41:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_perror
	mov	w0, #1
	b	LBB0_16
LBB0_20:
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	b	LBB0_5
LBB0_21:
Lloh44:
	adrp	x0, l_.str.8@PAGE
Lloh45:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_perror
	b	LBB0_9
LBB0_22:
Lloh46:
	adrp	x0, l_.str.9@PAGE
Lloh47:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_perror
	b	LBB0_10
LBB0_23:
Lloh48:
	adrp	x0, l_.str.10@PAGE
Lloh49:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_perror
	tbz	w19, #31, LBB0_12
	b	LBB0_13
LBB0_24:
Lloh50:
	adrp	x0, l_.str.13@PAGE
Lloh51:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_perror
	b	LBB0_15
LBB0_25:
Lloh52:
	adrp	x0, l_.str.4@PAGE
Lloh53:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_perror
	b	LBB0_5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/fb0"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.1:                               ; @.str.1
	.asciz	"open fb0"

	.comm	_FBIOGET_VSCREENINFO,4,2        ; @FBIOGET_VSCREENINFO
l_.str.2:                               ; @.str.2
	.asciz	"FBIOGET_VSCREENINFO ioctl"

l_.str.3:                               ; @.str.3
	.asciz	"fixing yoffset.. "

	.comm	_FBIOPAN_DISPLAY,4,2            ; @FBIOPAN_DISPLAY
l_.str.4:                               ; @.str.4
	.asciz	"ioctl FBIOPAN_DISPLAY"

l_.str.6:                               ; @.str.6
	.asciz	"/dev/fb1"

l_.str.7:                               ; @.str.7
	.asciz	"open fb1"

	.comm	_OMAPFB_QUERY_PLANE,4,2         ; @OMAPFB_QUERY_PLANE
	.comm	_OMAPFB_QUERY_MEM,4,2           ; @OMAPFB_QUERY_MEM
l_.str.8:                               ; @.str.8
	.asciz	"QUERY_*"

	.comm	_OMAPFB_SETUP_PLANE,4,2         ; @OMAPFB_SETUP_PLANE
l_.str.9:                               ; @.str.9
	.asciz	"SETUP_PLANE"

	.comm	_OMAPFB_SETUP_MEM,4,2           ; @OMAPFB_SETUP_MEM
l_.str.10:                              ; @.str.10
	.asciz	"SETUP_MEM"

l_.str.11:                              ; @.str.11
	.asciz	"/dev/tty"

l_.str.12:                              ; @.str.12
	.asciz	"open /dev/tty"

	.comm	_KDSETMODE,4,2                  ; @KDSETMODE
	.comm	_KD_TEXT,8,3                    ; @KD_TEXT
l_.str.13:                              ; @.str.13
	.asciz	"KDSETMODE KD_TEXT"

l_str:                                  ; @str
	.asciz	"ok"

.subsections_via_symbols
