	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function 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	%r14
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	cmpl	$2, %edi
	jl	LBB0_2
## %bb.1:
	movq	8(%rsi), %r14
	jmp	LBB0_11
LBB0_2:
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movb	$0, -49(%rbp)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$13, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$10, %al
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	jmp	LBB0_5
LBB0_8:
	leaq	-112(%rbp), %r14
	movb	$0, (%rbx)
	jmp	LBB0_11
LBB0_3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_10:
	leaq	-112(%rbp), %r14
LBB0_11:
	movq	%r14, %rdi
	callq	_strlen
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_nt_password_hash
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movzbl	-48(%rbp), %esi
	leaq	L_.str.1(%rip), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-47(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-46(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-45(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-44(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-43(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-42(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-41(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-40(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-39(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-38(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-37(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-36(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-35(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-34(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-33(%rbp), %esi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%r14d, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"%02x"

L_str:                                  ## @str
	.asciz	"Failed to read password"

.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	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x19, [x1, #8]
	b	LBB0_8
LBB0_2:
Lloh3:
	adrp	x8, _stdin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #64
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.3:
	add	x8, sp, #8
	strb	wzr, [sp, #71]
	ldrb	w9, [x8]
	cbz	w9, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #13
	ccmp	w9, #10, #4, ne
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	ldrb	w9, [x8]
	cbnz	w9, LBB0_4
LBB0_6:
	add	x19, sp, #8
	b	LBB0_8
LBB0_7:
	add	x19, sp, #8
	strb	wzr, [x8]
LBB0_8:
	mov	x0, x19
	bl	_strlen
	mov	x1, x0
	sub	x2, x29, #40
	mov	x0, x19
	bl	_nt_password_hash
	cbz	x0, LBB0_10
; %bb.9:
	mov	w0, #-1
	b	LBB0_12
LBB0_10:
	ldurb	w8, [x29, #-40]
	str	x8, [sp]
Lloh6:
	adrp	x19, l_.str.1@PAGE
Lloh7:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-39]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-38]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-37]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-36]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-35]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-34]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-33]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-32]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-31]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-30]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-29]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-28]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-27]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-26]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-25]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	mov	w0, #10
	bl	_putchar
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #1
LBB0_12:
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"%02x"

l_str:                                  ; @str
	.asciz	"Failed to read password"

.subsections_via_symbols
