	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_dir_dateline
_parse_dir_dateline:                    ## @parse_dir_dateline
	.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	%rsi, %rbx
	movl	%edi, %r14d
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%rdx, %rsi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movl	$1, %r15d
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.2:
	cmpl	$3, %r14d
	je	LBB0_6
## %bb.3:
	cmpl	$2, %r14d
	je	LBB0_8
## %bb.4:
	cmpl	$1, %r14d
	jne	LBB0_7
## %bb.5:
	movq	32(%rbx), %rcx
	movslq	24(%rbx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rcx,%rdx,4), %r13
	addq	$-12, %r13
	movq	%rbx, %rcx
	jmp	LBB0_9
LBB0_6:
	movq	32(%rbx), %rcx
	movslq	24(%rbx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rcx,%rdx,4), %r13
	addq	$-4, %r13
	leaq	8(%rbx), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	32(%rbx), %rcx
	movslq	24(%rbx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rcx,%rdx,4), %r13
	addq	$-8, %r13
	leaq	4(%rbx), %rcx
LBB0_9:
	movl	(%rcx), %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, (%r13)
	testl	%eax, %eax
	setns	%cl
	movl	%r12d, %r8d
	negl	%r8d
	cmpl	%r8d, %eax
	setg	%dl
	orb	%cl, %dl
	cmpb	$1, %dl
	jne	LBB0_11
## %bb.10:
	cmpl	%r12d, %eax
	jl	LBB0_12
LBB0_11:
	movq	16(%rbx), %rdi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r14d, %ecx
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_OSM_LOG
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_7:
	movq	16(%rbx), %rdi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_OSM_LOG
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERR 4E0F: unknown dateline direction %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"ERR 4E10: dateline value for coordinate direction %d must be %d < dl < %d\n"

	.no_dead_strip	_parse_dir_dateline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_dir_dateline
_parse_dir_dateline:                    ; @parse_dir_dateline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	mov	x0, #0
	mov	x1, x2
	bl	_strtok
	cbz	x0, LBB0_13
; %bb.1:
	cbz	x20, LBB0_10
; %bb.2:
	cmp	w19, #3
	b.eq	LBB0_6
; %bb.3:
	cmp	w19, #2
	b.eq	LBB0_7
; %bb.4:
	cmp	w19, #1
	b.ne	LBB0_11
; %bb.5:
	ldr	x8, [x20, #32]
	ldrsw	x9, [x20, #24]
	mov	w10, #12
	madd	x8, x9, x10, x8
	sub	x21, x8, #12
	mov	x8, x20
	b	LBB0_8
LBB0_6:
	ldr	x8, [x20, #32]
	ldrsw	x9, [x20, #24]
	mov	w10, #12
	madd	x8, x9, x10, x8
	sub	x21, x8, #4
	add	x8, x20, #8
	b	LBB0_8
LBB0_7:
	ldr	x8, [x20, #32]
	ldrsw	x9, [x20, #24]
	mov	w10, #12
	madd	x8, x9, x10, x8
	sub	x21, x8, #8
	add	x8, x20, #4
LBB0_8:
	ldr	w22, [x8]
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	str	w0, [x21]
	neg	w8, w22
	cmp	w0, w8
	mov	w9, #-1
	ccmp	w0, w9, #0, le
	ccmp	w0, w22, #0, gt
	b.lt	LBB0_10
; %bb.9:
	ldr	x0, [x20, #16]
Lloh0:
	adrp	x9, _OSM_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	stp	x8, x22, [sp]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	w0, #1
	b	LBB0_13
LBB0_11:
	ldr	x0, [x20, #16]
Lloh5:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_12:
	mov	x3, x19
	bl	_OSM_LOG
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERR 4E0F: unknown dateline direction %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"ERR 4E10: dateline value for coordinate direction %d must be %d < dl < %d\n"

	.no_dead_strip	_parse_dir_dateline
.subsections_via_symbols
