	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function list_modes
LCPI0_0:
	.long	0x41cb3333                      ## float 25.3999996
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_list_modes:                            ## @list_modes
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_glfwGetVideoMode
	movq	%rax, %r14
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_glfwGetVideoModes
	movq	%rax, %r13
	leaq	-84(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	callq	_glfwGetMonitorPos
	leaq	-76(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	callq	_glfwGetMonitorPhysicalSize
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_glfwGetMonitorContentScale
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	callq	_glfwGetMonitorWorkarea
	movq	%r15, %rdi
	callq	_glfwGetMonitorName
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_glfwGetPrimaryMonitor
	cmpq	%r15, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%r14, %rdi
	callq	_format_mode
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	-84(%rbp), %esi
	movl	-80(%rbp), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movss	-52(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	movss	-48(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	leaq	L_.str.5(%rip), %rdi
	movb	$2, %al
	callq	_printf
	movl	-76(%rbp), %esi
	movl	-72(%rbp), %edx
	movss	(%r14), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	cvtsi2ss	%esi, %xmm2
	divss	%xmm2, %xmm0
	cvtss2sd	%xmm0, %xmm0
	cvtss2sd	%xmm1, %xmm1
	movl	4(%r14), %ecx
	leaq	L_.str.6(%rip), %rdi
	movb	$2, %al
	callq	_printf
	movl	-60(%rbp), %esi
	movl	-56(%rbp), %edx
	movl	-68(%rbp), %ecx
	movl	-64(%rbp), %r8d
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_str(%rip), %rdi
	callq	_puts
	cmpl	$0, -44(%rbp)
	jle	LBB0_5
## %bb.1:
	leaq	L_.str.9(%rip), %r15
	leaq	L_.str.10(%rip), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_putchar
	incq	%rbx
	movslq	-44(%rbp), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_format_mode
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_4
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Name: %s (%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"primary"

L_.str.2:                               ## @.str.2
	.asciz	"secondary"

L_.str.3:                               ## @.str.3
	.asciz	"Current mode: %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Virtual position: %i, %i\n"

L_.str.5:                               ## @.str.5
	.asciz	"Content scale: %f x %f\n"

L_.str.6:                               ## @.str.6
	.asciz	"Physical size: %i x %i mm (%0.2f dpi at %i x %i)\n"

L_.str.7:                               ## @.str.7
	.asciz	"Monitor work area: %i x %i starting at %i, %i\n"

L_.str.9:                               ## @.str.9
	.asciz	"%3u: %s"

L_.str.10:                              ## @.str.10
	.asciz	" (current mode)"

L_str:                                  ## @str
	.asciz	"Modes:"

	.no_dead_strip	_list_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function list_modes
_list_modes:                            ; @list_modes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x0
	bl	_glfwGetVideoMode
	mov	x19, x0
	sub	x1, x29, #52
	mov	x0, x21
	bl	_glfwGetVideoModes
	mov	x20, x0
	sub	x1, x29, #56
	sub	x2, x29, #60
	mov	x0, x21
	bl	_glfwGetMonitorPos
	sub	x1, x29, #64
	sub	x2, x29, #68
	mov	x0, x21
	bl	_glfwGetMonitorPhysicalSize
	add	x1, sp, #56
	add	x2, sp, #52
	mov	x0, x21
	bl	_glfwGetMonitorContentScale
	add	x1, sp, #72
	add	x2, sp, #68
	add	x3, sp, #64
	add	x4, sp, #60
	mov	x0, x21
	bl	_glfwGetMonitorWorkarea
	mov	x0, x21
	bl	_glfwGetMonitorName
	mov	x22, x0
	bl	_glfwGetPrimaryMonitor
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, x21
	csel	x8, x9, x8, eq
	stp	x22, x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_format_mode
	str	x0, [sp]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldp	w9, w8, [x29, #-60]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldp	s1, s0, [sp, #52]
	fcvt	d0, s0
	fcvt	d1, s1
	stp	d0, d1, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldur	w8, [x29, #-64]
	ldr	s0, [x19]
	mov	w9, #13107
	movk	w9, #16843, lsl #16
	fmov	s1, w9
	scvtf	s2, w8
	fmul	s1, s0, s1
	fdiv	s1, s1, s2
	fcvt	d1, s1
	fcvt	d0, s0
	ldur	w9, [x29, #-68]
	ldr	w10, [x19, #4]
	str	x10, [sp, #32]
	stp	x8, x9, [sp]
	stp	d1, d0, [sp, #16]
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldp	w9, w8, [sp, #60]
	ldp	w11, w10, [sp, #68]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x0, l_.str.7@PAGE
Lloh15:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldur	w8, [x29, #-52]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
Lloh18:
	adrp	x21, l_.str.9@PAGE
Lloh19:
	add	x21, x21, l_.str.9@PAGEOFF
Lloh20:
	adrp	x22, l_.str.10@PAGE
Lloh21:
	add	x22, x22, l_.str.10@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #10
	bl	_putchar
	add	x23, x23, #1
	ldursw	x8, [x29, #-52]
	add	x20, x20, #8
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_format_mode
	stp	x23, x0, [sp]
	mov	x0, x21
	bl	_printf
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	bl	_memcmp
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_printf
	b	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Name: %s (%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"primary"

l_.str.2:                               ; @.str.2
	.asciz	"secondary"

l_.str.3:                               ; @.str.3
	.asciz	"Current mode: %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Virtual position: %i, %i\n"

l_.str.5:                               ; @.str.5
	.asciz	"Content scale: %f x %f\n"

l_.str.6:                               ; @.str.6
	.asciz	"Physical size: %i x %i mm (%0.2f dpi at %i x %i)\n"

l_.str.7:                               ; @.str.7
	.asciz	"Monitor work area: %i x %i starting at %i, %i\n"

l_.str.9:                               ; @.str.9
	.asciz	"%3u: %s"

l_.str.10:                              ; @.str.10
	.asciz	" (current mode)"

l_str:                                  ; @str
	.asciz	"Modes:"

	.no_dead_strip	_list_modes
.subsections_via_symbols
