	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_probe
_sony_probe:                            ## @sony_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_FUTUREMAX_DANCE_MAT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	12(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	movl	%eax, %r13d
	movq	_SHANWAN_GAMEPAD@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	8(%r15), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	xorl	%eax, %eax
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	cmovneq	%rax, %r14
	orq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	testl	%r13d, %r13d
	cmovneq	%rax, %r12
	orq	%r14, %r12
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	%r12, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hid_set_drvdata
	movq	%r15, 8(%rbx)
	movq	%r15, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_hid_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_5:
	movq	(%rbx), %rax
	movq	_VAIO_RDESC_CONSTANT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	testq	%rcx, %rax
	je	LBB0_7
## %bb.6:
	movq	_HID_CONNECT_HIDDEV_FORCE@GOTPCREL(%rip), %rcx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	orl	(%rcx), %esi
	movq	_SIXAXIS_CONTROLLER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_9
LBB0_7:
	movq	_SIXAXIS_CONTROLLER@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	testq	%rcx, %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_9
## %bb.8:
	movq	_HID_CONNECT_HIDDEV_FORCE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %esi
LBB0_9:
	movq	_DUALSHOCK4_CONTROLLER@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movslq	%ecx, %rcx
	testq	%rcx, %rax
	je	LBB0_11
## %bb.10:
	orb	$-128, 1(%r15)
LBB0_11:
	movq	%r15, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	callq	_hid_err
LBB0_16:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_HID_CLAIMED_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	testl	%eax, 4(%r15)
	jne	LBB0_16
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_hid_err
	movq	%r15, %rdi
	callq	_hid_hw_stop
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FutureMax Dance Mat"

	.comm	_FUTUREMAX_DANCE_MAT,8,3        ## @FUTUREMAX_DANCE_MAT
L_.str.1:                               ## @.str.1
	.asciz	"SHANWAN PS3 GamePad"

	.comm	_SHANWAN_GAMEPAD,8,3            ## @SHANWAN_GAMEPAD
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.2:                               ## @.str.2
	.asciz	"can't alloc sony descriptor\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"parse failed\n"

	.comm	_VAIO_RDESC_CONSTANT,4,2        ## @VAIO_RDESC_CONSTANT
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ## @HID_CONNECT_HIDDEV_FORCE
	.comm	_SIXAXIS_CONTROLLER,4,2         ## @SIXAXIS_CONTROLLER
	.comm	_DUALSHOCK4_CONTROLLER,4,2      ## @DUALSHOCK4_CONTROLLER
L_.str.4:                               ## @.str.4
	.asciz	"hw start failed\n"

	.comm	_HID_CLAIMED_INPUT,4,2          ## @HID_CLAIMED_INPUT
L_.str.5:                               ## @.str.5
	.asciz	"failed to claim input\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_sony_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_probe
_sony_probe:                            ; @sony_probe
	.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	x19, x0
	ldr	x24, [x1]
Lloh0:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w0, [x0, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	mov	x21, x0
Lloh5:
	adrp	x8, _FUTUREMAX_DANCE_MAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FUTUREMAX_DANCE_MAT@GOTPAGEOFF]
Lloh7:
	ldr	x25, [x8]
	ldr	w0, [x19, #12]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	mov	x23, x0
Lloh10:
	adrp	x8, _SHANWAN_GAMEPAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SHANWAN_GAMEPAD@GOTPAGEOFF]
Lloh12:
	ldr	x26, [x8]
	add	x0, x19, #8
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	cmp	w21, #0
	csel	x8, x25, xzr, eq
	orr	x8, x8, x24
	cmp	w23, #0
	csel	x9, x26, xzr, eq
	orr	x21, x8, x9
	add	x0, x0, #16
	bl	_spin_lock_init
	str	x21, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_hid_set_drvdata
	str	x19, [x22, #8]
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_3:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hid_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_5:
	ldr	x8, [x22]
Lloh22:
	adrp	x9, _VAIO_RDESC_CONSTANT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VAIO_RDESC_CONSTANT@GOTPAGEOFF]
Lloh24:
	ldrsw	x9, [x9]
	tst	x8, x9
	b.eq	LBB0_7
; %bb.6:
Lloh25:
	adrp	x9, _HID_CONNECT_HIDDEV_FORCE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HID_CONNECT_HIDDEV_FORCE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w20, w9, w20
Lloh28:
	adrp	x9, _SIXAXIS_CONTROLLER@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SIXAXIS_CONTROLLER@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	b	LBB0_9
LBB0_7:
Lloh31:
	adrp	x9, _SIXAXIS_CONTROLLER@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SIXAXIS_CONTROLLER@GOTPAGEOFF]
Lloh33:
	ldrsw	x9, [x9]
	tst	x8, x9
	b.eq	LBB0_9
; %bb.8:
Lloh34:
	adrp	x10, _HID_CONNECT_HIDDEV_FORCE@GOTPAGE
Lloh35:
	ldr	x10, [x10, _HID_CONNECT_HIDDEV_FORCE@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	orr	w20, w10, w20
LBB0_9:
Lloh37:
	adrp	x10, _DUALSHOCK4_CONTROLLER@GOTPAGE
Lloh38:
	ldr	x10, [x10, _DUALSHOCK4_CONTROLLER@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	orr	w9, w10, w9
	sxtw	x9, w9
	tst	x8, x9
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x19]
	orr	w8, w8, #0x8000
	str	w8, [x19]
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_hid_hw_start
	cbz	w0, LBB0_15
; %bb.12:
	mov	x21, x0
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_hid_err
LBB0_14:
	mov	x0, x21
	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
LBB0_15:
	ldr	w8, [x19, #4]
Lloh42:
	adrp	x9, _HID_CLAIMED_INPUT@GOTPAGE
Lloh43:
	ldr	x9, [x9, _HID_CLAIMED_INPUT@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
	mov	w21, #0
	b	LBB0_14
LBB0_17:
Lloh45:
	adrp	x1, l_.str.5@PAGE
Lloh46:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_hid_err
	mov	x0, x19
	bl	_hid_hw_stop
Lloh47:
	adrp	x8, _ENODEV@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FutureMax Dance Mat"

	.comm	_FUTUREMAX_DANCE_MAT,8,3        ; @FUTUREMAX_DANCE_MAT
l_.str.1:                               ; @.str.1
	.asciz	"SHANWAN PS3 GamePad"

	.comm	_SHANWAN_GAMEPAD,8,3            ; @SHANWAN_GAMEPAD
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.2:                               ; @.str.2
	.asciz	"can't alloc sony descriptor\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"parse failed\n"

	.comm	_VAIO_RDESC_CONSTANT,4,2        ; @VAIO_RDESC_CONSTANT
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ; @HID_CONNECT_HIDDEV_FORCE
	.comm	_SIXAXIS_CONTROLLER,4,2         ; @SIXAXIS_CONTROLLER
	.comm	_DUALSHOCK4_CONTROLLER,4,2      ; @DUALSHOCK4_CONTROLLER
l_.str.4:                               ; @.str.4
	.asciz	"hw start failed\n"

	.comm	_HID_CLAIMED_INPUT,4,2          ; @HID_CLAIMED_INPUT
l_.str.5:                               ; @.str.5
	.asciz	"failed to claim input\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_sony_probe
.subsections_via_symbols
