	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_mode_info
_show_mode_info:                        ## @show_mode_info
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_str(%rip), %rdi
	callq	_puts
	leaq	L_str.11(%rip), %rdi
	callq	_puts
	leaq	-224(%rbp), %rdi
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movq	_M_VESA_MODE_MAX@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	js	LBB0_18
## %bb.1:
	movl	$-1, %ebx
	movq	_CONS_MODEINFO@GOTPCREL(%rip), %r13
	leaq	-224(%rbp), %r14
	leaq	-128(%rbp), %r15
	jmp	LBB0_2
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-216(%rbp), %rcx
	movq	-208(%rbp), %r8
	movq	%r15, %rdi
	movl	$80, %esi
	leaq	L_.str.6(%rip), %r13
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	$84, %esi
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	-200(%rbp), %rcx
	movq	-192(%rbp), %r8
	movq	%r15, %rdi
	movl	$80, %esi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_snprintf
	leaq	L_.str.8(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	-136(%rbp), %esi
	movl	-152(%rbp), %eax
	movl	-144(%rbp), %ecx
	leal	1023(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$10, %edx
	leal	1023(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$10, %ecx
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-168(%rbp), %esi
	movl	-160(%rbp), %eax
	leal	1023(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$10, %edx
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_CONS_MODEINFO@GOTPCREL(%rip), %r13
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r12), %ebx
	jge	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movl	%ebx, -224(%rbp)
	movl	(%r13), %esi
	xorl	%edi, %edi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_17
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	-224(%rbp), %ebx
	jne	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -216(%rbp)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -208(%rbp)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -200(%rbp)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -192(%rbp)
	je	LBB0_17
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
	movl	-184(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_V_INFO_GRAPHICS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -184(%rbp)
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-180(%rbp), %ecx
	movq	_V_INFO_MM_PLANAR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-216(%rbp), %rcx
	movq	-208(%rbp), %r8
	movl	-176(%rbp), %r9d
	movl	-172(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	$80, %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_14
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	$-128, %ecx
	movl	$32, %eax
	cmpl	$4, %ecx
	ja	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ecx, %rax
	leaq	l_switch.table.show_mode_info(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-216(%rbp), %rcx
	movq	-208(%rbp), %r8
	movl	-176(%rbp), %r9d
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	$80, %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_snprintf
	movl	$71, %esi
	leaq	L_.str.6(%rip), %r13
	jmp	LBB0_16
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_M_VESA_MODE_MAX,4,2            ## @M_VESA_MODE_MAX
	.comm	_CONS_MODEINFO,4,2              ## @CONS_MODEINFO
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"%3d (0x%03x)"

L_.str.3:                               ## @.str.3
	.asciz	" 0x%08x"

	.comm	_V_INFO_GRAPHICS,4,2            ## @V_INFO_GRAPHICS
	.comm	_V_INFO_MM_PLANAR,4,2           ## @V_INFO_MM_PLANAR
L_.str.4:                               ## @.str.4
	.asciz	"%dx%dx%d %d"

L_.str.5:                               ## @.str.5
	.asciz	"%dx%dx%d %c"

L_.str.6:                               ## @.str.6
	.asciz	"%dx%d"

L_.str.7:                               ## @.str.7
	.asciz	" %c %-15s"

L_.str.8:                               ## @.str.8
	.asciz	" %-5s"

L_.str.9:                               ## @.str.9
	.asciz	" 0x%05zx %2dk %2dk"

L_.str.10:                              ## @.str.10
	.asciz	" 0x%08zx %dk\n"

L_str:                                  ## @str
	.asciz	"    mode#     flags   type    size       font      window      linear buffer"

L_str.11:                               ## @str.11
	.asciz	"------------------------------------------------------------------------------"

	.no_dead_strip	_show_mode_info
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.show_mode_info
l_switch.table.show_mode_info:
	.long	86                              ## 0x56
	.long	80                              ## 0x50
	.long	72                              ## 0x48
	.long	68                              ## 0x44
	.long	67                              ## 0x43

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_mode_info
_show_mode_info:                        ; @show_mode_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #224]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x0, l_str@PAGE
Lloh4:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh5:
	adrp	x0, l_str.11@PAGE
Lloh6:
	add	x0, x0, l_str.11@PAGEOFF
	bl	_puts
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #96
	bl	_memset
Lloh7:
	adrp	x28, _M_VESA_MODE_MAX@GOTPAGE
Lloh8:
	ldr	x28, [x28, _M_VESA_MODE_MAX@GOTPAGEOFF]
	ldr	w8, [x28]
	tbnz	w8, #31, LBB0_15
; %bb.1:
Lloh9:
	adrp	x26, _CONS_MODEINFO@GOTPAGE
Lloh10:
	ldr	x26, [x26, _CONS_MODEINFO@GOTPAGEOFF]
Lloh11:
	adrp	x20, l_.str.3@PAGE
Lloh12:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh13:
	adrp	x21, l_.str.6@PAGE
Lloh14:
	add	x21, x21, l_.str.6@PAGEOFF
	mov	w27, #-1
	add	x19, sp, #128
Lloh15:
	adrp	x22, l_.str.7@PAGE
Lloh16:
	add	x22, x22, l_.str.7@PAGEOFF
Lloh17:
	adrp	x23, l_.str.8@PAGE
Lloh18:
	add	x23, x23, l_.str.8@PAGEOFF
Lloh19:
	adrp	x24, l_.str.9@PAGE
Lloh20:
	add	x24, x24, l_.str.9@PAGEOFF
Lloh21:
	adrp	x25, l_.str.10@PAGE
Lloh22:
	add	x25, x25, l_.str.10@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x3, x4, [sp, #40]
	add	x0, sp, #128
	mov	w1, #80
	mov	x2, x21
	bl	_snprintf
	mov	w8, #84
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	stp	x8, x19, [sp]
	mov	x0, x22
	bl	_printf
	ldp	x3, x4, [sp, #56]
	add	x0, sp, #128
	mov	w1, #80
	mov	x2, x21
	bl	_snprintf
	str	x19, [sp]
	mov	x0, x23
	bl	_printf
	ldr	w8, [sp, #112]
	ldr	w9, [sp, #104]
	add	w10, w8, #1023
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #10
	add	w10, w9, #1023
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #10
	ldr	w10, [sp, #120]
	stp	x8, x9, [sp, #8]
	str	x10, [sp]
	mov	x0, x24
	bl	_printf
	ldr	w8, [sp, #96]
	ldr	w9, [sp, #88]
	add	w10, w8, #1023
	cmp	w8, #0
	csel	w8, w10, w8, lt
	asr	w8, w8, #10
	stp	x9, x8, [sp]
	mov	x0, x25
	bl	_printf
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	cmp	w27, w8
	b.ge	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w27, w27, #1
	str	w27, [sp, #32]
	ldr	w1, [x26]
	add	x2, sp, #32
	mov	w0, #0
	bl	_ioctl
	ldr	w8, [sp, #32]
	cmp	x0, #0
	ccmp	w27, w8, #0, eq
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	q0, [sp, #56]
	ldur	q1, [sp, #40]
	cmtst.2d	v0, v0, v0
	cmtst.2d	v1, v1, v1
	uzp1.4s	v0, v1, v0
	xtn.4h	v0, v0
	umov.h	w8, v0[0]
	umov.h	w9, v0[1]
	and	w9, w9, #0x1
	bfi	w8, w9, #1, #1
	umov.h	w9, v0[2]
	and	w9, w9, #0x1
	bfi	w8, w9, #2, #1
	umov.h	w9, v0[3]
	bfi	w8, w9, #3, #29
	tst	w8, #0xf
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x27, x27, [sp]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	w8, [sp, #72]
	str	x8, [sp]
	mov	x0, x20
	bl	_printf
	ldr	w8, [sp, #72]
Lloh25:
	adrp	x9, _V_INFO_GRAPHICS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _V_INFO_GRAPHICS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #76]
Lloh28:
	adrp	x9, _V_INFO_MM_PLANAR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _V_INFO_MM_PLANAR@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x3, x4, [sp, #40]
	ldp	w8, w9, [sp, #80]
	stp	x8, x9, [sp]
	add	x0, sp, #128
	mov	w1, #80
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh33:
	adrp	x9, l_switch.table.show_mode_info@PAGE
Lloh34:
	add	x9, x9, l_switch.table.show_mode_info@PAGEOFF
	ldr	w8, [x9, w8, sxtw #2]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #32
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x3, x4, [sp, #40]
	ldr	w9, [sp, #80]
	stp	x9, x8, [sp]
	add	x0, sp, #128
	mov	w1, #80
Lloh35:
	adrp	x2, l_.str.5@PAGE
Lloh36:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_snprintf
	mov	w8, #71
	b	LBB0_3
LBB0_15:
	ldur	x8, [x29, #-96]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #240]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_M_VESA_MODE_MAX,4,2            ; @M_VESA_MODE_MAX
	.comm	_CONS_MODEINFO,4,2              ; @CONS_MODEINFO
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"%3d (0x%03x)"

l_.str.3:                               ; @.str.3
	.asciz	" 0x%08x"

	.comm	_V_INFO_GRAPHICS,4,2            ; @V_INFO_GRAPHICS
	.comm	_V_INFO_MM_PLANAR,4,2           ; @V_INFO_MM_PLANAR
l_.str.4:                               ; @.str.4
	.asciz	"%dx%dx%d %d"

l_.str.5:                               ; @.str.5
	.asciz	"%dx%dx%d %c"

l_.str.6:                               ; @.str.6
	.asciz	"%dx%d"

l_.str.7:                               ; @.str.7
	.asciz	" %c %-15s"

l_.str.8:                               ; @.str.8
	.asciz	" %-5s"

l_.str.9:                               ; @.str.9
	.asciz	" 0x%05zx %2dk %2dk"

l_.str.10:                              ; @.str.10
	.asciz	" 0x%08zx %dk\n"

l_str:                                  ; @str
	.asciz	"    mode#     flags   type    size       font      window      linear buffer"

l_str.11:                               ; @str.11
	.asciz	"------------------------------------------------------------------------------"

	.no_dead_strip	_show_mode_info
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.show_mode_info
l_switch.table.show_mode_info:
	.long	86                              ; 0x56
	.long	80                              ; 0x50
	.long	72                              ; 0x48
	.long	68                              ; 0x44
	.long	67                              ; 0x43

.subsections_via_symbols
