	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alg_for_privatekey
_alg_for_privatekey:                    ## @alg_for_privatekey
	.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	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.1:
	movq	_sig_algs@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rdi, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rcx), %rbx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rax
	testq	%rax, %rax
	je	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rsi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	8(%rcx), %rsi
	movq	%r12, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_3
LBB0_8:
	movq	_HX509_SELECT_PUBLIC_SIG@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_12
## %bb.9:
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rax
	addq	$8, %rax
	jmp	LBB0_14
LBB0_12:
	movq	_HX509_SELECT_DIGEST@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_15
## %bb.13:
	movq	(%r13), %rax
	movq	(%rax,%r14,8), %rax
LBB0_14:
	movq	(%rax), %r15
	jmp	LBB0_16
LBB0_15:
	xorl	%r15d, %r15d
LBB0_16:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sig_algs,8,3                   ## @sig_algs
	.comm	_HX509_SELECT_PUBLIC_SIG,4,2    ## @HX509_SELECT_PUBLIC_SIG
	.comm	_HX509_SELECT_DIGEST,4,2        ## @HX509_SELECT_DIGEST
	.no_dead_strip	_alg_for_privatekey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alg_for_privatekey
_alg_for_privatekey:                    ; @alg_for_privatekey
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x9, [x0]
	cbz	x9, LBB0_13
; %bb.1:
Lloh0:
	adrp	x22, _sig_algs@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sig_algs@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.2:
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
	ldr	x21, [x9, #8]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	ldr	x8, [x22]
	ldr	x8, [x8, w23, uxtw #3]
	cbz	x8, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x21
	bl	_der_heim_oid_cmp
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x22]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x1, [x9, #8]
	mov	x0, x20
	blr	x8
	cbz	x0, LBB0_3
LBB0_8:
Lloh2:
	adrp	x8, _HX509_SELECT_PUBLIC_SIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HX509_SELECT_PUBLIC_SIG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	add	x8, x8, #8
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x8, _HX509_SELECT_DIGEST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HX509_SELECT_DIGEST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_13
; %bb.11:
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
LBB0_12:
	ldr	x0, [x8]
	b	LBB0_14
LBB0_13:
	mov	x0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_sig_algs,8,3                   ; @sig_algs
	.comm	_HX509_SELECT_PUBLIC_SIG,4,2    ; @HX509_SELECT_PUBLIC_SIG
	.comm	_HX509_SELECT_DIGEST,4,2        ; @HX509_SELECT_DIGEST
	.no_dead_strip	_alg_for_privatekey
.subsections_via_symbols
