	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkcs11_provider_unref
_pkcs11_provider_unref:                 ## @pkcs11_provider_unref
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_debug
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	cmpq	$1, %rax
	jg	LBB0_4
## %bb.1:
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_error
LBB0_3:
	movq	16(%rbx), %rdi
	callq	_free
	movq	8(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pkcs11_provider_unref: %p refcount %d"

L_.str.1:                               ## @.str.1
	.asciz	"pkcs11_provider_unref: %p still valid"

	.no_dead_strip	_pkcs11_provider_unref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkcs11_provider_unref
_pkcs11_provider_unref:                 ; @pkcs11_provider_unref
	.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
	mov	x19, x0
	ldr	x2, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_debug
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.gt	LBB0_4
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_error
LBB0_3:
	ldr	x0, [x19, #16]
	bl	_free
	ldr	x0, [x19, #8]
	bl	_free
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pkcs11_provider_unref: %p refcount %d"

l_.str.1:                               ; @.str.1
	.asciz	"pkcs11_provider_unref: %p still valid"

	.no_dead_strip	_pkcs11_provider_unref
.subsections_via_symbols
