	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkcs12_crypto_init_sha1
_pkcs12_crypto_init_sha1:               ## @pkcs12_crypto_init_sha1
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	_PKCS5_ALG_SHA1_3DES_CBC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	%r13, %rdi
	callq	_os_strlen
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	(%rbx,%rbx), %r15
	addq	$2, %r15
	movl	%r15d, %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.7:
	movq	%r15, -184(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r15), %eax
	leaq	(%r12,%rax,4), %rdi
	movsbl	(%r13,%r15), %esi
	callq	_WPA_PUT_BE16
	incl	%r15d
	cmpq	%r15, %rbx
	jae	LBB0_8
## %bb.9:
	movq	-184(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movl	16(%r14), %edx
	movl	8(%r14), %r9d
	movl	12(%r14), %ecx
	movq	_PKCS12_ID_ENC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-144(%rbp), %rax
	movq	%r12, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	pushq	$96
	callq	_pkcs12_key_gen
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_15
## %bb.13:
	movl	16(%r14), %edx
	movl	8(%r14), %r9d
	movl	12(%r14), %ecx
	movq	_PKCS12_ID_IV@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-176(%rbp), %rax
	movq	%r12, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	pushq	$32
	callq	_pkcs12_key_gen
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_os_free
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-144(%rbp), %r14
	movq	%r14, %rdx
	movl	$96, %ecx
	callq	_wpa_hexdump_key
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$32, %ecx
	callq	_wpa_hexdump_key
	movq	_CRYPTO_CIPHER_ALG_3DES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$96, %ecx
	callq	_crypto_cipher_init
	jmp	LBB0_17
LBB0_15:
	movq	%r12, %rdi
	callq	_os_free
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS5_ALG_SHA1_3DES_CBC,8,3    ## @PKCS5_ALG_SHA1_3DES_CBC
	.comm	_PKCS12_ID_ENC,4,2              ## @PKCS12_ID_ENC
	.comm	_PKCS12_ID_IV,4,2               ## @PKCS12_ID_IV
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PKCS #12: DES key"

L_.str.1:                               ## @.str.1
	.asciz	"PKCS #12: DES IV"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkcs12_crypto_init_sha1
_pkcs12_crypto_init_sha1:               ; @pkcs12_crypto_init_sha1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _PKCS5_ALG_SHA1_3DES_CBC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PKCS5_ALG_SHA1_3DES_CBC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.1:
	mov	x22, x1
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_os_strlen
	mov	x23, x0
	b	LBB0_4
LBB0_3:
	mov	x23, #0
LBB0_4:
	lsl	x8, x23, #1
	add	x21, x8, #2
	mov	x0, x21
	bl	_os_malloc
	cbz	x0, LBB0_14
; %bb.5:
	mov	x20, x0
	cbz	x23, LBB0_8
; %bb.6:
	mov	x24, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w24, #1
	add	x0, x20, w8, uxtw #2
	ldrsb	w1, [x22, x24]
	bl	_WPA_PUT_BE16
	add	w24, w24, #1
	cmp	x23, x24
	b.hs	LBB0_7
	b	LBB0_9
LBB0_8:
	mov	x21, #0
LBB0_9:
	ldp	w3, w2, [x19, #12]
Lloh6:
	adrp	x8, _PKCS12_ID_ENC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKCS12_ID_ENC@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	ldr	w5, [x19, #8]
	add	x7, sp, #40
	mov	x0, x20
	mov	x1, x21
	mov	w6, #96
	bl	_pkcs12_key_gen
	tbnz	x0, #63, LBB0_12
; %bb.10:
	ldp	w3, w2, [x19, #12]
Lloh9:
	adrp	x8, _PKCS12_ID_IV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PKCS12_ID_IV@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	ldr	w5, [x19, #8]
	add	x7, sp, #8
	mov	x0, x20
	mov	x1, x21
	mov	w6, #32
	bl	_pkcs12_key_gen
	tbnz	x0, #63, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_os_free
Lloh12:
	adrp	x19, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x19, [x19, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #40
	mov	w3, #96
	bl	_wpa_hexdump_key
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	w3, #32
	bl	_wpa_hexdump_key
Lloh18:
	adrp	x8, _CRYPTO_CIPHER_ALG_3DES@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CRYPTO_CIPHER_ALG_3DES@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, sp, #8
	add	x2, sp, #40
	mov	w3, #96
	bl	_crypto_cipher_init
	b	LBB0_14
LBB0_12:
	mov	x0, x20
	bl	_os_free
LBB0_13:
	mov	x0, #0
LBB0_14:
	ldur	x8, [x29, #-56]
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_16
; %bb.15:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS5_ALG_SHA1_3DES_CBC,8,3    ; @PKCS5_ALG_SHA1_3DES_CBC
	.comm	_PKCS12_ID_ENC,4,2              ; @PKCS12_ID_ENC
	.comm	_PKCS12_ID_IV,4,2               ; @PKCS12_ID_IV
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PKCS #12: DES key"

l_.str.1:                               ; @.str.1
	.asciz	"PKCS #12: DES IV"

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