	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mschapv2_derive_response       ## -- Begin function mschapv2_derive_response
	.p2align	4, 0x90
_mschapv2_derive_response:              ## @mschapv2_derive_response
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, -188(%rbp)                ## 4-byte Spill
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	movq	%rdx, -200(%rbp)                ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_wpa_hexdump_ascii
	movq	%rbx, -184(%rbp)
	leaq	-184(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mschapv2_remove_domain
	movq	%rax, %r12
	movl	(%r15), %edi
	movq	-184(%rbp), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	callq	_wpa_hexdump_ascii
	movl	(%r15), %edi
	movq	_MSCHAPV2_CHAL_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %r14
	movq	%r13, %rdx
	callq	_wpa_hexdump
	movl	(%r15), %edi
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %rsi
	movq	16(%rbp), %rdx
	callq	_wpa_hexdump
	movl	(%r15), %edi
	movq	-184(%rbp), %rcx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_hexdump_ascii
	movl	(%r15), %edi
	cmpl	$0, -188(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_3
## %bb.1:
	leaq	L_.str.5(%rip), %rsi
	movq	-200(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	movq	-208(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_wpa_hexdump_key
	movq	-184(%rbp), %rcx
	movq	%r14, %rdi
	movq	16(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r13, %r8
	movq	24(%rbp), %r15
	movq	%r15, %r9
	callq	_generate_nt_response_pwhash
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	movq	%r15, %r9
	movq	-184(%rbp), %r8
	movq	32(%rbp), %r15
	movq	%r15, (%rsp)
	movq	%r13, %rdi
	movq	16(%rbp), %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%r9, %r12
	callq	_generate_authenticator_response_pwhash
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.6(%rip), %rsi
	movq	-200(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdx
	movq	-208(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_wpa_hexdump_ascii_key
	movq	-184(%rbp), %rcx
	movq	24(%rbp), %r15
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movq	16(%rbp), %rsi
	movq	%r12, %rdx
	movq	%r13, %r8
	movq	%rbx, %r9
	callq	_generate_nt_response
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	movq	%r15, %rax
	movq	-184(%rbp), %r9
	movq	32(%rbp), %r15
	movq	%r15, 8(%rsp)
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	16(%rbp), %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%rax, %r12
	callq	_generate_authenticator_response
LBB0_5:
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	movq	%rbx, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_MSCHAPV2_NT_RESPONSE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdx
	callq	_wpa_hexdump
	movl	(%rbx), %edi
	movq	_MSCHAPV2_AUTH_RESPONSE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump
	cmpl	$0, -188(%rbp)                  ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	leaq	-176(%rbp), %rsi
	movq	%r13, %rdi
LBB0_10:
	callq	_hash_nt_password_hash
	movl	$-1, %ecx
	testq	%rax, %rax
	movq	24(%rbp), %rsi
	jne	LBB0_13
## %bb.11:
	movq	40(%rbp), %r15
	leaq	-176(%rbp), %rdi
	movq	%r15, %rdx
	callq	_get_master_key
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MSCHAPV2_MASTER_KEY_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdx
	callq	_wpa_hexdump_key
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_8:
	leaq	-112(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_nt_password_hash
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_9
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ecx, %eax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	-112(%rbp), %rdi
	leaq	-176(%rbp), %rsi
	jmp	LBB0_10
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSCHAPV2: Identity"

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

L_.str.2:                               ## @.str.2
	.asciz	"MSCHAPV2: auth_challenge"

	.comm	_MSCHAPV2_CHAL_LEN,4,2          ## @MSCHAPV2_CHAL_LEN
L_.str.3:                               ## @.str.3
	.asciz	"MSCHAPV2: peer_challenge"

L_.str.4:                               ## @.str.4
	.asciz	"MSCHAPV2: username"

L_.str.5:                               ## @.str.5
	.asciz	"MSCHAPV2: password hash"

L_.str.6:                               ## @.str.6
	.asciz	"MSCHAPV2: password"

L_.str.7:                               ## @.str.7
	.asciz	"MSCHAPV2: NT Response"

	.comm	_MSCHAPV2_NT_RESPONSE_LEN,4,2   ## @MSCHAPV2_NT_RESPONSE_LEN
L_.str.8:                               ## @.str.8
	.asciz	"MSCHAPV2: Auth Response"

	.comm	_MSCHAPV2_AUTH_RESPONSE_LEN,4,2 ## @MSCHAPV2_AUTH_RESPONSE_LEN
L_.str.9:                               ## @.str.9
	.asciz	"MSCHAPV2: Master Key"

	.comm	_MSCHAPV2_MASTER_KEY_LEN,8,3    ## @MSCHAPV2_MASTER_KEY_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mschapv2_derive_response       ; -- Begin function mschapv2_derive_response
	.p2align	2
_mschapv2_derive_response:              ; @mschapv2_derive_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x25, x6
	mov	x24, x5
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x26, x1
	mov	x27, x0
	ldr	x23, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x28, [x28, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x28]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x27
	mov	x3, x26
	bl	_wpa_hexdump_ascii
	str	x26, [sp]
	mov	x1, sp
	mov	x0, x27
	bl	_mschapv2_remove_domain
	mov	x26, x0
	ldr	w0, [x28]
	ldr	x3, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x26
	bl	_wpa_hexdump_ascii
	ldr	w0, [x28]
Lloh9:
	adrp	x27, _MSCHAPV2_CHAL_LEN@GOTPAGE
Lloh10:
	ldr	x27, [x27, _MSCHAPV2_CHAL_LEN@GOTPAGEOFF]
	ldr	w3, [x27]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_wpa_hexdump
	ldr	w0, [x28]
	ldr	w3, [x27]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_wpa_hexdump
	ldr	w0, [x28]
	ldr	x3, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x26
	bl	_wpa_hexdump_ascii
	ldr	w0, [x28]
	cbz	w22, LBB0_3
; %bb.1:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_wpa_hexdump_key
	ldr	x3, [sp]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	mov	x4, x20
	mov	x5, x19
	bl	_generate_nt_response_pwhash
	cbnz	x0, LBB0_11
; %bb.2:
	ldr	x4, [sp]
	mov	x0, x20
	mov	x1, x25
	mov	x2, x24
	mov	x3, x26
	mov	x5, x19
	mov	x6, x23
	bl	_generate_authenticator_response_pwhash
	cbnz	x0, LBB0_11
	b	LBB0_5
LBB0_3:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_wpa_hexdump_ascii_key
	ldr	x3, [sp]
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	mov	x4, x20
	mov	x5, x21
	mov	x6, x19
	bl	_generate_nt_response
	cbnz	x0, LBB0_11
; %bb.4:
	ldr	x5, [sp]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	mov	x4, x26
	mov	x6, x19
	mov	x7, x23
	bl	_generate_authenticator_response
	cbnz	x0, LBB0_11
LBB0_5:
	ldr	w0, [x28]
Lloh21:
	adrp	x8, _MSCHAPV2_NT_RESPONSE_LEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSCHAPV2_NT_RESPONSE_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x19
	bl	_wpa_hexdump
	ldr	w0, [x28]
Lloh26:
	adrp	x8, _MSCHAPV2_AUTH_RESPONSE_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MSCHAPV2_AUTH_RESPONSE_LEN@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x23
	bl	_wpa_hexdump
	cbz	w22, LBB0_9
; %bb.6:
	add	x1, sp, #8
	mov	x0, x20
	bl	_hash_nt_password_hash
	cbnz	x0, LBB0_11
LBB0_7:
	ldr	x20, [x29, #24]
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_get_master_key
	cbnz	x0, LBB0_11
; %bb.8:
	ldr	w0, [x28]
Lloh31:
	adrp	x8, _MSCHAPV2_MASTER_KEY_LEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSCHAPV2_MASTER_KEY_LEN@GOTPAGEOFF]
Lloh33:
	ldr	x3, [x8]
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x20
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	add	x2, sp, #72
	mov	x0, x20
	mov	x1, x21
	bl	_nt_password_hash
	cbnz	x0, LBB0_11
; %bb.10:
	add	x0, sp, #72
	add	x1, sp, #8
	bl	_hash_nt_password_hash
	cbz	x0, LBB0_7
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSCHAPV2: Identity"

l_.str.1:                               ; @.str.1
	.asciz	"MSCHAPV2: Username"

l_.str.2:                               ; @.str.2
	.asciz	"MSCHAPV2: auth_challenge"

	.comm	_MSCHAPV2_CHAL_LEN,4,2          ; @MSCHAPV2_CHAL_LEN
l_.str.3:                               ; @.str.3
	.asciz	"MSCHAPV2: peer_challenge"

l_.str.4:                               ; @.str.4
	.asciz	"MSCHAPV2: username"

l_.str.5:                               ; @.str.5
	.asciz	"MSCHAPV2: password hash"

l_.str.6:                               ; @.str.6
	.asciz	"MSCHAPV2: password"

l_.str.7:                               ; @.str.7
	.asciz	"MSCHAPV2: NT Response"

	.comm	_MSCHAPV2_NT_RESPONSE_LEN,4,2   ; @MSCHAPV2_NT_RESPONSE_LEN
l_.str.8:                               ; @.str.8
	.asciz	"MSCHAPV2: Auth Response"

	.comm	_MSCHAPV2_AUTH_RESPONSE_LEN,4,2 ; @MSCHAPV2_AUTH_RESPONSE_LEN
l_.str.9:                               ; @.str.9
	.asciz	"MSCHAPV2: Master Key"

	.comm	_MSCHAPV2_MASTER_KEY_LEN,8,3    ; @MSCHAPV2_MASTER_KEY_LEN
.subsections_via_symbols
