	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_num_aes
_get_num_aes:                           ## @get_num_aes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	je	LBB0_9
## %bb.2:
	movq	_ADF_C62X_MAX_ACCELENGINES@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.3:
	leal	-1(%r8), %eax
	movl	%r8d, %edx
	andl	$3, %edx
	cmpl	$3, %eax
	jae	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_5:
	andl	$-4, %r8d
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	btl	%esi, %r9d
	setb	%dil
	leal	1(%rsi), %ecx
	btl	%ecx, %r9d
	adcl	%eax, %edi
	leal	1(%rcx), %eax
	movzbl	%al, %ecx
	xorl	%eax, %eax
	btl	%ecx, %r9d
	setb	%al
	leal	3(%rsi), %ecx
	btl	%ecx, %r9d
	adcl	%edi, %eax
	addl	$4, %esi
	cmpl	%r8d, %esi
	jne	LBB0_6
LBB0_7:
	testl	%edx, %edx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	btl	%esi, %r9d
	adcl	$0, %eax
	incl	%esi
	decl	%edx
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADF_C62X_MAX_ACCELENGINES,4,2  ## @ADF_C62X_MAX_ACCELENGINES
	.no_dead_strip	_get_num_aes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function get_num_aes
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_get_num_aes:                           ; @get_num_aes
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.2:
Lloh0:
	adrp	x9, _ADF_C62X_MAX_ACCELENGINES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADF_C62X_MAX_ACCELENGINES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.3:
	cmp	w9, #16
	b.hs	LBB0_6
; %bb.4:
	mov	w0, #0
	mov	w10, #0
	b	LBB0_9
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
	and	w10, w9, #0xfffffff0
	dup.4s	v0, w8
	movi.2d	v1, #0000000000000000
	mvni.4s	v2, #3
	mvni.4s	v3, #7
Lloh3:
	adrp	x11, lCPI0_0@PAGE
Lloh4:
	ldr	q4, [x11, lCPI0_0@PAGEOFF]
	mvni.4s	v5, #11
	movi.4s	v6, #1
	movi.4s	v7, #16
	mov	x11, x10
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	neg.4s	v19, v4
	ushl.4s	v19, v0, v19
	sub.4s	v20, v2, v4
	ushl.4s	v20, v0, v20
	sub.4s	v21, v3, v4
	ushl.4s	v21, v0, v21
	sub.4s	v22, v5, v4
	ushl.4s	v22, v0, v22
	and.16b	v19, v19, v6
	and.16b	v20, v20, v6
	and.16b	v21, v21, v6
	and.16b	v22, v22, v6
	add.4s	v1, v19, v1
	add.4s	v16, v20, v16
	add.4s	v17, v21, v17
	add.4s	v18, v22, v18
	add.4s	v4, v4, v7
	subs	w11, w11, #16
	b.ne	LBB0_7
; %bb.8:
	add.4s	v0, v16, v1
	add.4s	v0, v17, v0
	add.4s	v0, v18, v0
	addv.4s	s0, v0
	fmov	w0, s0
	b	LBB0_10
LBB0_9:
	lsr	w11, w8, w10
	and	w11, w11, #0x1
	add	w0, w11, w0
	add	w10, w10, #1
LBB0_10:
	cmp	w9, w10
	b.ne	LBB0_9
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ADF_C62X_MAX_ACCELENGINES,4,2  ; @ADF_C62X_MAX_ACCELENGINES
	.no_dead_strip	_get_num_aes
.subsections_via_symbols
