	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_leapsec_validate               ## -- Begin function leapsec_validate
	.p2align	4, 0x90
_leapsec_validate:                      ## @leapsec_validate
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-116(%rbp), %rdi
	callq	_isc_sha1_init
	leaq	-112(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$50, %ecx
	callq	_get_line
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	leaq	L_.str(%rip), %r13
	leaq	-112(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-120(%rbp), %rdi
	leaq	-110(%rbp), %rsi
	callq	_do_leap_hash
	movl	%eax, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movl	$50, %ecx
	callq	_get_line
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	-112(%rbp), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-116(%rbp), %rdi
	movq	%r12, %rsi
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-116(%rbp), %rdi
	leaq	-110(%rbp), %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_do_hash_data
	jmp	LBB0_10
LBB0_11:
	leaq	-116(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_isc_sha1_final
	movq	%rbx, %rdi
	callq	_isc_sha1_invalidate
	testl	%r15d, %r15d
	js	LBB0_12
## %bb.13:
	je	LBB0_14
## %bb.15:
	leaq	-120(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:
	movq	_LSVALID_GOODHASH@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_12:
	movq	_LSVALID_NOHASH@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	movq	_LSVALID_BADFORMAT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	_LSVALID_BADHASH@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"#h"

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

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

	.comm	_LSVALID_NOHASH,4,2             ## @LSVALID_NOHASH
	.comm	_LSVALID_BADFORMAT,4,2          ## @LSVALID_BADFORMAT
	.comm	_LSVALID_BADHASH,4,2            ## @LSVALID_BADHASH
	.comm	_LSVALID_GOODHASH,4,2           ## @LSVALID_GOODHASH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_leapsec_validate               ; -- Begin function leapsec_validate
	.p2align	2
_leapsec_validate:                      ; @leapsec_validate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	add	x0, sp, #16
	bl	_isc_sha1_init
	add	x21, sp, #22
	add	x2, sp, #22
	mov	x0, x20
	mov	x1, x19
	mov	w3, #50
	bl	_get_line
	cbz	x0, LBB0_11
; %bb.1:
	add	x22, x21, #2
	mov	w21, #-1
Lloh3:
	adrp	x23, l_.str@PAGE
Lloh4:
	add	x23, x23, l_.str@PAGEOFF
Lloh5:
	adrp	x24, l_.str.1@PAGE
Lloh6:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh7:
	adrp	x25, l_.str.2@PAGE
Lloh8:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #8
	mov	x1, x22
	bl	_do_leap_hash
	mov	x21, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x2, sp, #22
	mov	x0, x20
	mov	x1, x19
	mov	w3, #50
	bl	_get_line
	cbz	x0, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #22
	mov	x1, x23
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #22
	mov	x1, x24
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #22
	mov	x1, x25
	mov	w2, #2
	bl	_strncmp
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w0, [sp, #22]
	bl	_isdigit
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	add	x1, sp, #22
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	mov	x1, x22
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_do_hash_data
	b	LBB0_3
LBB0_11:
	mov	w21, #-1
LBB0_12:
	add	x0, sp, #16
	bl	_isc_sha1_final
	add	x0, sp, #16
	bl	_isc_sha1_invalidate
	tbnz	w21, #31, LBB0_15
; %bb.13:
	cbz	w21, LBB0_16
; %bb.14:
	add	x0, sp, #8
	mov	x1, sp
	mov	w2, #4
	bl	_memcmp
Lloh9:
	adrp	x8, _LSVALID_BADHASH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LSVALID_BADHASH@GOTPAGEOFF]
Lloh11:
	adrp	x9, _LSVALID_GOODHASH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _LSVALID_GOODHASH@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_17
LBB0_15:
Lloh13:
	adrp	x8, _LSVALID_NOHASH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LSVALID_NOHASH@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh15:
	adrp	x8, _LSVALID_BADFORMAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LSVALID_BADFORMAT@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldr	x8, [sp, #72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"#h"

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

l_.str.2:                               ; @.str.2
	.asciz	"#$"

	.comm	_LSVALID_NOHASH,4,2             ; @LSVALID_NOHASH
	.comm	_LSVALID_BADFORMAT,4,2          ; @LSVALID_BADFORMAT
	.comm	_LSVALID_BADHASH,4,2            ; @LSVALID_BADHASH
	.comm	_LSVALID_GOODHASH,4,2           ; @LSVALID_GOODHASH
.subsections_via_symbols
