	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ntrig_probe
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ntrig_probe:                           ## @ntrig_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
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_HID_QUIRK_MULTI_INPUT@GOTPCREL(%rip), %rax
	movq	_HID_QUIRK_NO_INIT_REPORTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	orl	%ecx, (%r14)
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rax)
	movq	_activate_slack@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,1,1,1]
	movups	%xmm0, (%rbx)
	movq	_deactivate_slack@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movl	$1, 16(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hid_set_drvdata
	movq	%r14, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_7:
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movq	_HID_CONNECT_FF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_hid_err
	movq	%rbx, %rdi
	callq	_kfree
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r14), %rax
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	80(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.10:
	movq	%r14, %rdi
	callq	_hid_hw_wait
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hid_hw_request
	movq	%r14, %rdi
	callq	_ntrig_get_mode
	cmpl	$4, %eax
	jl	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$3, %esi
	callq	_ntrig_set_mode
LBB0_12:
	movq	%r14, %rdi
	callq	_ntrig_report_version
	leaq	4(%r14), %rdi
	movq	_ntrig_attribute_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_create_group
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_err
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_QUIRK_MULTI_INPUT,4,2      ## @HID_QUIRK_MULTI_INPUT
	.comm	_HID_QUIRK_NO_INIT_REPORTS,4,2  ## @HID_QUIRK_NO_INIT_REPORTS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot allocate N-Trig data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_activate_slack,8,3             ## @activate_slack
	.comm	_deactivate_slack,4,2           ## @deactivate_slack
L_.str.1:                               ## @.str.1
	.asciz	"parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
	.comm	_HID_CONNECT_FF,4,2             ## @HID_CONNECT_FF
L_.str.2:                               ## @.str.2
	.asciz	"hw start failed\n"

	.comm	_HID_FEATURE_REPORT,8,3         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
	.comm	_ntrig_attribute_group,4,2      ## @ntrig_attribute_group
L_.str.3:                               ## @.str.3
	.asciz	"cannot create sysfs group\n"

	.no_dead_strip	_ntrig_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ntrig_probe
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ntrig_probe:                           ; @ntrig_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	x8, [x1]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HID_QUIRK_MULTI_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_QUIRK_MULTI_INPUT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _HID_QUIRK_NO_INIT_REPORTS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HID_QUIRK_NO_INIT_REPORTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_2:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	stp	xzr, xzr, [x0, #40]
Lloh9:
	adrp	x8, _activate_slack@GOTPAGE
Lloh10:
	ldr	x8, [x8, _activate_slack@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #24]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
Lloh14:
	adrp	x8, _deactivate_slack@GOTPAGE
Lloh15:
	ldr	x8, [x8, _deactivate_slack@GOTPAGEOFF]
	str	q0, [x0]
Lloh16:
	ldr	w8, [x8]
	neg	w8, w8
	mov	w9, #1
	stp	w9, w8, [x0, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_hid_set_drvdata
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_hid_err
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_6:
Lloh24:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _HID_CONNECT_FF@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HID_CONNECT_FF@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	bic	w1, w8, w9
	mov	x0, x19
	bl	_hid_hw_start
	cbz	w0, LBB0_10
; %bb.7:
	mov	x21, x0
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_hid_err
	mov	x0, x20
	bl	_kfree
LBB0_9:
	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
LBB0_10:
	ldr	x8, [x19, #8]
Lloh32:
	adrp	x9, _HID_FEATURE_REPORT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _HID_FEATURE_REPORT@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x20, [x8, #80]
	cbz	x20, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_hid_hw_wait
Lloh35:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_hid_hw_request
	mov	x0, x19
	bl	_ntrig_get_mode
	cmp	w0, #4
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #3
	bl	_ntrig_set_mode
LBB0_13:
	mov	x0, x19
	bl	_ntrig_report_version
	add	x0, x19, #4
Lloh38:
	adrp	x1, _ntrig_attribute_group@GOTPAGE
Lloh39:
	ldr	x1, [x1, _ntrig_attribute_group@GOTPAGEOFF]
	bl	_sysfs_create_group
	cbz	w0, LBB0_15
; %bb.14:
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hid_err
LBB0_15:
	mov	w21, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_QUIRK_MULTI_INPUT,4,2      ; @HID_QUIRK_MULTI_INPUT
	.comm	_HID_QUIRK_NO_INIT_REPORTS,4,2  ; @HID_QUIRK_NO_INIT_REPORTS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot allocate N-Trig data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_activate_slack,8,3             ; @activate_slack
	.comm	_deactivate_slack,4,2           ; @deactivate_slack
l_.str.1:                               ; @.str.1
	.asciz	"parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
	.comm	_HID_CONNECT_FF,4,2             ; @HID_CONNECT_FF
l_.str.2:                               ; @.str.2
	.asciz	"hw start failed\n"

	.comm	_HID_FEATURE_REPORT,8,3         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
	.comm	_ntrig_attribute_group,4,2      ; @ntrig_attribute_group
l_.str.3:                               ; @.str.3
	.asciz	"cannot create sysfs group\n"

	.no_dead_strip	_ntrig_probe
.subsections_via_symbols
