	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libgps_load                    ## -- Begin function libgps_load
	.p2align	4, 0x90
_libgps_load:                           ## @libgps_load
	.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
	movq	%rdi, %rbx
	movq	_LIBGPS_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RTLD_LAZY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlopen
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	24(%rbx), %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %esi
	callq	_libgps_load_sym
	movl	%eax, %r14d
	leaq	20(%rbx), %rdi
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_libgps_load_sym
	movl	%eax, %r15d
	leaq	16(%rbx), %rdi
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdx
	callq	_libgps_load_sym
	movl	%eax, %r12d
	orl	%r15d, %r12d
	leaq	12(%rbx), %rdi
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	callq	_libgps_load_sym
	movl	%eax, %r15d
	orl	%r12d, %r15d
	leaq	8(%rbx), %rdi
	movl	(%rbx), %esi
	leaq	L_.str.5(%rip), %rdx
	callq	_libgps_load_sym
	movl	%eax, %r12d
	orl	%r15d, %r12d
	orl	%r14d, %r12d
	movl	(%rbx), %esi
	addq	$4, %rbx
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rdi
	callq	_libgps_load_sym
	movl	%eax, %ecx
	xorl	%eax, %eax
	orl	%r12d, %ecx
	setne	%al
	negl	%eax
	jmp	LBB0_3
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_dlerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_fprintf
	movl	$-1, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBGPS_FILE,4,2                ## @LIBGPS_FILE
	.comm	_RTLD_LAZY,4,2                  ## @RTLD_LAZY
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"gps_open"

L_.str.4:                               ## @.str.4
	.asciz	"gps_close"

L_.str.5:                               ## @.str.5
	.asciz	"gps_errstr"

L_.str.6:                               ## @.str.6
	.asciz	"gps_stream"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libgps_load                    ; -- Begin function libgps_load
	.p2align	2
_libgps_load:                           ; @libgps_load
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _LIBGPS_FILE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBGPS_FILE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _RTLD_LAZY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTLD_LAZY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_dlopen
	str	w0, [x19]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
	add	x0, x19, #24
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_libgps_load_sym
	mov	x20, x0
	mov	x0, x19
	ldr	w1, [x0], #20
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_libgps_load_sym
	orr	w20, w0, w20
	mov	x0, x19
	ldr	w1, [x0], #16
Lloh10:
	adrp	x2, l_.str.3@PAGE
Lloh11:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_libgps_load_sym
	orr	w20, w20, w0
	mov	x0, x19
	ldr	w1, [x0], #12
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_libgps_load_sym
	orr	w20, w20, w0
	mov	x0, x19
	ldr	w1, [x0], #8
Lloh14:
	adrp	x2, l_.str.5@PAGE
Lloh15:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_libgps_load_sym
	orr	w20, w20, w0
	ldr	w1, [x19], #4
Lloh16:
	adrp	x2, l_.str.6@PAGE
Lloh17:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_libgps_load_sym
	orr	w8, w20, w0
	cmp	w8, #0
	csetm	w0, ne
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w19, [x8]
	bl	_dlerror
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBGPS_FILE,4,2                ; @LIBGPS_FILE
	.comm	_RTLD_LAZY,4,2                  ; @RTLD_LAZY
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"gps_open"

l_.str.4:                               ; @.str.4
	.asciz	"gps_close"

l_.str.5:                               ; @.str.5
	.asciz	"gps_errstr"

l_.str.6:                               ; @.str.6
	.asciz	"gps_stream"

.subsections_via_symbols
