	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_crypt
_common_crypt:                          ## @common_crypt
	.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
	movl	%edx, %ebx
	testb	$7, %bl
	jne	LBB0_2
## %bb.1:
	movq	_DES_MAXDATA@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jb	LBB0_2
## %bb.3:
	movq	%r8, %r15
	movl	%ecx, %r14d
	movq	%rsi, %r12
	movq	_DES_DIRMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_DES_ENCRYPT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.5:
	movq	_ENCRYPT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	_DESERR_BADPARAM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	_DECRYPT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_DES_DEVMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r15), %esi
	callq	_COPY8
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	___des_crypt_LOCAL
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	andl	%r14d, %r13d
	movq	_DES_SW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_9
## %bb.10:
	movq	_DESERR_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_DESERR_HWERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_DESERR_NOHWDEVICE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DES_MAXDATA,4,2                ## @DES_MAXDATA
	.comm	_DESERR_BADPARAM,4,2            ## @DESERR_BADPARAM
	.comm	_DES_DIRMASK,4,2                ## @DES_DIRMASK
	.comm	_DES_ENCRYPT,4,2                ## @DES_ENCRYPT
	.comm	_ENCRYPT,4,2                    ## @ENCRYPT
	.comm	_DECRYPT,4,2                    ## @DECRYPT
	.comm	_DES_DEVMASK,4,2                ## @DES_DEVMASK
	.comm	_DESERR_HWERROR,4,2             ## @DESERR_HWERROR
	.comm	_DES_SW,4,2                     ## @DES_SW
	.comm	_DESERR_NONE,4,2                ## @DESERR_NONE
	.comm	_DESERR_NOHWDEVICE,4,2          ## @DESERR_NOHWDEVICE
	.no_dead_strip	_common_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function common_crypt
_common_crypt:                          ; @common_crypt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	tst	w2, #0x7
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x8, _DES_MAXDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DES_MAXDATA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.lo	LBB0_4
; %bb.2:
	mov	x20, x4
	mov	x19, x3
	mov	x22, x1
Lloh3:
	adrp	x8, _DES_DIRMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DES_DIRMASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w3
Lloh6:
	adrp	x9, _DES_ENCRYPT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DES_ENCRYPT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ENCRYPT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ENCRYPT@GOTPAGEOFF]
Lloh11:
	adrp	x11, _DECRYPT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DECRYPT@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x4, #4]
Lloh13:
	adrp	x8, _DES_DEVMASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DES_DEVMASK@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	ldr	w1, [x4]
	bl	_COPY8
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	___des_crypt_LOCAL
	cbz	w0, LBB0_5
; %bb.3:
	and	w8, w23, w19
Lloh16:
	adrp	x9, _DES_SW@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DES_SW@GOTPAGEOFF]
Lloh18:
	adrp	x10, _DESERR_NONE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DESERR_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x11, _DESERR_NOHWDEVICE@GOTPAGE
Lloh22:
	ldr	x11, [x11, _DESERR_NOHWDEVICE@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	b	LBB0_6
LBB0_4:
Lloh23:
	adrp	x8, _DESERR_BADPARAM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DESERR_BADPARAM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x8, _DESERR_HWERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DESERR_HWERROR@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_DES_MAXDATA,4,2                ; @DES_MAXDATA
	.comm	_DESERR_BADPARAM,4,2            ; @DESERR_BADPARAM
	.comm	_DES_DIRMASK,4,2                ; @DES_DIRMASK
	.comm	_DES_ENCRYPT,4,2                ; @DES_ENCRYPT
	.comm	_ENCRYPT,4,2                    ; @ENCRYPT
	.comm	_DECRYPT,4,2                    ; @DECRYPT
	.comm	_DES_DEVMASK,4,2                ; @DES_DEVMASK
	.comm	_DESERR_HWERROR,4,2             ; @DESERR_HWERROR
	.comm	_DES_SW,4,2                     ; @DES_SW
	.comm	_DESERR_NONE,4,2                ; @DESERR_NONE
	.comm	_DESERR_NOHWDEVICE,4,2          ; @DESERR_NOHWDEVICE
	.no_dead_strip	_common_crypt
.subsections_via_symbols
