	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_sensor_custom_add_attributes
_hid_sensor_custom_add_attributes:      ## @hid_sensor_custom_add_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HID_REPORT_TYPES@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.6:
	movq	40(%rdi), %rax
	movq	(%rax), %r12
	movl	$-1, %eax
	xorl	%r13d, %r13d
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r15), %ecx
	xorl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	addq	$4, %r13
	cmpq	%rdx, %rbx
	jge	LBB0_2
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	cmpq	%rdx, %rbx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rsi
	addq	%r13, %rsi
	movl	%ebx, %edx
	callq	_hid_sensor_custom_add_fields
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_22
LBB0_1:
	movl	$-1, %eax
LBB0_2:
	cmpl	$0, (%rdi)
	jle	LBB0_22
## %bb.3:
	leaq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	24(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_hid_custom_attrs@GOTPCREL(%rip), %rsi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %rax
	movq	%rax, (%rcx)
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movslq	(%rdi), %rax
	movq	%rdx, %rcx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	movq	_hid_custom_attrs@GOTPCREL(%rip), %rsi
	jge	LBB0_21
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	_HID_CUSTOM_TOTAL_ATTRS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	32(%rax,%r15), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax,%r13,8)
	incq	%r13
	movq	_HID_CUSTOM_TOTAL_ATTRS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r12
	addq	$24, %r14
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rsi), %rax
	movq	(%rax,%r12,4), %r8
	testq	%r8, %r8
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	8(%rdi), %rax
	imulq	$56, -48(%rbp), %r15            ## 8-byte Folded Reload
	movq	(%rax,%r15), %rcx
	movq	48(%rax,%r15), %rbx
	movq	40(%rax,%r15), %rdi
	addq	%r12, %rdi
	movq	_HID_CUSTOM_NAME_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	leaq	(%rbx,%r14), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_sysfs_attr_init
	movq	_hid_custom_attrs@GOTPCREL(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rdi), %rax
	movq	40(%rax,%r15), %rcx
	addq	%r12, %rcx
	movq	%rcx, (%rbx,%r14)
	movq	(%rsi), %rcx
	movl	8(%rcx,%r12,4), %ecx
	movl	%ecx, 8(%rbx,%r14)
	movq	_show_value@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rbx,%r14)
	movq	_S_IWUSR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	_store_value@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx,%r14)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdi), %rax
	imulq	$56, -48(%rbp), %rbx            ## 8-byte Folded Reload
	movq	32(%rax,%rbx), %rax
	movl	%r13d, %ecx
	movq	$0, (%rax,%rcx,8)
	movq	8(%rdi), %rax
	movq	(%rax,%rbx), %rcx
	movq	32(%rax,%rbx), %rdx
	leaq	16(%rax,%rbx), %rsi
	movq	%rdx, 24(%rax,%rbx)
	movq	%rcx, 16(%rax,%rbx)
	movq	%rdi, %r14
	movq	32(%rdi), %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	jne	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	movq	8(%rax,%rbx), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	_HID_USAGE_SENSOR_PROY_POWER_STATE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	movq	%r14, %rdi
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	_HID_USAGE_SENSOR_PROP_REPORT_STATE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_19
	jmp	LBB0_20
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_REPORT_TYPES,4,2           ## @HID_REPORT_TYPES
	.comm	_HID_OUTPUT_REPORT,4,2          ## @HID_OUTPUT_REPORT
	.comm	_HID_CUSTOM_TOTAL_ATTRS,4,2     ## @HID_CUSTOM_TOTAL_ATTRS
	.comm	_hid_custom_attrs,8,3           ## @hid_custom_attrs
	.comm	_HID_CUSTOM_NAME_LENGTH,4,2     ## @HID_CUSTOM_NAME_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%s"

	.comm	_show_value,4,2                 ## @show_value
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_store_value,4,2                ## @store_value
	.comm	_HID_USAGE_SENSOR_PROY_POWER_STATE,8,3 ## @HID_USAGE_SENSOR_PROY_POWER_STATE
	.comm	_HID_USAGE_SENSOR_PROP_REPORT_STATE,8,3 ## @HID_USAGE_SENSOR_PROP_REPORT_STATE
	.no_dead_strip	_hid_sensor_custom_add_attributes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_sensor_custom_add_attributes
_hid_sensor_custom_add_attributes:      ; @hid_sensor_custom_add_attributes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _HID_REPORT_TYPES@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HID_REPORT_TYPES@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x20, #0
	ldr	x9, [x19, #40]
	ldr	x23, [x9]
	mov	w0, #-1
Lloh2:
	adrp	x24, _HID_OUTPUT_REPORT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HID_OUTPUT_REPORT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	add	x22, x22, #4
	cmp	x20, w8, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x24]
	cmp	x20, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	add	x1, x8, x22
	mov	x0, x19
	mov	x2, x20
	bl	_hid_sensor_custom_add_fields
	cbz	w0, LBB0_2
	b	LBB0_22
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.8:
	mov	x22, #0
	add	x9, x19, #16
	add	x8, x19, #24
	stp	x9, x8, [sp]                    ; 16-byte Folded Spill
Lloh4:
	adrp	x26, _hid_custom_attrs@GOTPAGE
Lloh5:
	ldr	x26, [x26, _hid_custom_attrs@GOTPAGEOFF]
	mov	w27, #56
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	str	x8, [x10]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_21
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
Lloh6:
	adrp	x8, _HID_CUSTOM_TOTAL_ATTRS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_CUSTOM_TOTAL_ATTRS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, #0
	mov	x25, #0
	mov	x20, #0
	mov	x28, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	madd	x8, x22, x27, x8
	ldr	x8, [x8, #32]
	str	x21, [x8, x28, lsl #3]
	add	x28, x28, #1
Lloh9:
	adrp	x8, _HID_CUSTOM_TOTAL_ATTRS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_CUSTOM_TOTAL_ATTRS@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	add	x20, x20, #4
	add	x25, x25, #24
	add	x23, x23, #2
	cmp	x28, x8
	b.ge	LBB0_18
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x26]
	ldr	x4, [x8, x23, lsl #3]
	cbz	x4, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x19, #8]
	mul	x24, x22, x27
	add	x8, x8, x24
	ldp	x9, x21, [x8, #40]
	add	x0, x9, x20
Lloh12:
	adrp	x9, _HID_CUSTOM_NAME_LENGTH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HID_CUSTOM_NAME_LENGTH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	ldr	x3, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	add	x21, x21, x25
	mov	x0, x21
	bl	_sysfs_attr_init
	ldr	x8, [x19, #8]
	add	x9, x8, x24
	ldr	x9, [x9, #40]
	add	x9, x9, x20
	str	x9, [x21]
	ldr	x9, [x26]
	add	x9, x9, x20, lsl #2
	ldr	w9, [x9, #8]
	str	w9, [x21, #8]
Lloh17:
	adrp	x10, _show_value@GOTPAGE
Lloh18:
	ldr	x10, [x10, _show_value@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	str	w10, [x21, #20]
Lloh20:
	adrp	x10, _S_IWUSR@GOTPAGE
Lloh21:
	ldr	x10, [x10, _S_IWUSR@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
Lloh23:
	adrp	x9, _store_value@GOTPAGE
Lloh24:
	ldr	x9, [x9, _store_value@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	str	w9, [x21, #16]
	b	LBB0_13
LBB0_17:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, #0
LBB0_18:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	mul	x9, x22, x27
	add	x8, x8, x9
	ldr	x8, [x8, #32]
	str	xzr, [x8, w28, uxtw #3]
	ldr	x8, [x19, #8]
	add	x1, x8, x9
	ldr	x8, [x1]
	str	x8, [x1, #16]!
	ldr	x8, [x1, #16]
	str	x8, [x1, #8]
	ldr	x0, [x19, #32]
	bl	_sysfs_create_group
	cbnz	w0, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19, #8]
	madd	x8, x22, x27, x8
	ldr	x9, [x8, #8]
Lloh26:
	adrp	x10, _HID_USAGE_SENSOR_PROY_POWER_STATE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HID_USAGE_SENSOR_PROY_POWER_STATE@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x10]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x9, x11
	b.eq	LBB0_9
; %bb.20:                               ;   in Loop: Header=BB0_11 Depth=1
Lloh29:
	adrp	x10, _HID_USAGE_SENSOR_PROP_REPORT_STATE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _HID_USAGE_SENSOR_PROP_REPORT_STATE@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x10]
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	cmp	x9, x11
	b.eq	LBB0_9
	b	LBB0_10
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_REPORT_TYPES,4,2           ; @HID_REPORT_TYPES
	.comm	_HID_OUTPUT_REPORT,4,2          ; @HID_OUTPUT_REPORT
	.comm	_HID_CUSTOM_TOTAL_ATTRS,4,2     ; @HID_CUSTOM_TOTAL_ATTRS
	.comm	_hid_custom_attrs,8,3           ; @hid_custom_attrs
	.comm	_HID_CUSTOM_NAME_LENGTH,4,2     ; @HID_CUSTOM_NAME_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%s"

	.comm	_show_value,4,2                 ; @show_value
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_store_value,4,2                ; @store_value
	.comm	_HID_USAGE_SENSOR_PROY_POWER_STATE,8,3 ; @HID_USAGE_SENSOR_PROY_POWER_STATE
	.comm	_HID_USAGE_SENSOR_PROP_REPORT_STATE,8,3 ; @HID_USAGE_SENSOR_PROP_REPORT_STATE
	.no_dead_strip	_hid_sensor_custom_add_attributes
.subsections_via_symbols
