	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_default_get_resolution         ## -- Begin function default_get_resolution
	.p2align	4, 0x90
_default_get_resolution:                ## @default_get_resolution
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MINLOOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_gettimeofday
	movl	$1, %r14d
	subl	%r13d, %r14d
	movq	_MAXLOOPS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_1
## %bb.2:
	decl	%r13d
	movq	-56(%rbp), %rax
	movq	_DUSECS@GOTPCREL(%rip), %r15
	movq	_MINSTEP@GOTPCREL(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	decl	%r13d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movq	_MAXLOOPS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r14d
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_gettimeofday
	movq	-56(%rbp), %rax
	movq	%rax, %rcx
	subq	%rbx, %rcx
	movq	%rcx, %rbx
	sarq	$63, %rbx
	andq	(%r15), %rbx
	addq	%rcx, %rbx
	cmpq	(%r12), %rbx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	jg	LBB0_5
	jmp	LBB0_7
LBB0_1:
                                        ## implicit-def: $rbx
LBB0_7:
	cmpl	$1, %r14d
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_printf
	movq	_MAXLOOPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	%esi, %r14d
	jge	LBB0_9
## %bb.8:
	leaq	(%rbx,%rbx,2), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rax, %rcx
	sarq	%rcx
	testl	%r14d, %r14d
	jne	LBB0_12
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %ecx
	testl	%r14d, %r14d
	jne	LBB0_12
LBB0_11:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	movl	$1, %ecx
LBB0_12:
	movq	_HUSECS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jle	LBB0_16
## %bb.13:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rcx
	jge	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	decl	%eax
	movq	%rdx, %rsi
	shrq	%rsi
	cmpq	$1, %rdx
	movq	%rsi, %rdx
	ja	LBB0_14
LBB0_16:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_DEFAULT_SYS_PRECISION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MINLOOPS,4,2                   ## @MINLOOPS
	.comm	_MAXLOOPS,4,2                   ## @MAXLOOPS
	.comm	_DUSECS,8,3                     ## @DUSECS
	.comm	_MINSTEP,8,3                    ## @MINSTEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"resolution = %ld usec after %d loop%s\n"

L_.str.1:                               ## @.str.1
	.space	1

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

L_.str.3:                               ## @.str.3
	.asciz	"     (Boy this machine is fast ! %d loops without a step)\n"

	.comm	_HUSECS,8,3                     ## @HUSECS
	.comm	_DEFAULT_SYS_PRECISION,4,2      ## @DEFAULT_SYS_PRECISION
L_str:                                  ## @str
	.asciz	"     (Oh dear -- that wasn't expected ! I'll guess !)"

L_str.6:                                ## @str.6
	.asciz	"     (The resolution is less than the time to read the clock -- Assume 1us)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_default_get_resolution         ; -- Begin function default_get_resolution
	.p2align	2
_default_get_resolution:                ; @default_get_resolution
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _MINLOOPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINLOOPS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	add	x0, sp, #40
	add	x1, sp, #32
	bl	_gettimeofday
	mov	w8, #1
Lloh3:
	adrp	x20, _MAXLOOPS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MAXLOOPS@GOTPAGEOFF]
	ldr	w9, [x20]
	sub	w19, w8, w21
	cmp	w19, w9
	b.ge	LBB0_5
; %bb.1:
	sub	w21, w21, #1
	ldr	x25, [sp, #40]
Lloh5:
	adrp	x23, _DUSECS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DUSECS@GOTPAGEOFF]
Lloh7:
	adrp	x24, _MINSTEP@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MINSTEP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w19, #1
	ldr	w9, [x20]
	mov	x25, x8
	cmp	w19, w9
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	add	x1, sp, #32
	bl	_gettimeofday
	ldr	x8, [sp, #40]
	ldr	x9, [x23]
	sub	x10, x8, x25
	and	x9, x9, x10, asr #63
	add	x22, x9, x10
	ldr	x9, [x24]
	cmp	x22, x9
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w21, w21, #1
	b.ge	LBB0_2
	b	LBB0_6
LBB0_5:
                                        ; implicit-def: $x22
LBB0_6:
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh11:
	adrp	x9, l_.str.1@PAGE
Lloh12:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w19, #1
	csel	x8, x9, x8, eq
	stp	x22, x19, [sp]
	str	x8, [sp, #16]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	add	x8, x22, x22, lsl #1
	cmp	x8, #0
	cinc	x9, x8, lt
	ldr	w8, [x20]
	cmp	w19, w8
	b.ge	LBB0_8
; %bb.7:
	asr	x8, x9, #1
	cbnz	w19, LBB0_10
	b	LBB0_9
LBB0_8:
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	w8, #1
	cbnz	w19, LBB0_10
LBB0_9:
Lloh17:
	adrp	x0, l_str.6@PAGE
Lloh18:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	mov	w8, #1
LBB0_10:
Lloh19:
	adrp	x9, _HUSECS@GOTPAGE
Lloh20:
	ldr	x9, [x9, _HUSECS@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, #1
	b.lt	LBB0_14
; %bb.11:
	mov	w0, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	sub	w0, w0, #1
	lsr	x10, x9, #1
	cmp	x9, #1
	mov	x9, x10
	b.hi	LBB0_12
LBB0_14:
Lloh22:
	adrp	x0, l_str@PAGE
Lloh23:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh24:
	adrp	x8, _DEFAULT_SYS_PRECISION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DEFAULT_SYS_PRECISION@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
LBB0_15:
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MINLOOPS,4,2                   ; @MINLOOPS
	.comm	_MAXLOOPS,4,2                   ; @MAXLOOPS
	.comm	_DUSECS,8,3                     ; @DUSECS
	.comm	_MINSTEP,8,3                    ; @MINSTEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"resolution = %ld usec after %d loop%s\n"

l_.str.1:                               ; @.str.1
	.space	1

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

l_.str.3:                               ; @.str.3
	.asciz	"     (Boy this machine is fast ! %d loops without a step)\n"

	.comm	_HUSECS,8,3                     ; @HUSECS
	.comm	_DEFAULT_SYS_PRECISION,4,2      ; @DEFAULT_SYS_PRECISION
l_str:                                  ; @str
	.asciz	"     (Oh dear -- that wasn't expected ! I'll guess !)"

l_str.6:                                ; @str.6
	.asciz	"     (The resolution is less than the time to read the clock -- Assume 1us)"

.subsections_via_symbols
