	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sensor_hub_get_physical_device_count
_sensor_hub_get_physical_device_count:  ## @sensor_hub_get_physical_device_count
	.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
	.cfi_offset %rbx, -24
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %r10
	movq	_HID_COLLECTION_PHYSICAL@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_HID_COLLECTION_APPLICATION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpl	$1, %r8d
	jne	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rcx,8), %rdx
	movq	8(%r10,%rcx,8), %rsi
	cmpq	%r11, %rdx
	sete	%bl
	cmpq	%rdi, %rdx
	sete	%dl
	orb	%bl, %dl
	movzbl	%dl, %edx
	addl	%eax, %edx
	cmpq	%r11, %rsi
	sete	%al
	cmpq	%rdi, %rsi
	sete	%bl
	orb	%al, %bl
	movzbl	%bl, %eax
	addl	%edx, %eax
	addq	$2, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movq	(%r10,%rcx,8), %rcx
	cmpq	%r11, %rcx
	sete	%dl
	cmpq	%rdi, %rcx
	sete	%cl
	orb	%dl, %cl
	movzbl	%cl, %ecx
	addl	%ecx, %eax
LBB0_8:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_COLLECTION_PHYSICAL,8,3    ## @HID_COLLECTION_PHYSICAL
	.comm	_HID_COLLECTION_APPLICATION,8,3 ## @HID_COLLECTION_APPLICATION
	.no_dead_strip	_sensor_hub_get_physical_device_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sensor_hub_get_physical_device_count
_sensor_hub_get_physical_device_count:  ; @sensor_hub_get_physical_device_count
	.cfi_startproc
; %bb.0:
	ldr	w10, [x0]
	cmp	w10, #1
	b.lt	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _HID_COLLECTION_PHYSICAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_COLLECTION_PHYSICAL@GOTPAGEOFF]
	ldr	x11, [x0, #8]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HID_COLLECTION_APPLICATION@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HID_COLLECTION_APPLICATION@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w10, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x12, #0
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	and	x12, x10, #0xfffffff8
	dup.2d	v0, x8
	dup.2d	v2, x9
	movi.2d	v1, #0000000000000000
	add	x13, x11, #32
	mov	x14, x12
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q6, q7, [x13, #-32]
	ldp	q16, q17, [x13], #64
	cmeq.2d	v18, v6, v0
	cmeq.2d	v19, v7, v0
	cmeq.2d	v20, v16, v0
	cmeq.2d	v21, v17, v0
	cmeq.2d	v6, v6, v2
	cmeq.2d	v7, v7, v2
	cmeq.2d	v16, v16, v2
	cmeq.2d	v17, v17, v2
	orr.16b	v6, v18, v6
	xtn.2s	v6, v6
	orr.16b	v7, v19, v7
	xtn.2s	v7, v7
	orr.16b	v16, v20, v16
	xtn.2s	v16, v16
	orr.16b	v17, v21, v17
	xtn.2s	v17, v17
	sub.2s	v1, v1, v6
	sub.2s	v3, v3, v7
	sub.2s	v4, v4, v16
	sub.2s	v5, v5, v17
	subs	x14, x14, #8
	b.ne	LBB0_5
; %bb.6:
	add.2s	v0, v3, v1
	add.2s	v0, v4, v0
	add.2s	v0, v5, v0
	addp.2s	v0, v0, v0
	fmov	w0, s0
	cmp	x12, x10
	b.eq	LBB0_9
LBB0_7:
	add	x11, x11, x12, lsl #3
	sub	x10, x10, x12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11], #8
	cmp	x12, x8
	ccmp	x12, x9, #4, ne
	cinc	w0, w0, eq
	subs	x10, x10, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_COLLECTION_PHYSICAL,8,3    ; @HID_COLLECTION_PHYSICAL
	.comm	_HID_COLLECTION_APPLICATION,8,3 ; @HID_COLLECTION_APPLICATION
	.no_dead_strip	_sensor_hub_get_physical_device_count
.subsections_via_symbols
