	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function devcrypto_test_cipher
_devcrypto_test_cipher:                 ## @devcrypto_test_cipher
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_cipher_driver_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rsi
	movq	_DEVCRYPTO_STATUS_USABLE@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpq	(%r8), %rsi
	jne	LBB0_5
## %bb.1:
	movq	_selected_ciphers@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	$1, (%rsi,%rdi,4)
	jne	LBB0_5
## %bb.2:
	movq	8(%rcx,%rdx), %rcx
	movq	_DEVCRYPTO_ACCELERATED@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.3:
	movq	_use_softdrivers@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_DEVCRYPTO_USE_SOFTWARE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.4:
	movq	_DEVCRYPTO_NOT_ACCELERATED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	setne	%al
	movq	_DEVCRYPTO_REJECT_SOFTWARE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cipher_driver_info,8,3         ## @cipher_driver_info
	.comm	_DEVCRYPTO_STATUS_USABLE,8,3    ## @DEVCRYPTO_STATUS_USABLE
	.comm	_selected_ciphers,8,3           ## @selected_ciphers
	.comm	_DEVCRYPTO_ACCELERATED,8,3      ## @DEVCRYPTO_ACCELERATED
	.comm	_use_softdrivers,8,3            ## @use_softdrivers
	.comm	_DEVCRYPTO_USE_SOFTWARE,8,3     ## @DEVCRYPTO_USE_SOFTWARE
	.comm	_DEVCRYPTO_NOT_ACCELERATED,8,3  ## @DEVCRYPTO_NOT_ACCELERATED
	.comm	_DEVCRYPTO_REJECT_SOFTWARE,8,3  ## @DEVCRYPTO_REJECT_SOFTWARE
	.no_dead_strip	_devcrypto_test_cipher
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function devcrypto_test_cipher
_devcrypto_test_cipher:                 ; @devcrypto_test_cipher
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _cipher_driver_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cipher_driver_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x9, x0, #4
	ldr	x9, [x8, x9]
Lloh3:
	adrp	x10, _DEVCRYPTO_STATUS_USABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DEVCRYPTO_STATUS_USABLE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _selected_ciphers@GOTPAGE
Lloh7:
	ldr	x9, [x9, _selected_ciphers@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w9, [x9, x0, lsl #2]
	cmp	w9, #1
	b.ne	LBB0_4
; %bb.2:
	add	x8, x8, x0, lsl #4
	ldr	x8, [x8, #8]
Lloh9:
	adrp	x9, _DEVCRYPTO_ACCELERATED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DEVCRYPTO_ACCELERATED@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #1
	ret
LBB0_4:
	mov	w0, #0
	ret
LBB0_5:
Lloh12:
	adrp	x9, _use_softdrivers@GOTPAGE
Lloh13:
	ldr	x9, [x9, _use_softdrivers@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _DEVCRYPTO_USE_SOFTWARE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _DEVCRYPTO_USE_SOFTWARE@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #1
	ret
LBB0_7:
Lloh18:
	adrp	x10, _DEVCRYPTO_NOT_ACCELERATED@GOTPAGE
Lloh19:
	ldr	x10, [x10, _DEVCRYPTO_NOT_ACCELERATED@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	cmp	x8, x10
Lloh21:
	adrp	x8, _DEVCRYPTO_REJECT_SOFTWARE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DEVCRYPTO_REJECT_SOFTWARE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ccmp	x9, x8, #0, ne
	cset	w0, eq
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_cipher_driver_info,8,3         ; @cipher_driver_info
	.comm	_DEVCRYPTO_STATUS_USABLE,8,3    ; @DEVCRYPTO_STATUS_USABLE
	.comm	_selected_ciphers,8,3           ; @selected_ciphers
	.comm	_DEVCRYPTO_ACCELERATED,8,3      ; @DEVCRYPTO_ACCELERATED
	.comm	_use_softdrivers,8,3            ; @use_softdrivers
	.comm	_DEVCRYPTO_USE_SOFTWARE,8,3     ; @DEVCRYPTO_USE_SOFTWARE
	.comm	_DEVCRYPTO_NOT_ACCELERATED,8,3  ; @DEVCRYPTO_NOT_ACCELERATED
	.comm	_DEVCRYPTO_REJECT_SOFTWARE,8,3  ; @DEVCRYPTO_REJECT_SOFTWARE
	.no_dead_strip	_devcrypto_test_cipher
.subsections_via_symbols
