	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ktls_ocf_try
_ktls_ocf_try:                          ## @ktls_ocf_try
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	leaq	-88(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	cmpl	$128, 16(%r12)
	jne	LBB0_13
## %bb.1:
	movl	44(%r12), %eax
	movq	_TLS_AEAD_GCM_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.2:
	movl	20(%r12), %eax
	cmpl	$32, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$16, %eax
	jne	LBB0_5
## %bb.4:
	movq	_CRYPTO_AES_128_NIST_GMAC@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movq	_CRYPTO_AES_256_NIST_GMAC@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, -88(%rbp)
	movl	40(%r12), %ecx
	movl	%ecx, -72(%rbp)
	shll	$3, %eax
	movl	%eax, -84(%rbp)
	movq	24(%r12), %rax
	movq	_TLS_MAJOR_VER_ONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.8:
	movq	32(%r12), %rax
	movq	_TLS_MINOR_VER_ONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_13
## %bb.9:
	movq	_TLS_MINOR_VER_TWO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_13
## %bb.10:
	movq	_M_KTLS_OCF@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$12, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	%rax, %r15
	movl	16(%r12), %eax
	movl	%eax, -64(%rbp)
	movl	40(%r12), %eax
	movl	%eax, -48(%rbp)
	movl	20(%r12), %eax
	shll	$3, %eax
	movl	%eax, -60(%rbp)
	movq	%r14, -56(%rbp)
	leaq	8(%r15), %rdi
	movq	_CRYPTO_FLAG_HARDWARE@GOTPCREL(%rip), %rax
	movq	_CRYPTO_FLAG_SOFTWARE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	callq	_crypto_newsession
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_13:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	movl	-88(%rbp), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	addq	$4, %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_mtx_init
	movq	%r15, 8(%r12)
	movq	_ktls_ocf_encrypt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_ktls_ocf_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_AEAD_GCM_LEN,4,2           ## @TLS_AEAD_GCM_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CRYPTO_AES_128_NIST_GMAC,4,2   ## @CRYPTO_AES_128_NIST_GMAC
	.comm	_CRYPTO_AES_256_NIST_GMAC,4,2   ## @CRYPTO_AES_256_NIST_GMAC
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_TLS_MAJOR_VER_ONE,8,3          ## @TLS_MAJOR_VER_ONE
	.comm	_TLS_MINOR_VER_ONE,8,3          ## @TLS_MINOR_VER_ONE
	.comm	_TLS_MINOR_VER_TWO,8,3          ## @TLS_MINOR_VER_TWO
	.comm	_M_KTLS_OCF,4,2                 ## @M_KTLS_OCF
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CRYPTO_FLAG_HARDWARE,4,2       ## @CRYPTO_FLAG_HARDWARE
	.comm	_CRYPTO_FLAG_SOFTWARE,4,2       ## @CRYPTO_FLAG_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ktls_ocf"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_ktls_ocf_encrypt,4,2           ## @ktls_ocf_encrypt
	.comm	_ktls_ocf_free,4,2              ## @ktls_ocf_free
	.no_dead_strip	_ktls_ocf_try
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ktls_ocf_try
_ktls_ocf_try:                          ; @ktls_ocf_try
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x1
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.1:
	ldr	w8, [x19, #44]
Lloh0:
	adrp	x9, _TLS_AEAD_GCM_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TLS_AEAD_GCM_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19, #20]
	cmp	w8, #32
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #16
	b.ne	LBB0_5
; %bb.4:
Lloh3:
	adrp	x9, _CRYPTO_AES_128_NIST_GMAC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPTO_AES_128_NIST_GMAC@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh7:
	adrp	x9, _CRYPTO_AES_256_NIST_GMAC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CRYPTO_AES_256_NIST_GMAC@GOTPAGEOFF]
LBB0_7:
	ldr	w10, [x9]
	ldr	w9, [x19, #40]
	lsl	w8, w8, #3
	str	w9, [sp, #40]
	stp	w10, w8, [sp, #24]
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _TLS_MAJOR_VER_ONE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TLS_MAJOR_VER_ONE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19, #32]
Lloh12:
	adrp	x9, _TLS_MINOR_VER_ONE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TLS_MINOR_VER_ONE@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _TLS_MINOR_VER_TWO@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TLS_MINOR_VER_TWO@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.le	LBB0_12
LBB0_9:
Lloh18:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_10:
	ldr	w21, [x8]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
Lloh20:
	adrp	x22, _M_KTLS_OCF@GOTPAGE
Lloh21:
	ldr	x22, [x22, _M_KTLS_OCF@GOTPAGEOFF]
Lloh22:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh26:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #12
	bl	_malloc
	cbz	x0, LBB0_15
; %bb.13:
	mov	x20, x0
	ldr	w8, [x19, #40]
	str	w8, [sp, #16]
	ldp	w8, w9, [x19, #16]
	lsl	w9, w9, #3
	stp	w8, w9, [sp]
	add	x8, sp, #24
	str	x8, [sp, #8]
Lloh28:
	adrp	x8, _CRYPTO_FLAG_HARDWARE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CRYPTO_FLAG_HARDWARE@GOTPAGEOFF]
	add	x0, x0, #8
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _CRYPTO_FLAG_SOFTWARE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CRYPTO_FLAG_SOFTWARE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x1, sp
	bl	_crypto_newsession
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.14:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_free
	b	LBB0_11
LBB0_15:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_16:
	ldr	w8, [sp, #24]
	str	w8, [x20]
	add	x0, x20, #4
Lloh36:
	adrp	x8, _MTX_DEF@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MTX_DEF@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	str	x20, [x19, #8]
Lloh41:
	adrp	x8, _ktls_ocf_encrypt@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ktls_ocf_encrypt@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _ktls_ocf_free@GOTPAGE
Lloh45:
	ldr	x9, [x9, _ktls_ocf_free@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_AEAD_GCM_LEN,4,2           ; @TLS_AEAD_GCM_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CRYPTO_AES_128_NIST_GMAC,4,2   ; @CRYPTO_AES_128_NIST_GMAC
	.comm	_CRYPTO_AES_256_NIST_GMAC,4,2   ; @CRYPTO_AES_256_NIST_GMAC
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_TLS_MAJOR_VER_ONE,8,3          ; @TLS_MAJOR_VER_ONE
	.comm	_TLS_MINOR_VER_ONE,8,3          ; @TLS_MINOR_VER_ONE
	.comm	_TLS_MINOR_VER_TWO,8,3          ; @TLS_MINOR_VER_TWO
	.comm	_M_KTLS_OCF,4,2                 ; @M_KTLS_OCF
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CRYPTO_FLAG_HARDWARE,4,2       ; @CRYPTO_FLAG_HARDWARE
	.comm	_CRYPTO_FLAG_SOFTWARE,4,2       ; @CRYPTO_FLAG_SOFTWARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ktls_ocf"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_ktls_ocf_encrypt,4,2           ; @ktls_ocf_encrypt
	.comm	_ktls_ocf_free,4,2              ; @ktls_ocf_free
	.no_dead_strip	_ktls_ocf_try
.subsections_via_symbols
