	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_sensor_parse_common_attributes ## -- Begin function hid_sensor_parse_common_attributes
	.p2align	4, 0x90
_hid_sensor_parse_common_attributes:    ## @hid_sensor_parse_common_attributes
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_hid_sensor_get_reporting_interval
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_HID_USAGE_SENSOR_PROP_REPORT_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	56(%rbx), %r8
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sensor_hub_input_get_attribute_info
	movl	(%r12), %esi
	movq	_HID_USAGE_SENSOR_PROY_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	8(%rbx), %r8
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sensor_hub_input_get_attribute_info
	movl	$1, 8(%rbx)
	movl	$1, 56(%rbx)
	movl	(%r12), %esi
	movq	_HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	32(%rbx), %r8
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sensor_hub_input_get_attribute_info
	movl	$-1, (%rbx)
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HID_USAGE_SENSOR_TIME_TIMESTAMP@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-72(%rbp), %r8
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_sensor_hub_input_get_attribute_info
	cmpq	$0, -64(%rbp)
	movl	$1000000000, %eax               ## imm = 0x3B9ACA00
	js	LBB0_3
## %bb.1:
	cmpq	$0, -56(%rbp)
	je	LBB0_3
## %bb.2:
	movl	(%r12), %edi
	leaq	-72(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_hid_sensor_format_scale
	movl	-40(%rbp), %eax
LBB0_3:
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	_hid_sensor_get_report_latency_info
	movl	(%r14), %edi
	movl	84(%rbx), %edx
	movl	80(%rbx), %ecx
	movq	64(%rbx), %r8
	movq	72(%rbx), %r9
	movups	16(%rbx), %xmm0
	movups	40(%rbx), %xmm1
	movups	-64(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	leaq	L_.str(%rip), %rsi
	callq	_hid_dbg
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rsi
	leaq	-40(%rbp), %r8
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_sensor_hub_get_feature
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	cmpq	$0, -40(%rbp)
	jns	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_USAGE_SENSOR_PROP_REPORT_STATE,4,2 ## @HID_USAGE_SENSOR_PROP_REPORT_STATE
	.comm	_HID_USAGE_SENSOR_PROY_POWER_STATE,4,2 ## @HID_USAGE_SENSOR_PROY_POWER_STATE
	.comm	_HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS,4,2 ## @HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS
	.comm	_HID_INPUT_REPORT,4,2           ## @HID_INPUT_REPORT
	.comm	_HID_USAGE_SENSOR_TIME_TIMESTAMP,4,2 ## @HID_USAGE_SENSOR_TIME_TIMESTAMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"common attributes: %x:%x, %x:%x, %x:%x %x:%x %x:%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hid_sensor_parse_common_attributes ; -- Begin function hid_sensor_parse_common_attributes
	.p2align	2
_hid_sensor_parse_common_attributes:    ; @hid_sensor_parse_common_attributes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_hid_sensor_get_reporting_interval
Lloh0:
	adrp	x22, _HID_FEATURE_REPORT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _HID_USAGE_SENSOR_PROP_REPORT_STATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HID_USAGE_SENSOR_PROP_REPORT_STATE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	add	x4, x20, #56
	mov	x0, x19
	mov	x2, x21
	bl	_sensor_hub_input_get_attribute_info
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _HID_USAGE_SENSOR_PROY_POWER_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_USAGE_SENSOR_PROY_POWER_STATE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, x20, #8
	mov	x0, x19
	mov	x2, x21
	bl	_sensor_hub_input_get_attribute_info
	mov	w8, #1
	str	w8, [x20, #8]
	str	w8, [x20, #56]
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x4, x20, #32
	mov	x0, x19
	mov	x2, x21
	bl	_sensor_hub_input_get_attribute_info
	mov	w8, #-1
	str	w8, [x20]
Lloh11:
	adrp	x8, _HID_INPUT_REPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x22, _HID_USAGE_SENSOR_TIME_TIMESTAMP@GOTPAGE
Lloh15:
	ldr	x22, [x22, _HID_USAGE_SENSOR_TIME_TIMESTAMP@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x4, sp, #56
	mov	x0, x19
	mov	x2, x21
	bl	_sensor_hub_input_get_attribute_info
	ldr	x9, [sp, #64]
	mov	w8, #51712
	movk	w8, #15258, lsl #16
	tbnz	x9, #63, LBB0_3
; %bb.1:
	ldr	x9, [sp, #72]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	w0, [x22]
	add	x1, sp, #56
	add	x2, sp, #48
	add	x3, sp, #44
	bl	_hid_sensor_format_scale
	ldr	w8, [sp, #48]
LBB0_3:
	str	w8, [x20, #4]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_hid_sensor_get_report_latency_info
	ldr	w0, [x19]
	ldp	w3, w2, [x20, #80]
	ldp	x4, x5, [x20, #64]
	ldp	x6, x7, [x20, #16]
	ldp	x8, x9, [x20, #40]
	ldp	x10, x11, [sp, #64]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_hid_dbg
	ldp	x2, x1, [x20, #16]
	add	x4, sp, #48
	mov	x0, x19
	mov	w3, #8
	bl	_sensor_hub_get_feature
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x8, [sp, #48]
	tbnz	x8, #63, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_USAGE_SENSOR_PROP_REPORT_STATE,4,2 ; @HID_USAGE_SENSOR_PROP_REPORT_STATE
	.comm	_HID_USAGE_SENSOR_PROY_POWER_STATE,4,2 ; @HID_USAGE_SENSOR_PROY_POWER_STATE
	.comm	_HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS,4,2 ; @HID_USAGE_SENSOR_PROP_SENSITIVITY_ABS
	.comm	_HID_INPUT_REPORT,4,2           ; @HID_INPUT_REPORT
	.comm	_HID_USAGE_SENSOR_TIME_TIMESTAMP,4,2 ; @HID_USAGE_SENSOR_TIME_TIMESTAMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"common attributes: %x:%x, %x:%x, %x:%x %x:%x %x:%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
