	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encrypt_pw_block_with_password_hash ## -- Begin function encrypt_pw_block_with_password_hash
	.p2align	4, 0x90
_encrypt_pw_block_with_password_hash:   ## @encrypt_pw_block_with_password_hash
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_PWBLOCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %rdi
	xorl	%esi, %esi
	callq	_os_memset
	leaq	-48(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	$512, %ecx                      ## imm = 0x200
	callq	_utf8_to_ucs2
	movl	$-1, %r12d
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	ja	LBB0_5
## %bb.2:
	addq	%rdx, %rdx
	movl	$512, %ebx                      ## imm = 0x200
	subq	%rdx, %rbx
	je	LBB0_4
## %bb.3:
	leaq	(,%rbx,4), %rdi
	addq	%r13, %rdi
	movq	%r13, %rsi
	callq	_os_memmove
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_os_get_random
	testq	%rax, %rax
	js	LBB0_5
LBB0_4:
	leaq	2048(%r13), %rdi
	addq	%r15, %r15
	movq	%r15, %rsi
	callq	_WPA_PUT_LE16
	movq	_PWBLOCK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	$16, %esi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_rc4_skip
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWBLOCK_LEN,4,2                ## @PWBLOCK_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_encrypt_pw_block_with_password_hash ; -- Begin function encrypt_pw_block_with_password_hash
	.p2align	2
_encrypt_pw_block_with_password_hash:   ; @encrypt_pw_block_with_password_hash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _PWBLOCK_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PWBLOCK_LEN@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x3
	mov	w1, #0
	bl	_os_memset
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	w3, #512
	bl	_utf8_to_ucs2
	mov	x8, x0
	mov	w0, #-1
	tbnz	x8, #63, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #256
	b.hi	LBB0_6
; %bb.2:
	mov	w9, #512
	subs	x22, x9, x8, lsl #1
	b.eq	LBB0_4
; %bb.3:
	lsl	x2, x8, #1
	add	x0, x19, x22, lsl #2
	mov	x1, x19
	bl	_os_memmove
	mov	x0, x19
	mov	x1, x22
	bl	_os_get_random
	tbnz	x0, #63, LBB0_5
LBB0_4:
	add	x0, x19, #2048
	lsl	x1, x21, #1
	bl	_WPA_PUT_LE16
	ldr	w4, [x23]
	mov	x0, x20
	mov	w1, #16
	mov	w2, #0
	mov	x3, x19
	bl	_rc4_skip
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PWBLOCK_LEN,4,2                ; @PWBLOCK_LEN
.subsections_via_symbols
