	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_crypto_init              ## -- Begin function hx509_crypto_init
	.p2align	4, 0x90
_hx509_crypto_init:                     ## @hx509_crypto_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r15
	movl	%edi, %r14d
	movq	$0, (%rcx)
	movq	%rdx, %rdi
	callq	_find_cipher_by_oid
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_PADDING_PKCS7@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	%rbx, 8(%rax)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	*(%rbx)
	movq	(%r12), %rsi
	movl	%eax, 4(%rsi)
	movq	%r15, %rdi
	callq	_der_copy_oid
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%r12), %rdi
	callq	_hx509_crypto_destroy
	movq	$0, (%r12)
LBB0_5:
	movl	%r14d, %edi
	callq	_hx509_clear_error_string
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_6
LBB0_1:
	movq	_HX509_ALG_NOT_SUPP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_ALG_NOT_SUPP,4,2         ## @HX509_ALG_NOT_SUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Algorithm not supported"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PADDING_PKCS7,4,2              ## @PADDING_PKCS7
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_crypto_init              ; -- Begin function hx509_crypto_init
	.p2align	2
_hx509_crypto_init:                     ; @hx509_crypto_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	str	xzr, [x3]
	mov	x0, x2
	bl	_find_cipher_by_oid
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _PADDING_PKCS7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PADDING_PKCS7@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	x22, [x0, #8]
	ldr	x8, [x22]
	blr	x8
	ldr	x1, [x20]
	str	w0, [x1, #4]
	mov	x0, x21
	bl	_der_copy_oid
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x20]
	bl	_hx509_crypto_destroy
	str	xzr, [x20]
LBB0_4:
	mov	x0, x19
	bl	_hx509_clear_error_string
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x20, _HX509_ALG_NOT_SUPP@GOTPAGE
Lloh7:
	ldr	x20, [x20, _HX509_ALG_NOT_SUPP@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w0, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_ALG_NOT_SUPP,4,2         ; @HX509_ALG_NOT_SUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Algorithm not supported"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PADDING_PKCS7,4,2              ; @PADDING_PKCS7
.subsections_via_symbols
