	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function checkforsoftware
_checkforsoftware:                      ## @checkforsoftware
	.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	_crypto_devallowsoft@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	je	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	(%rdi), %ecx
	movq	_CRYPTOCAP_F_SOFTWARE@GOTPCREL(%rip), %rsi
	movq	_CRYPTOCAP_F_HARDWARE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	testl	%ecx, (%rsi)
	je	LBB0_4
## %bb.2:
	testl	%ecx, %edx
	je	LBB0_6
## %bb.3:
	movl	%edx, (%rdi)
	jmp	LBB0_7
LBB0_4:
	testl	%ecx, %edx
	jne	LBB0_7
## %bb.5:
	movl	%ecx, %edi
	callq	_crypto_getcaps
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rbx)
	jne	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_crypto_devallowsoft,4,2        ## @crypto_devallowsoft
	.comm	_CRYPTOCAP_F_SOFTWARE,4,2       ## @CRYPTOCAP_F_SOFTWARE
	.comm	_CRYPTOCAP_F_HARDWARE,4,2       ## @CRYPTOCAP_F_HARDWARE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_checkforsoftware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function checkforsoftware
_checkforsoftware:                      ; @checkforsoftware
	.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
Lloh0:
	adrp	x8, _crypto_devallowsoft@GOTPAGE
Lloh1:
	ldr	x8, [x8, _crypto_devallowsoft@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
LBB0_1:
	mov	w8, #0
LBB0_2:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _CRYPTOCAP_F_SOFTWARE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPTOCAP_F_SOFTWARE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x9]
Lloh6:
	adrp	x19, _CRYPTOCAP_F_HARDWARE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _CRYPTOCAP_F_HARDWARE@GOTPAGEOFF]
	ldr	w9, [x19]
	and	w10, w9, w8
	tst	w11, w8
	b.eq	LBB0_6
; %bb.4:
	cbz	w10, LBB0_8
; %bb.5:
	mov	w8, #0
	str	w9, [x0]
	b	LBB0_2
LBB0_6:
	cbnz	w10, LBB0_1
; %bb.7:
	mov	x0, x8
	bl	_crypto_getcaps
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _EINVAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, w9, wzr, eq
	b	LBB0_2
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_crypto_devallowsoft,4,2        ; @crypto_devallowsoft
	.comm	_CRYPTOCAP_F_SOFTWARE,4,2       ; @CRYPTOCAP_F_SOFTWARE
	.comm	_CRYPTOCAP_F_HARDWARE,4,2       ; @CRYPTOCAP_F_HARDWARE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_checkforsoftware
.subsections_via_symbols
