	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkcs5_crypto_init_pbes2
_pkcs5_crypto_init_pbes2:               ## @pkcs5_crypto_init_pbes2
	.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)
	movq	(%rdi), %rax
	movq	_PBES2_ENC_ALG_DES_EDE3_CBC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$8, 8(%rdi)
	jne	LBB0_6
## %bb.2:
	movq	%rsi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	%rsi, %rdi
	callq	_os_strlen
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_wpa_hexdump_ascii_key
	movl	(%r12), %edi
	movl	12(%rbx), %ecx
	movl	24(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_hexdump
	movl	(%r12), %edi
	movl	20(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movl	24(%rbx), %esi
	movl	12(%rbx), %edx
	movl	20(%rbx), %ecx
	leaq	-144(%rbp), %r8
	movq	%r14, %rdi
	movl	$96, %r9d
	callq	_pbkdf2_sha1
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	-144(%rbp), %r14
	movq	%r14, %rdx
	movl	$96, %ecx
	callq	_wpa_hexdump_key
	movl	(%r12), %edi
	movl	8(%rbx), %ecx
	movl	16(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	callq	_wpa_hexdump
	movq	_CRYPTO_CIPHER_ALG_3DES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movq	%r14, %rdx
	movl	$96, %ecx
	callq	_crypto_cipher_init
	jmp	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$112, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PBES2_ENC_ALG_DES_EDE3_CBC,8,3 ## @PBES2_ENC_ALG_DES_EDE3_CBC
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PKCS #5: PBES2 password for PBKDF2"

L_.str.1:                               ## @.str.1
	.asciz	"PKCS #5: PBES2 salt for PBKDF2"

L_.str.2:                               ## @.str.2
	.asciz	"PKCS #5: PBES2 PBKDF2 iterations: %u"

L_.str.3:                               ## @.str.3
	.asciz	"PKCS #5: DES EDE3 key"

L_.str.4:                               ## @.str.4
	.asciz	"PKCS #5: DES IV"

	.comm	_CRYPTO_CIPHER_ALG_3DES,4,2     ## @CRYPTO_CIPHER_ALG_3DES
	.no_dead_strip	_pkcs5_crypto_init_pbes2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkcs5_crypto_init_pbes2
_pkcs5_crypto_init_pbes2:               ; @pkcs5_crypto_init_pbes2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _PBES2_ENC_ALG_DES_EDE3_CBC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PBES2_ENC_ALG_DES_EDE3_CBC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cmp	w8, #8
	b.ne	LBB0_4
; %bb.2:
	mov	x20, x1
Lloh6:
	adrp	x22, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x1
	bl	_os_strlen
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_wpa_hexdump_ascii_key
	ldr	w0, [x22]
	ldr	w2, [x19, #24]
	ldr	w3, [x19, #12]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_hexdump
	ldr	w0, [x22]
	ldr	w2, [x19, #20]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	w2, [x19, #12]
	ldp	w3, w1, [x19, #20]
	add	x4, sp, #8
	mov	x0, x20
	mov	w5, #96
	bl	_pbkdf2_sha1
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #8
	mov	w3, #96
	bl	_wpa_hexdump_key
	ldr	w0, [x22]
	ldr	w2, [x19, #16]
	ldr	w3, [x19, #8]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_wpa_hexdump
Lloh18:
	adrp	x8, _CRYPTO_CIPHER_ALG_3DES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CRYPTO_CIPHER_ALG_3DES@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	add	x2, sp, #8
	mov	w3, #96
	bl	_crypto_cipher_init
	b	LBB0_5
LBB0_4:
	mov	x0, #0
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
	add	sp, sp, #160
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PBES2_ENC_ALG_DES_EDE3_CBC,8,3 ; @PBES2_ENC_ALG_DES_EDE3_CBC
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PKCS #5: PBES2 password for PBKDF2"

l_.str.1:                               ; @.str.1
	.asciz	"PKCS #5: PBES2 salt for PBKDF2"

l_.str.2:                               ; @.str.2
	.asciz	"PKCS #5: PBES2 PBKDF2 iterations: %u"

l_.str.3:                               ; @.str.3
	.asciz	"PKCS #5: DES EDE3 key"

l_.str.4:                               ; @.str.4
	.asciz	"PKCS #5: DES IV"

	.comm	_CRYPTO_CIPHER_ALG_3DES,4,2     ; @CRYPTO_CIPHER_ALG_3DES
	.no_dead_strip	_pkcs5_crypto_init_pbes2
.subsections_via_symbols
