	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function main
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_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	%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	%rsi, %r14
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, 8(%r14)
LBB0_2:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_setbuf
	movq	8(%r14), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	8(%r14), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	leaq	-44(%rbp), %rsi
	movl	%ebx, %edi
	callq	_time_pps_create
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movl	-44(%rbp), %edi
	leaq	-76(%rbp), %rsi
	callq	_time_pps_getcap
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	_PPS_CAPTUREBOTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rsi
	callq	_time_pps_setparams
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	movq	_PPS_TSFMT_TSPEC@GOTPCREL(%rip), %r14
	leaq	-72(%rbp), %r12
	leaq	-96(%rbp), %rbx
                                        ## implicit-def: $r15
                                        ## implicit-def: $r13
	jmp	LBB0_11
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_Chew
	movq	-72(%rbp), %r15
	movq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movl	-44(%rbp), %edi
	movl	(%r14), %esi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_time_pps_fetch
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rcx
	cmpq	%rdx, %r15
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rcx, %r13
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_usleep
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/cuaa1"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"time_pps_create"

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

	.comm	_PPS_CAPTUREASSERT,4,2          ## @PPS_CAPTUREASSERT
	.comm	_PPS_ECHOASSERT,4,2             ## @PPS_ECHOASSERT
	.comm	_PPS_CAPTUREBOTH,4,2            ## @PPS_CAPTUREBOTH
L_.str.3:                               ## @.str.3
	.asciz	"time_pps_setparams"

	.comm	_PPS_TSFMT_TSPEC,4,2            ## @PPS_TSFMT_TSPEC
L_.str.4:                               ## @.str.4
	.asciz	"time_pps_fetch"

.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	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
	mov	x19, x1
	cmp	w0, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19, #8]
LBB0_2:
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_setbuf
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.3:
	ldr	x1, [x19, #8]
	mov	w0, #1
	bl	_err
LBB0_4:
	add	x1, sp, #28
	mov	x0, x20
	bl	_time_pps_create
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	w0, [sp, #28]
	add	x1, sp, #24
	bl	_time_pps_getcap
	tbz	w0, #31, LBB0_8
; %bb.7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
Lloh12:
	adrp	x8, _PPS_CAPTUREBOTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PPS_CAPTUREBOTH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	ldr	w0, [sp, #28]
	add	x1, sp, #32
	bl	_time_pps_setparams
	tbz	w0, #31, LBB0_10
; %bb.9:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	add	x8, sp, #40
	add	x19, x8, #20
	add	x20, x8, #16
Lloh17:
	adrp	x22, _PPS_TSFMT_TSPEC@GOTPAGE
Lloh18:
	ldr	x22, [x22, _PPS_TSFMT_TSPEC@GOTPAGEOFF]
Lloh19:
	adrp	x21, l_.str.4@PAGE
Lloh20:
	add	x21, x21, l_.str.4@PAGEOFF
                                        ; implicit-def: $x23
                                        ; implicit-def: $x24
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldp	x2, x3, [sp, #40]
	cmp	x23, x2
	ccmp	x24, x3, #0, eq
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #10000
	bl	_usleep
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [sp, #8]
	ldr	w0, [sp, #28]
	ldr	w1, [x22]
	add	x2, sp, #40
	add	x3, sp, #8
	bl	_time_pps_fetch
	tbz	w0, #31, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w0, #1
	mov	x1, x21
	bl	_err
	b	LBB0_11
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_Chew
	ldp	x23, x24, [sp, #40]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/cuaa1"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"time_pps_create"

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

	.comm	_PPS_CAPTUREASSERT,4,2          ; @PPS_CAPTUREASSERT
	.comm	_PPS_ECHOASSERT,4,2             ; @PPS_ECHOASSERT
	.comm	_PPS_CAPTUREBOTH,4,2            ; @PPS_CAPTUREBOTH
l_.str.3:                               ; @.str.3
	.asciz	"time_pps_setparams"

	.comm	_PPS_TSFMT_TSPEC,4,2            ; @PPS_TSFMT_TSPEC
l_.str.4:                               ; @.str.4
	.asciz	"time_pps_fetch"

.subsections_via_symbols
