	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax_probe
_ax_probe:                              ## @ax_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	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_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_hid_err
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_axff_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_hid_warn
LBB0_7:
	movq	%r14, %rdi
	callq	_hid_hw_open
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_hid_hw_stop
	jmp	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ACRUX HID hardware probe...\n"

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"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to enable force feedback support, error: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"hw open failed\n"

	.no_dead_strip	_ax_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax_probe
_ax_probe:                              ; @ax_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _HID_CONNECT_FF@GOTPAGE
Lloh8:
	ldr	x9, [x9, _HID_CONNECT_FF@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	bic	w1, w8, w9
	mov	x0, x19
	bl	_hid_hw_start
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_hid_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	bl	_axff_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hid_warn
LBB0_8:
	mov	x0, x19
	bl	_hid_hw_open
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.9:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x19
	bl	_hid_hw_stop
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ACRUX HID hardware probe...\n"

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"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to enable force feedback support, error: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"hw open failed\n"

	.no_dead_strip	_ax_probe
.subsections_via_symbols
