	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_mode
_format_mode:                           ## @format_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movl	4(%rbx), %esi
	callq	_euclid
	movl	%eax, %ecx
	movl	(%rbx), %r8d
	movl	4(%rbx), %r10d
	movl	8(%rbx), %r14d
	movl	12(%rbx), %r15d
	leal	(%r15,%r14), %r9d
	movl	16(%rbx), %r12d
	addl	%r12d, %r9d
	movl	%r8d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %r11d
	movl	%r10d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	movl	20(%rbx), %ebx
	leaq	_format_mode.buffer(%rip), %r13
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	$512, %esi                      ## imm = 0x200
	movl	%r8d, %ecx
	movl	%r10d, %r8d
	pushq	%rbx
	pushq	%r12
	pushq	%r15
	pushq	%r14
	pushq	%rax
	pushq	%r11
	callq	_snprintf
	addq	$48, %rsp
	movb	$0, _format_mode.buffer+511(%rip)
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_format_mode.buffer,512,4 ## @format_mode.buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i x %i x %i (%i:%i) (%i %i %i) %i Hz"

	.no_dead_strip	_format_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_mode
_format_mode:                           ; @format_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w1, [x19, #4]
	bl	_euclid
	ldp	w3, w4, [x19]
	ldp	w8, w9, [x19, #8]
	ldp	w10, w11, [x19, #16]
	add	w12, w9, w8
	add	w5, w12, w10
	sdiv	w6, w3, w0
	sdiv	w7, w4, w0
	stp	w10, w11, [sp, #8]
	stp	w8, w9, [sp]
Lloh0:
	adrp	x19, _format_mode.buffer@PAGE
Lloh1:
	add	x19, x19, _format_mode.buffer@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #512
	bl	_snprintf
	strb	wzr, [x19, #511]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_format_mode.buffer,512,0 ; @format_mode.buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i x %i x %i (%i:%i) (%i %i %i) %i Hz"

	.no_dead_strip	_format_mode
.subsections_via_symbols
