	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_sensor_custom_probe
_hid_sensor_custom_probe:               ## @hid_sensor_custom_probe
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_hid_sensor_capture_sample@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%rbx), %r15
	movl	%eax, 20(%rbx)
	movq	_hid_sensor_send_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r12, 8(%rbx)
	movq	%r14, 32(%rbx)
	movq	%r12, (%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movl	(%r14), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_sensor_hub_register_callback
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	movq	_enable_sensor_attr_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_group
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_hid_sensor_custom_add_attributes
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_hid_sensor_custom_dev_if_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_hid_sensor_custom_remove_attributes
LBB0_9:
	movq	(%rbx), %rdi
	movq	_enable_sensor_attr_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_remove_group
LBB0_10:
	movl	(%r14), %esi
	movq	%r14, %rdi
	callq	_sensor_hub_remove_callback
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hid_sensor_capture_sample,4,2  ## @hid_sensor_capture_sample
	.comm	_hid_sensor_send_event,4,2      ## @hid_sensor_send_event
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"callback reg failed\n"

	.comm	_enable_sensor_attr_group,4,2   ## @enable_sensor_attr_group
	.no_dead_strip	_hid_sensor_custom_probe
.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_probe
_hid_sensor_custom_probe:               ; @hid_sensor_custom_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _hid_sensor_capture_sample@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hid_sensor_capture_sample@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _hid_sensor_send_event@GOTPAGE
Lloh7:
	ldr	x9, [x9, _hid_sensor_send_event@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	mov	x21, x0
	str	x22, [x21, #8]!
	str	x19, [x0, #32]
	str	x22, [x0], #24
	bl	_mutex_init
	mov	x0, x22
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x21
	bl	_sensor_hub_register_callback
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x0, [x20]
Lloh9:
	adrp	x1, _enable_sensor_attr_group@GOTPAGE
Lloh10:
	ldr	x1, [x1, _enable_sensor_attr_group@GOTPAGEOFF]
	bl	_sysfs_create_group
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_hid_sensor_custom_add_attributes
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_hid_sensor_custom_dev_if_add
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.5:
	mov	x0, x20
	bl	_hid_sensor_custom_remove_attributes
LBB0_6:
	ldr	x0, [x20]
Lloh11:
	adrp	x1, _enable_sensor_attr_group@GOTPAGE
Lloh12:
	ldr	x1, [x1, _enable_sensor_attr_group@GOTPAGEOFF]
	bl	_sysfs_remove_group
LBB0_7:
	ldr	w1, [x19]
	mov	x0, x19
	bl	_sensor_hub_remove_callback
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_9:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hid_sensor_capture_sample,4,2  ; @hid_sensor_capture_sample
	.comm	_hid_sensor_send_event,4,2      ; @hid_sensor_send_event
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"callback reg failed\n"

	.comm	_enable_sensor_attr_group,4,2   ; @enable_sensor_attr_group
	.no_dead_strip	_hid_sensor_custom_probe
.subsections_via_symbols
