	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_private_key_free         ## -- Begin function hx509_private_key_free
	.p2align	4, 0x90
_hx509_private_key_free:                ## @hx509_private_key_free
	.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
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	__hx509_abort
	movq	(%rbx), %rax
	movq	(%rax), %rcx
LBB0_4:
	leaq	-1(%rcx), %rdx
	movq	%rdx, (%rax)
	cmpq	$1, %rcx
	jg	LBB0_10
## %bb.5:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movl	(%rax), %edi
	movq	_ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_RSA_free
LBB0_9:
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key refcount == 0 on free"

	.comm	_ASN1_OID_ID_PKCS1_RSAENCRYPTION,4,2 ## @ASN1_OID_ID_PKCS1_RSAENCRYPTION
	.comm	_ASN1_OID_ID_ECPUBLICKEY,4,2    ## @ASN1_OID_ID_ECPUBLICKEY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_private_key_free         ; -- Begin function hx509_private_key_free
	.p2align	2
_hx509_private_key_free:                ; @hx509_private_key_free
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x9, [x8]
	cbnz	x9, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__hx509_abort
	ldr	x8, [x19]
	ldr	x9, [x8]
LBB0_4:
	subs	x9, x9, #1
	str	x9, [x8]
	b.gt	LBB0_10
; %bb.5:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASN1_OID_ID_PKCS1_RSAENCRYPTION@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_der_heim_oid_cmp
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_RSA_free
LBB0_9:
	ldr	x8, [x19]
	str	xzr, [x8, #8]
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key refcount == 0 on free"

	.comm	_ASN1_OID_ID_PKCS1_RSAENCRYPTION,4,2 ; @ASN1_OID_ID_PKCS1_RSAENCRYPTION
	.comm	_ASN1_OID_ID_ECPUBLICKEY,4,2    ; @ASN1_OID_ID_ECPUBLICKEY
.subsections_via_symbols
