	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swcr_process
_swcr_process:                          ## @swcr_process
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	cmpq	$0, 24(%rsi)
	je	LBB0_4
## %bb.3:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.5:
	movl	32(%rbx), %edi
	callq	_crypto_get_driver_session
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mtx_lock
	movq	24(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_23
## %bb.6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	8(%r15), %rdi
	callq	_nitems
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rdi
	movq	(%rdi,%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%r14
	callq	_nitems
	addq	$16, %rbx
	cmpq	%rax, %r14
	jb	LBB0_10
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	xorl	%r14d, %r14d
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %rdi
	callq	_nitems
	cmpq	%rax, %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r15), %r12
	shlq	$4, %r14
	movq	(%r12,%r14), %rax
	addq	$-128, %rax
	cmpq	$37, %rax
	ja	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r12,%r14), %rsi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	%r13, %rdi
	callq	_swcr_authcompute
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	%r13, %rdi
	callq	_swcr_encdec
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_26
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_7
	jmp	LBB0_26
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, (%rbx)
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rdx
	movl	8(%rbx), %ecx
	movq	%r13, %rdi
	callq	_swcr_compdec
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	8(%r12,%r14), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_22
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_27
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_28
LBB0_23:
	testq	%r15, %r15
	jne	LBB0_26
	jmp	LBB0_27
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_25:
	movl	%eax, (%rbx)
LBB0_26:
	movq	%r15, %rdi
	callq	_mtx_unlock
LBB0_27:
	movq	%rbx, %rdi
	callq	_crypto_done
	xorl	%eax, %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%rbx, %rdi
	callq	_swcr_authenc
	jmp	LBB0_25
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_21
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_18
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_16
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_swcr_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swcr_process
_swcr_process:                          ; @swcr_process
	.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
	cbz	x1, LBB0_21
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_20
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_20
; %bb.3:
	ldr	w0, [x19, #32]
	bl	_crypto_get_driver_session
	mov	x20, x0
	bl	_mtx_lock
	ldr	x21, [x19, #24]
	cbz	x21, LBB0_22
; %bb.4:
Lloh0:
	adrp	x22, lJTI0_0@PAGE
Lloh1:
	add	x22, x22, lJTI0_0@PAGEOFF
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x0, [x20, #8]
	bl	_nitems
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, #0
	mov	x23, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x20, #8]
	ldr	x8, [x0, x24]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x23, x23, #1
	bl	_nitems
	add	x24, x24, #16
	cmp	x23, x0
	b.lo	LBB0_7
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, #0
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x20, #8]
	bl	_nitems
	cmp	x23, x0
	b.eq	LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x24, [x20, #8]
	add	x1, x24, x23, lsl #4
	ldr	x8, [x1]
	sub	x8, x8, #128
	cmp	x8, #37
	b.hi	LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_13
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #8]
	mov	x0, x21
	bl	_swcr_authcompute
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #8]
	mov	x0, x21
	bl	_swcr_encdec
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w0, [x19]
	cbnz	w0, LBB0_25
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x21, #8]
	cbnz	x21, LBB0_5
	b	LBB0_25
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x19]
	b	LBB0_16
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #8]
	mov	x0, x21
	bl	_swcr_compdec
	str	w0, [x19]
	cbnz	w0, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x24, x23, lsl #4
	ldr	x8, [x8, #8]
	str	w8, [x19, #4]
	b	LBB0_16
LBB0_20:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_26
LBB0_21:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_27
LBB0_22:
	cbnz	x20, LBB0_25
	b	LBB0_26
LBB0_23:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_24:
	str	w0, [x19]
LBB0_25:
	mov	x0, x20
	bl	_mtx_unlock
LBB0_26:
	mov	x0, x19
	bl	_crypto_done
	mov	w0, #0
LBB0_27:
	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
LBB0_28:
	mov	x0, x19
	bl	_swcr_authenc
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_28-LBB0_13)>>2
	.byte	(LBB0_28-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
	.byte	(LBB0_28-LBB0_13)>>2
	.byte	(LBB0_28-LBB0_13)>>2
	.byte	(LBB0_28-LBB0_13)>>2
	.byte	(LBB0_28-LBB0_13)>>2
	.byte	(LBB0_28-LBB0_13)>>2
	.byte	(LBB0_14-LBB0_13)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_swcr_process
.subsections_via_symbols
