	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ktls_ocf_modevent
_ktls_ocf_modevent:                     ## @ktls_ocf_modevent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$128, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_5
## %bb.2:
	movq	_M_WAITOK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_counter_u64_alloc
	movq	_ocf_gcm_crypts@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %edi
	callq	_counter_u64_alloc
	movq	_ocf_retries@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_ocf_backend@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ktls_crypto_backend_register   ## TAILCALL
LBB0_3:
	movq	_ocf_backend@GOTPCREL(%rip), %rdi
	callq	_ktls_crypto_backend_deregister
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_ocf_gcm_crypts@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_counter_u64_free
	movq	_ocf_retries@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_counter_u64_free
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_ocf_gcm_crypts,4,2             ## @ocf_gcm_crypts
	.comm	_ocf_retries,4,2                ## @ocf_retries
	.comm	_ocf_backend,4,2                ## @ocf_backend
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ktls_ocf_modevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ktls_ocf_modevent
_ktls_ocf_modevent:                     ; @ktls_ocf_modevent
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x19, _M_WAITOK@GOTPAGE
Lloh1:
	ldr	x19, [x19, _M_WAITOK@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_counter_u64_alloc
Lloh2:
	adrp	x8, _ocf_gcm_crypts@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ocf_gcm_crypts@GOTPAGEOFF]
Lloh4:
	str	w0, [x8]
	ldr	w0, [x19]
	bl	_counter_u64_alloc
Lloh5:
	adrp	x8, _ocf_retries@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ocf_retries@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
Lloh8:
	adrp	x0, _ocf_backend@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ocf_backend@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ktls_crypto_backend_register
LBB0_3:
Lloh10:
	adrp	x0, _ocf_backend@GOTPAGE
Lloh11:
	ldr	x0, [x0, _ocf_backend@GOTPAGEOFF]
	bl	_ktls_crypto_backend_deregister
	cbnz	w0, LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _ocf_gcm_crypts@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ocf_gcm_crypts@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_counter_u64_free
Lloh15:
	adrp	x8, _ocf_retries@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ocf_retries@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_counter_u64_free
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_ocf_gcm_crypts,4,2             ; @ocf_gcm_crypts
	.comm	_ocf_retries,4,2                ; @ocf_retries
	.comm	_ocf_backend,4,2                ; @ocf_backend
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ktls_ocf_modevent
.subsections_via_symbols
