	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ms_probe
_ms_probe:                              ## @ms_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rsi), %r15
	addq	$4, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, (%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_hid_set_drvdata
	movq	_MS_NOGET@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_HID_QUIRK_NOGET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_4:
	movq	_MS_SURFACE_DIAL@GOTPCREL(%rip), %rax
	testq	%r15, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_HID_QUIRK_INPUT_PER_APP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_6:
	movq	%r14, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_8:
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movq	_MS_HIDINPUT@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	andq	(%rcx), %r15
	je	LBB0_10
## %bb.9:
	movq	_HID_CONNECT_HIDINPUT_FORCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_10:
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_ms_init_ff
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	callq	_hid_err
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MS_NOGET,8,3                   ## @MS_NOGET
	.comm	_HID_QUIRK_NOGET,4,2            ## @HID_QUIRK_NOGET
	.comm	_MS_SURFACE_DIAL,8,3            ## @MS_SURFACE_DIAL
	.comm	_HID_QUIRK_INPUT_PER_APP,4,2    ## @HID_QUIRK_INPUT_PER_APP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
	.comm	_MS_HIDINPUT,8,3                ## @MS_HIDINPUT
	.comm	_HID_CONNECT_HIDINPUT_FORCE,4,2 ## @HID_CONNECT_HIDINPUT_FORCE
L_.str.1:                               ## @.str.1
	.asciz	"hw start failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not initialize ff, continuing anyway"

	.no_dead_strip	_ms_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ms_probe
_ms_probe:                              ; @ms_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	x19, x0
	ldr	x21, [x1]
	add	x0, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x1, x0
	str	x21, [x0]
	mov	x0, x19
	bl	_hid_set_drvdata
Lloh3:
	adrp	x8, _MS_NOGET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MS_NOGET@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _HID_QUIRK_NOGET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_QUIRK_NOGET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
Lloh9:
	adrp	x8, _MS_SURFACE_DIAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MS_SURFACE_DIAL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _HID_QUIRK_INPUT_PER_APP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HID_QUIRK_INPUT_PER_APP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_8
; %bb.6:
	mov	x20, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_8:
Lloh20:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _MS_HIDINPUT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MS_HIDINPUT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
Lloh26:
	adrp	x10, _HID_CONNECT_HIDINPUT_FORCE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HID_CONNECT_HIDINPUT_FORCE@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	x9, x21
	csel	w9, wzr, w10, eq
	orr	w1, w9, w8
	mov	x0, x19
	bl	_hid_hw_start
	cbz	w0, LBB0_12
; %bb.9:
	mov	x20, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_hid_err
LBB0_11:
	mov	x0, x20
	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
LBB0_12:
	mov	x0, x19
	bl	_ms_init_ff
	cbz	w0, LBB0_14
; %bb.13:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hid_err
LBB0_14:
	mov	w20, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MS_NOGET,8,3                   ; @MS_NOGET
	.comm	_HID_QUIRK_NOGET,4,2            ; @HID_QUIRK_NOGET
	.comm	_MS_SURFACE_DIAL,8,3            ; @MS_SURFACE_DIAL
	.comm	_HID_QUIRK_INPUT_PER_APP,4,2    ; @HID_QUIRK_INPUT_PER_APP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
	.comm	_MS_HIDINPUT,8,3                ; @MS_HIDINPUT
	.comm	_HID_CONNECT_HIDINPUT_FORCE,4,2 ; @HID_CONNECT_HIDINPUT_FORCE
l_.str.1:                               ; @.str.1
	.asciz	"hw start failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not initialize ff, continuing anyway"

	.no_dead_strip	_ms_probe
.subsections_via_symbols
