	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_sensor_custom_add_field
_hid_sensor_custom_add_field:           ## @hid_sensor_custom_add_field
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	imull	$44, (%rdi), %esi
	movq	24(%rdi), %rdi
	addl	$44, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_krealloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, %rdx
	movq	%rax, 24(%r14)
	movslq	(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %ecx
	imulq	$44, %rax, %r13
	movl	%ecx, 36(%rbx,%r13)
	movl	(%r15), %r8d
	testl	%r8d, %r8d
	jne	LBB0_4
## %bb.3:
	movq	32(%r15), %rax
	movl	(%rax), %r8d
LBB0_4:
	movl	%r8d, 4(%rbx,%r13)
	movl	%r12d, 8(%rbx,%r13)
	movl	(%rdx), %eax
	movl	%eax, 32(%rbx,%r13)
	movl	4(%r15), %eax
	leal	7(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movl	%edx, 12(%rbx,%r13)
	movups	12(%r15), %xmm0
	movups	%xmm0, 16(%rbx,%r13)
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	40(%rbx,%r13), %edi
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movl	%r12d, %ecx
	callq	_snprintf
	jmp	LBB0_8
LBB0_1:
	movq	24(%r14), %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_6:
	movq	_HID_INPUT_REPORT@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_8
## %bb.7:
	movl	40(%rbx,%r13), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	movl	%r12d, %ecx
	callq	_snprintf
	incl	8(%r14)
	movl	8(%r15), %eax
	imull	4(%r15), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	addl	%ecx, 4(%r14)
LBB0_8:
	addq	%r13, %rbx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	incl	(%r14)
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"feature-%x-%x"

	.comm	_HID_INPUT_REPORT,4,2           ## @HID_INPUT_REPORT
L_.str.1:                               ## @.str.1
	.asciz	"input-%x-%x"

	.no_dead_strip	_hid_sensor_custom_add_field
.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_field
_hid_sensor_custom_add_field:           ; @hid_sensor_custom_add_field
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldr	w8, [x19]
	mov	w9, #44
	mul	w8, w8, w9
	add	w1, w8, #44
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_krealloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	str	x0, [x19, #24]
	ldrsw	x25, [x19]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	mov	w9, #44
	madd	x9, x25, x9, x0
	str	w8, [x9, #36]
	ldr	w4, [x22]
	cbnz	w4, LBB0_3
; %bb.2:
	ldr	x8, [x22, #32]
	ldr	w4, [x8]
LBB0_3:
	mov	w8, #44
	madd	x8, x25, x8, x20
	stp	w4, w21, [x8, #4]
	ldr	w9, [x24]
	str	w9, [x8, #32]
	ldr	w9, [x22, #4]
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	str	w9, [x8, #12]
	ldur	q0, [x22, #12]
	str	q0, [x8, #16]
Lloh3:
	adrp	x8, _HID_FEATURE_REPORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_6
; %bb.4:
	mov	w8, #44
	madd	x8, x25, x8, x20
	ldr	w0, [x8, #40]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x3, x21
	bl	_snprintf
	b	LBB0_8
LBB0_5:
	ldr	x0, [x19, #24]
	bl	_kfree
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _HID_INPUT_REPORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HID_INPUT_REPORT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #44
	madd	x8, x25, x8, x20
	ldr	w0, [x8, #40]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	x3, x21
	bl	_snprintf
	ldp	w8, w9, [x22, #4]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	ldur	d0, [x19, #4]
	movi.2s	v1, #1
	mov.s	v1[0], w8
	add.2s	v0, v1, v0
	stur	d0, [x19, #4]
LBB0_8:
	mov	w8, #44
	madd	x0, x25, x8, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"feature-%x-%x"

	.comm	_HID_INPUT_REPORT,4,2           ; @HID_INPUT_REPORT
l_.str.1:                               ; @.str.1
	.asciz	"input-%x-%x"

	.no_dead_strip	_hid_sensor_custom_add_field
.subsections_via_symbols
