	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csecreate                      ## -- Begin function csecreate
	.p2align	4, 0x90
_csecreate:                             ## @csecreate
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, %r12
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_M_XDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$72, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$64, %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_mtx_init
	movq	%r15, 56(%rbx)
	leal	7(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	sarl	$3, %eax
	movl	%eax, (%rbx)
	leal	7(%r13), %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	movq	%r12, 48(%rbx)
	sarl	$3, %eax
	movl	%eax, 4(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 40(%rbx)
	movq	16(%rbp), %rax
	movq	%rax, 32(%rbx)
	movq	24(%rbp), %rax
	movq	%rax, 24(%rbx)
	movq	32(%rbp), %rax
	movq	%rax, 16(%rbx)
	movq	40(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_cseadd
LBB0_2:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_XDATA,4,2                    ## @M_XDATA
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cryptodev"

L_.str.1:                               ## @.str.1
	.asciz	"crypto session lock"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csecreate                      ; -- Begin function csecreate
	.p2align	2
_csecreate:                             ; @csecreate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	mov	x22, x5
	mov	x24, x4
	mov	x27, x3
	mov	x26, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _M_XDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_XDATA@GOTPAGEOFF]
Lloh2:
	adrp	x9, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _M_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #72
	bl	_malloc
	mov	x25, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x28, [x29, #24]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x21, [x29, #16]
	add	x0, x25, #64
Lloh9:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mtx_init
	add	w8, w27, #7
	cmp	w27, #0
	csel	w8, w8, w27, lt
	asr	w8, w8, #3
	stp	x24, x26, [x25, #48]
	add	w9, w22, #7
	cmp	w22, #0
	csel	w9, w9, w22, lt
	asr	w9, w9, #3
	stp	w8, w9, [x25]
	str	w23, [x25, #40]
	stp	x19, x20, [x25, #24]
	stp	x28, x21, [x25, #8]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x25
	bl	_cseadd
LBB0_2:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_M_XDATA,4,2                    ; @M_XDATA
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cryptodev"

l_.str.1:                               ; @.str.1
	.asciz	"crypto session lock"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
.subsections_via_symbols
