	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpl	$1, %edi
	jg	LBB0_3
## %bb.1:
	leaq	L_str.17(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	8(%rsi), %r14
	cmpl	$2, %edi
	jne	LBB0_4
## %bb.5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movb	$0, -81(%rbp)
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$13, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpb	$10, %al
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	jmp	LBB0_8
LBB0_4:
	movq	16(%rsi), %r12
	jmp	LBB0_14
LBB0_11:
	leaq	-144(%rbp), %r12
	movb	$0, (%rbx)
	jmp	LBB0_14
LBB0_6:
	leaq	L_str.16(%rip), %rdi
	jmp	LBB0_2
LBB0_13:
	leaq	-144(%rbp), %r12
LBB0_14:
	movq	%r12, %rdi
	callq	_os_strlen
	leaq	-64(%rax), %rcx
	cmpq	$-57, %rcx
	ja	LBB0_16
## %bb.15:
	leaq	L_str.15(%rip), %rdi
	jmp	LBB0_2
LBB0_16:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_has_ctrl_char
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_str.14(%rip), %rdi
LBB0_2:
	callq	_puts
	movl	$1, %r15d
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r15d, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r14, %rdi
	callq	_os_strlen
	leaq	-80(%rbp), %r8
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	movl	$32, %r9d
	callq	_pbkdf2_sha1
	leaq	L_str.12(%rip), %rdi
	callq	_puts
	leaq	L_.str.6(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.7(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-80(%rbp), %esi
	leaq	L_.str.9(%rip), %r14
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-79(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-78(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-77(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-76(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-75(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-74(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-73(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-72(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-71(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-70(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-69(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-68(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-67(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-66(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-65(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-64(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-63(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-62(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-61(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-60(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-59(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-58(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-57(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-56(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-55(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-54(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-53(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-52(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-51(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-50(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movzbl	-49(%rbp), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$10, %edi
	callq	_putchar
	leaq	L_str.13(%rip), %rdi
	callq	_puts
	jmp	LBB0_19
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str.6:                               ## @.str.6
	.asciz	"\tssid=\"%s\"\n"

L_.str.7:                               ## @.str.7
	.asciz	"\t#psk=\"%s\"\n"

L_.str.8:                               ## @.str.8
	.asciz	"\tpsk="

L_.str.9:                               ## @.str.9
	.asciz	"%02x"

L_str:                                  ## @str
	.asciz	"# reading passphrase from stdin"

L_str.12:                               ## @str.12
	.asciz	"network={"

L_str.13:                               ## @str.13
	.asciz	"}"

L_str.14:                               ## @str.14
	.asciz	"Invalid passphrase character"

L_str.15:                               ## @str.15
	.asciz	"Passphrase must be 8..63 characters"

L_str.16:                               ## @str.16
	.asciz	"Failed to read passphrase"

L_str.17:                               ## @str.17
	.asciz	"usage: wpa_passphrase <ssid> [passphrase]\n\nIf passphrase is left out, it will be read from stdin"

.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, #144
	.cfi_def_cfa_offset 144
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, #1
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_str.17@PAGE
Lloh4:
	add	x0, x0, l_str.17@PAGEOFF
	b	LBB0_15
LBB0_2:
	ldr	x19, [x1, #8]
	cmp	w0, #2
	b.ne	LBB0_8
; %bb.3:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh7:
	adrp	x8, _stdin@GOTPAGE
Lloh8:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #64
	bl	_fgets
	cbz	x0, LBB0_14
; %bb.4:
	add	x8, sp, #8
	strb	wzr, [sp, #71]
	ldrb	w9, [x8]
	cbz	w9, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w9, #13
	ccmp	w9, #10, #4, ne
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	ldrb	w9, [x8]
	cbnz	w9, LBB0_5
LBB0_7:
	add	x20, sp, #8
	b	LBB0_10
LBB0_8:
	ldr	x20, [x1, #16]
	b	LBB0_10
LBB0_9:
	add	x20, sp, #8
	strb	wzr, [x8]
LBB0_10:
	mov	x0, x20
	bl	_os_strlen
	sub	x8, x0, #64
	cmn	x8, #57
	b.hi	LBB0_12
; %bb.11:
Lloh10:
	adrp	x0, l_str.15@PAGE
Lloh11:
	add	x0, x0, l_str.15@PAGEOFF
	b	LBB0_15
LBB0_12:
	mov	x1, x0
	mov	x0, x20
	bl	_has_ctrl_char
	cbz	x0, LBB0_18
; %bb.13:
Lloh12:
	adrp	x0, l_str.14@PAGE
Lloh13:
	add	x0, x0, l_str.14@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh14:
	adrp	x0, l_str.16@PAGE
Lloh15:
	add	x0, x0, l_str.16@PAGEOFF
LBB0_15:
	bl	_puts
	mov	w0, #1
LBB0_16:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	mov	x0, x19
	bl	_os_strlen
	mov	x2, x0
	sub	x4, x29, #56
	mov	x0, x20
	mov	x1, x19
	mov	w3, #4096
	mov	w5, #32
	bl	_pbkdf2_sha1
Lloh19:
	adrp	x0, l_str.12@PAGE
Lloh20:
	add	x0, x0, l_str.12@PAGEOFF
	bl	_puts
	str	x19, [sp]
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	str	x20, [sp]
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
Lloh25:
	adrp	x0, l_.str.8@PAGE
Lloh26:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	ldurb	w8, [x29, #-56]
	str	x8, [sp]
Lloh27:
	adrp	x19, l_.str.9@PAGE
Lloh28:
	add	x19, x19, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-55]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-54]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-53]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-52]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-51]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-50]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-49]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-48]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-47]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-46]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-45]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-44]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-43]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-42]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-41]
	str	x8, [sp]
	mov	x0, x19
	bl	_printf
	ldurb	w8, [x29, #-40]
	str	x8, [sp]
	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
Lloh29:
	adrp	x0, l_str.13@PAGE
Lloh30:
	add	x0, x0, l_str.13@PAGEOFF
	bl	_puts
	mov	w0, #0
	b	LBB0_16
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str.6:                               ; @.str.6
	.asciz	"\tssid=\"%s\"\n"

l_.str.7:                               ; @.str.7
	.asciz	"\t#psk=\"%s\"\n"

l_.str.8:                               ; @.str.8
	.asciz	"\tpsk="

l_.str.9:                               ; @.str.9
	.asciz	"%02x"

l_str:                                  ; @str
	.asciz	"# reading passphrase from stdin"

l_str.12:                               ; @str.12
	.asciz	"network={"

l_str.13:                               ; @str.13
	.asciz	"}"

l_str.14:                               ; @str.14
	.asciz	"Invalid passphrase character"

l_str.15:                               ; @str.15
	.asciz	"Passphrase must be 8..63 characters"

l_str.16:                               ; @str.16
	.asciz	"Failed to read passphrase"

l_str.17:                               ; @str.17
	.asciz	"usage: wpa_passphrase <ssid> [passphrase]\n\nIf passphrase is left out, it will be read from stdin"

.subsections_via_symbols
