	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_available               ## -- Begin function crypto_available
	.p2align	4, 0x90
_crypto_available:                      ## @crypto_available
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_HX509_SELECT_ALL@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	(%rbx), %rdx
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_11
LBB0_6:
	movl	(%r15), %r14d
	jmp	LBB0_11
LBB0_7:
	movq	_HX509_SELECT_DIGEST@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_HX509_SELECT_PUBLIC_SIG@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_HX509_SELECT_SECRET_ENC@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %r14d
LBB0_11:
	movq	_context@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_hx509_crypto_available
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_13:
	cmpl	$0, -44(%rbp)
	je	LBB0_16
## %bb.14:
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %r14
	leaq	L_.str.6(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	addq	%r13, %rdi
	movl	$46, %esi
	movq	%r14, %rdx
	callq	_der_print_heim_oid
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_printf
	movq	-56(%rbp), %rdi
	callq	_free
	incq	%rbx
	movl	-44(%rbp), %r12d
	addq	$4, %r13
	cmpq	%r12, %rbx
	jb	LBB0_15
LBB0_16:
	movq	-64(%rbp), %rdi
	movl	%r12d, %esi
	callq	_hx509_crypto_free_algs
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_SELECT_ALL,4,2           ## @HX509_SELECT_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"all"

L_.str.1:                               ## @.str.1
	.asciz	"digest"

	.comm	_HX509_SELECT_DIGEST,4,2        ## @HX509_SELECT_DIGEST
L_.str.2:                               ## @.str.2
	.asciz	"public-sig"

	.comm	_HX509_SELECT_PUBLIC_SIG,4,2    ## @HX509_SELECT_PUBLIC_SIG
L_.str.3:                               ## @.str.3
	.asciz	"secret"

	.comm	_HX509_SELECT_SECRET_ENC,4,2    ## @HX509_SELECT_SECRET_ENC
L_.str.4:                               ## @.str.4
	.asciz	"unknown type: %s"

	.comm	_context,4,2                    ## @context
L_.str.5:                               ## @.str.5
	.asciz	"hx509_crypto_available"

L_.str.6:                               ## @.str.6
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_available               ; -- Begin function crypto_available
	.p2align	2
_crypto_available:                      ; @crypto_available
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x21, _HX509_SELECT_ALL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HX509_SELECT_ALL@GOTPAGEOFF]
	ldr	w19, [x21]
	ldr	x0, [x0]
	cbz	x0, LBB0_11
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x20]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x20]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
	b	LBB0_11
LBB0_6:
	ldr	w19, [x21]
	b	LBB0_11
LBB0_7:
Lloh12:
	adrp	x8, _HX509_SELECT_DIGEST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HX509_SELECT_DIGEST@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _HX509_SELECT_PUBLIC_SIG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HX509_SELECT_PUBLIC_SIG@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _HX509_SELECT_SECRET_ENC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HX509_SELECT_SECRET_ENC@GOTPAGEOFF]
LBB0_10:
	ldr	w19, [x8]
LBB0_11:
Lloh18:
	adrp	x8, _context@GOTPAGE
Lloh19:
	ldr	x8, [x8, _context@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x1, x19
	mov	x2, #0
	bl	_hx509_crypto_available
	cbz	w0, LBB0_13
; %bb.12:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_16
; %bb.14:
	mov	x20, #0
	mov	x21, #0
Lloh23:
	adrp	x19, l_.str.6@PAGE
Lloh24:
	add	x19, x19, l_.str.6@PAGEOFF
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	add	x0, x8, x20
	add	x2, sp, #8
	mov	w1, #46
	bl	_der_print_heim_oid
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_printf
	ldr	x0, [sp, #8]
	bl	_free
	add	x21, x21, #1
	ldr	w1, [sp, #20]
	add	x20, x20, #4
	cmp	x21, x1
	b.lo	LBB0_15
	b	LBB0_17
LBB0_16:
	mov	w1, #0
LBB0_17:
	ldr	x0, [sp, #24]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_hx509_crypto_free_algs
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_SELECT_ALL,4,2           ; @HX509_SELECT_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"all"

l_.str.1:                               ; @.str.1
	.asciz	"digest"

	.comm	_HX509_SELECT_DIGEST,4,2        ; @HX509_SELECT_DIGEST
l_.str.2:                               ; @.str.2
	.asciz	"public-sig"

	.comm	_HX509_SELECT_PUBLIC_SIG,4,2    ; @HX509_SELECT_PUBLIC_SIG
l_.str.3:                               ; @.str.3
	.asciz	"secret"

	.comm	_HX509_SELECT_SECRET_ENC,4,2    ; @HX509_SELECT_SECRET_ENC
l_.str.4:                               ; @.str.4
	.asciz	"unknown type: %s"

	.comm	_context,4,2                    ; @context
l_.str.5:                               ; @.str.5
	.asciz	"hx509_crypto_available"

l_.str.6:                               ; @.str.6
	.asciz	"%s\n"

.subsections_via_symbols
