	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpad_probe
_xpad_probe:                            ## @xpad_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, %rbx
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movq	(%rbx), %rax
	cmpl	$2, 8(%rax)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_xpad_device@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.5:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpq	$0, 32(%rcx,%rbx)
	leaq	32(%rbx), %rbx
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	callq	_le16_to_cpu
	movq	(%r14), %rcx
	cmpq	(%rcx,%rbx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	movq	(%r14), %rcx
	cmpq	8(%rcx,%rbx), %rax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	xorl	%r15d, %r15d
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movl	56(%rax), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_usb_make_path
	movl	56(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	leaq	8(%rbx), %rcx
	movq	%r12, %rdi
	callq	_usb_alloc_coherent
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	(%r13), %esi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movl	%r15d, %eax
	movq	%r12, 48(%rbx)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, 40(%rbx)
	movq	(%r14), %rcx
	shlq	$5, %rax
	movl	28(%rcx,%rax), %edx
	movl	%edx, 24(%rbx)
	movq	16(%rcx,%rax), %rdx
	movq	%rdx, (%rbx)
	movl	24(%rcx,%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	addq	$28, %rdi
	movq	_xpad_presence_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	(%rbx), %rax
	movq	_XTYPE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.16:
	movq	(%r15), %rax
	movq	16(%rax), %rcx
	movq	_USB_CLASS_VENDOR_SPEC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.18:
	movl	24(%rax), %ecx
	cmpl	$208, %ecx
	jne	LBB0_19
## %bb.20:
	movq	_XTYPE_XBOXONE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_50
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_49
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_48
LBB0_17:
	movq	_XTYPE_XBOX@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_19:
	movq	_XTYPE_XBOX360@GOTPCREL(%rip), %rax
LBB0_21:
	cmpl	$129, %ecx
	jne	LBB0_23
## %bb.22:
	movq	_XTYPE_XBOX360W@GOTPCREL(%rip), %rax
LBB0_23:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_dpad_to_buttons@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_25
## %bb.24:
	movq	_MAP_DPAD_TO_BUTTONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 24(%rbx)
LBB0_25:
	movq	_triggers_to_buttons@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.26:
	movq	_MAP_TRIGGERS_TO_BUTTONS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 24(%rbx)
LBB0_27:
	movq	_sticks_to_null@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_29
## %bb.28:
	movq	_MAP_STICKS_TO_NULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 24(%rbx)
LBB0_29:
	movq	_XTYPE_XBOXONE@GOTPCREL(%rip), %rdx
	movq	(%r15), %rcx
	cmpq	(%rdx), %rax
	jne	LBB0_32
## %bb.30:
	cmpq	$0, 32(%rcx)
	jne	LBB0_31
LBB0_32:
	movq	%r15, %r14
	movq	(%rcx), %r13
	movq	%r13, %rdi
	callq	_usb_endpoint_xfer_int
	testq	%rax, %rax
	je	LBB0_33
## %bb.34:
	movq	%r13, %rdi
	callq	_usb_endpoint_dir_in
	movq	%rax, %r15
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovneq	%r13, %r15
	cmoveq	%r13, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_35
LBB0_33:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_35:
	movq	%r14, %r13
	movq	(%r14), %rax
	movq	(%rax), %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_usb_endpoint_xfer_int
	testq	%rax, %rax
	je	LBB0_36
## %bb.37:
	movq	%r14, %rdi
	callq	_usb_endpoint_dir_in
	testq	%rax, %rax
	cmovneq	%r14, %r15
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmoveq	%r14, %rdx
	testq	%r15, %r15
	jne	LBB0_39
	jmp	LBB0_31
LBB0_36:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_31
LBB0_39:
	testq	%rdx, %rdx
	je	LBB0_31
## %bb.40:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_xpad_init_output
	movq	%r13, %r14
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_47
## %bb.41:
	movq	16(%rbx), %r13
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_usb_rcvintpipe
	movl	12(%rbx), %ecx
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_xpad_irq_in@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	(%r15), %r10d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	pushq	%r10
	pushq	%rbx
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	8(%rbx), %eax
	movq	16(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	(%rbx), %rax
	movq	_XTYPE_XBOX360W@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_44
## %bb.42:
	movq	%rbx, %rdi
	callq	_xpad360w_start_input
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_46
## %bb.43:
	movq	_USB_QUIRK_RESET_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_50
LBB0_31:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_47:
	movq	16(%rbx), %rdi
	callq	_usb_free_urb
LBB0_48:
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	movq	%r12, %rdi
	callq	_usb_free_coherent
LBB0_49:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_50:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movq	%rbx, %rdi
	callq	_xpad_init_input
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_45
LBB0_46:
	movq	%rbx, %rdi
	callq	_xpad_deinit_output
	jmp	LBB0_47
LBB0_45:
	xorl	%r13d, %r13d
	jmp	LBB0_50
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_xpad_device,8,3                ## @xpad_device
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/input0"

	.comm	_XPAD_PKT_LEN,4,2               ## @XPAD_PKT_LEN
	.comm	_xpad_presence_work,4,2         ## @xpad_presence_work
	.comm	_XTYPE_UNKNOWN,8,3              ## @XTYPE_UNKNOWN
	.comm	_USB_CLASS_VENDOR_SPEC,8,3      ## @USB_CLASS_VENDOR_SPEC
	.comm	_XTYPE_XBOX360W,8,3             ## @XTYPE_XBOX360W
	.comm	_XTYPE_XBOXONE,8,3              ## @XTYPE_XBOXONE
	.comm	_XTYPE_XBOX360,8,3              ## @XTYPE_XBOX360
	.comm	_XTYPE_XBOX,8,3                 ## @XTYPE_XBOX
	.comm	_dpad_to_buttons,8,3            ## @dpad_to_buttons
	.comm	_MAP_DPAD_TO_BUTTONS,4,2        ## @MAP_DPAD_TO_BUTTONS
	.comm	_triggers_to_buttons,8,3        ## @triggers_to_buttons
	.comm	_MAP_TRIGGERS_TO_BUTTONS,4,2    ## @MAP_TRIGGERS_TO_BUTTONS
	.comm	_sticks_to_null,8,3             ## @sticks_to_null
	.comm	_MAP_STICKS_TO_NULL,4,2         ## @MAP_STICKS_TO_NULL
	.comm	_xpad_irq_in,4,2                ## @xpad_irq_in
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_USB_QUIRK_RESET_RESUME,4,2     ## @USB_QUIRK_RESET_RESUME
	.no_dead_strip	_xpad_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpad_probe
_xpad_probe:                            ; @xpad_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	x21, x0
	bl	_interface_to_usbdev
	ldr	x8, [x21]
	ldr	w8, [x8, #8]
	cmp	w8, #2
	b.ne	LBB0_6
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _xpad_device@GOTPAGE
Lloh1:
	ldr	x22, [x22, _xpad_device@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x20, #0
	mov	x23, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x8, x8, x20
	ldr	x8, [x8, #32]
	add	x20, x20, #32
	cbz	x8, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	bl	_le16_to_cpu
	ldr	x8, [x22]
	ldr	x9, [x8, x20]
	cmp	x0, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #4]
	bl	_le16_to_cpu
	ldr	x8, [x22]
	add	x9, x8, x20
	ldr	x9, [x9, #8]
	cmp	x0, x9
	b.ne	LBB0_3
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	mov	x23, #0
LBB0_8:
Lloh4:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.9:
	mov	x20, x0
	ldr	w1, [x0, #56]
	mov	x0, x19
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x20, #56]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcat
Lloh8:
	adrp	x24, _XPAD_PKT_LEN@GOTPAGE
Lloh9:
	ldr	x24, [x24, _XPAD_PKT_LEN@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x25]
	add	x3, x20, #8
	mov	x0, x19
	bl	_usb_alloc_coherent
	str	w0, [x20, #12]
	cbz	w0, LBB0_16
; %bb.10:
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x20, #16]
	cbz	x0, LBB0_17
; %bb.11:
	and	x8, x23, #0xffffffff
	stp	x21, x19, [x20, #40]
	ldr	x9, [x22]
	add	x8, x9, x8, lsl #5
	ldp	w10, w9, [x8, #24]
	str	w9, [x20, #24]
	ldr	x8, [x8, #16]
	str	x8, [x20]
	str	w10, [x20, #32]
	add	x0, x20, #28
Lloh10:
	adrp	x8, _xpad_presence_work@GOTPAGE
Lloh11:
	ldr	x8, [x8, _xpad_presence_work@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	x9, [x20]
Lloh13:
	adrp	x8, _XTYPE_UNKNOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XTYPE_UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x8]
Lloh16:
	adrp	x8, _XTYPE_XBOXONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XTYPE_XBOXONE@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_25
; %bb.12:
	ldr	x9, [x21]
	ldr	x10, [x9, #16]
Lloh18:
	adrp	x11, _USB_CLASS_VENDOR_SPEC@GOTPAGE
Lloh19:
	ldr	x11, [x11, _USB_CLASS_VENDOR_SPEC@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_18
; %bb.13:
	ldr	w9, [x9, #24]
Lloh21:
	adrp	x10, _XTYPE_XBOX360@GOTPAGE
Lloh22:
	ldr	x10, [x10, _XTYPE_XBOX360@GOTPAGEOFF]
	cmp	w9, #208
	csel	x10, x8, x10, eq
Lloh23:
	adrp	x11, _XTYPE_XBOX360W@GOTPAGE
Lloh24:
	ldr	x11, [x11, _XTYPE_XBOX360W@GOTPAGEOFF]
	cmp	w9, #129
	csel	x9, x11, x10, eq
	b	LBB0_19
LBB0_14:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_42
LBB0_16:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_41
LBB0_17:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_40
LBB0_18:
Lloh33:
	adrp	x9, _XTYPE_XBOX@GOTPAGE
Lloh34:
	ldr	x9, [x9, _XTYPE_XBOX@GOTPAGEOFF]
LBB0_19:
	ldr	x9, [x9]
	str	x9, [x20]
Lloh35:
	adrp	x10, _dpad_to_buttons@GOTPAGE
Lloh36:
	ldr	x10, [x10, _dpad_to_buttons@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	cbz	x10, LBB0_21
; %bb.20:
Lloh38:
	adrp	x10, _MAP_DPAD_TO_BUTTONS@GOTPAGE
Lloh39:
	ldr	x10, [x10, _MAP_DPAD_TO_BUTTONS@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	ldr	w11, [x20, #24]
	orr	w10, w11, w10
	str	w10, [x20, #24]
LBB0_21:
Lloh41:
	adrp	x10, _triggers_to_buttons@GOTPAGE
Lloh42:
	ldr	x10, [x10, _triggers_to_buttons@GOTPAGEOFF]
Lloh43:
	ldr	x10, [x10]
	cbz	x10, LBB0_23
; %bb.22:
Lloh44:
	adrp	x10, _MAP_TRIGGERS_TO_BUTTONS@GOTPAGE
Lloh45:
	ldr	x10, [x10, _MAP_TRIGGERS_TO_BUTTONS@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	ldr	w11, [x20, #24]
	orr	w10, w11, w10
	str	w10, [x20, #24]
LBB0_23:
Lloh47:
	adrp	x10, _sticks_to_null@GOTPAGE
Lloh48:
	ldr	x10, [x10, _sticks_to_null@GOTPAGEOFF]
Lloh49:
	ldr	x10, [x10]
	cbz	x10, LBB0_25
; %bb.24:
Lloh50:
	adrp	x10, _MAP_STICKS_TO_NULL@GOTPAGE
Lloh51:
	ldr	x10, [x10, _MAP_STICKS_TO_NULL@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	ldr	w11, [x20, #24]
	orr	w10, w11, w10
	str	w10, [x20, #24]
LBB0_25:
	ldr	x10, [x8]
	ldr	x8, [x21]
	cmp	x9, x10
	b.ne	LBB0_27
; %bb.26:
	ldr	x9, [x8, #32]
	cbnz	x9, LBB0_38
LBB0_27:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_usb_endpoint_xfer_int
	cbz	x0, LBB0_29
; %bb.28:
	mov	x0, x22
	bl	_usb_endpoint_dir_in
	cmp	x0, #0
	csel	x25, xzr, x22, eq
	csel	x22, x22, xzr, eq
	b	LBB0_30
LBB0_29:
	mov	x25, #0
	mov	x22, #0
LBB0_30:
	ldr	x8, [x21]
	ldr	x8, [x8]
	add	x23, x8, #8
	mov	x0, x23
	bl	_usb_endpoint_xfer_int
	cbz	x0, LBB0_32
; %bb.31:
	mov	x0, x23
	bl	_usb_endpoint_dir_in
	cmp	x0, #0
	csel	x25, x25, x23, eq
	csel	x22, x23, x22, eq
LBB0_32:
	cbz	x25, LBB0_38
; %bb.33:
	cbz	x22, LBB0_38
; %bb.34:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_xpad_init_output
	mov	x22, x0
	cbnz	w0, LBB0_39
; %bb.35:
	ldr	x22, [x20, #16]
	ldr	w1, [x25, #4]
	mov	x0, x19
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	w3, [x20, #12]
	ldr	w4, [x24]
Lloh53:
	adrp	x8, _xpad_irq_in@GOTPAGE
Lloh54:
	ldr	x8, [x8, _xpad_irq_in@GOTPAGEOFF]
Lloh55:
	ldr	w5, [x8]
	ldr	w7, [x25]
	mov	x0, x22
	mov	x1, x19
	mov	x6, x20
	bl	_usb_fill_int_urb
	ldr	w8, [x20, #8]
Lloh56:
	adrp	x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh57:
	ldr	x9, [x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
	ldr	x10, [x20, #16]
Lloh58:
	ldr	w9, [x9]
	ldr	w11, [x10]
	orr	w9, w11, w9
	stp	w9, w8, [x10]
	mov	x0, x21
	mov	x1, x20
	bl	_usb_set_intfdata
	ldr	x8, [x20]
Lloh59:
	adrp	x9, _XTYPE_XBOX360W@GOTPAGE
Lloh60:
	ldr	x9, [x9, _XTYPE_XBOX360W@GOTPAGEOFF]
Lloh61:
	ldr	x9, [x9]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_43
; %bb.36:
	bl	_xpad360w_start_input
	mov	x22, x0
	cbnz	w0, LBB0_44
; %bb.37:
Lloh62:
	adrp	x8, _USB_QUIRK_RESET_RESUME@GOTPAGE
Lloh63:
	ldr	x8, [x8, _USB_QUIRK_RESET_RESUME@GOTPAGEOFF]
Lloh64:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_42
LBB0_38:
Lloh65:
	adrp	x8, _ENODEV@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_39:
	ldr	x0, [x20, #16]
	bl	_usb_free_urb
LBB0_40:
	ldr	w1, [x24]
	ldp	w3, w2, [x20, #8]
	mov	x0, x19
	bl	_usb_free_coherent
LBB0_41:
	mov	x0, x20
	bl	_kfree
LBB0_42:
	mov	x0, x22
	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_43:
	bl	_xpad_init_input
	mov	x22, x0
	cbz	w0, LBB0_42
LBB0_44:
	mov	x0, x20
	bl	_xpad_deinit_output
	b	LBB0_39
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_xpad_device,8,3                ; @xpad_device
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/input0"

	.comm	_XPAD_PKT_LEN,4,2               ; @XPAD_PKT_LEN
	.comm	_xpad_presence_work,4,2         ; @xpad_presence_work
	.comm	_XTYPE_UNKNOWN,8,3              ; @XTYPE_UNKNOWN
	.comm	_USB_CLASS_VENDOR_SPEC,8,3      ; @USB_CLASS_VENDOR_SPEC
	.comm	_XTYPE_XBOX360W,8,3             ; @XTYPE_XBOX360W
	.comm	_XTYPE_XBOXONE,8,3              ; @XTYPE_XBOXONE
	.comm	_XTYPE_XBOX360,8,3              ; @XTYPE_XBOX360
	.comm	_XTYPE_XBOX,8,3                 ; @XTYPE_XBOX
	.comm	_dpad_to_buttons,8,3            ; @dpad_to_buttons
	.comm	_MAP_DPAD_TO_BUTTONS,4,2        ; @MAP_DPAD_TO_BUTTONS
	.comm	_triggers_to_buttons,8,3        ; @triggers_to_buttons
	.comm	_MAP_TRIGGERS_TO_BUTTONS,4,2    ; @MAP_TRIGGERS_TO_BUTTONS
	.comm	_sticks_to_null,8,3             ; @sticks_to_null
	.comm	_MAP_STICKS_TO_NULL,4,2         ; @MAP_STICKS_TO_NULL
	.comm	_xpad_irq_in,4,2                ; @xpad_irq_in
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_USB_QUIRK_RESET_RESUME,4,2     ; @USB_QUIRK_RESET_RESUME
	.no_dead_strip	_xpad_probe
.subsections_via_symbols
