	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_gps_time                  ## -- Begin function wait_gps_time
	.p2align	4, 0x90
_wait_gps_time:                         ## @wait_gps_time
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	cmpq	$0, 32(%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_11
## %bb.2:
	movl	%esi, %r14d
	movq	_TIME_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%edi, %edi
	callq	_time
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_time
	subl	%r15d, %eax
	cmpl	%r14d, %eax
	jge	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r12d, (%rbx)
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	$200, %esi
	callq	*16(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_read_gps_data_once
	jmp	LBB0_3
LBB0_8:
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	testl	%r12d, (%rbx)
	jne	LBB0_11
LBB0_10:
	movl	$-1, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIME_SET,4,2                   ## @TIME_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wait_gps_time                  ; -- Begin function wait_gps_time
	.p2align	2
_wait_gps_time:                         ; @wait_gps_time
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_11
; %bb.2:
	mov	x20, x1
Lloh0:
	adrp	x8, _TIME_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIME_SET@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, #0
	bl	_time
	mov	x21, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	bl	_time
	sub	w8, w0, w21
	cmp	w8, w20
	b.ge	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	tst	w8, w22
	b.ne	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #200
	blr	x8
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_read_gps_data_once
	b	LBB0_3
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	w8, [x19]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIME_SET,4,2                   ; @TIME_SET
.subsections_via_symbols
