	.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, -56(%rbp)                 ## 8-byte Spill
	callq	_interface_to_usbdev
	movq	%rax, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	movq	_xpad_device@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	subl	(%rax), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	$0, 40(%rcx,%rbx)
	leaq	40(%rbx), %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	movq	(%r15), %rcx
	cmpq	(%rcx,%rbx), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	callq	_le16_to_cpu
	movq	(%r15), %rcx
	cmpq	8(%rcx,%rbx), %rax
	jne	LBB0_4
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_57
## %bb.6:
	testq	%r13, %r13
	je	LBB0_57
## %bb.7:
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	addq	$24, %rcx
	movq	%r12, %rdi
	callq	_usb_buffer_alloc
	movl	%eax, 28(%rbx)
	testl	%eax, %eax
	je	LBB0_57
## %bb.8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_56
## %bb.9:
	movl	%r14d, %eax
	movq	%r12, 48(%rbx)
	movq	(%r15), %rcx
	leaq	(%rax,%rax,4), %r14
	movl	16(%rcx,%r14,8), %edx
	movl	%edx, (%rbx)
	movq	24(%rcx,%r14,8), %rax
	movq	%rax, 8(%rbx)
	movq	_MAP_DPAD_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jne	LBB0_11
## %bb.10:
	movq	_dpad_to_buttons@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	$0, (%rcx)
	sete	%dl
	movl	%edx, (%rbx)
LBB0_11:
	movq	_XTYPE_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	_USB_CLASS_VENDOR_SPEC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.14:
	cmpl	$129, 16(%rax)
	jne	LBB0_15
## %bb.16:
	movq	_XTYPE_XBOX360W@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_13:
	movq	_XTYPE_XBOX@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_XTYPE_XBOX360@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_18:
	movq	%r13, 56(%rbx)
	movl	64(%rbx), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_usb_make_path
	movl	64(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movq	(%r15), %rax
	movl	32(%rax,%r14,8), %eax
	movl	%eax, 40(%r13)
	movl	64(%rbx), %eax
	movl	%eax, 36(%r13)
	movq	%r13, %rsi
	addq	$32, %rsi
	movq	%r12, %rdi
	callq	_usb_to_input_id
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, 24(%r13)
	movq	%r13, %rdi
	movq	%rbx, %r15
	movq	%rbx, %rsi
	callq	_input_set_drvdata
	movq	_xpad_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	_xpad_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %ebx
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	orl	%ebx, %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	movq	_xpad_common_btn@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_21
## %bb.19:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %esi
	callq	_set_bit
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jns	LBB0_20
LBB0_21:
	movq	8(%r15), %rax
	movq	_XTYPE_XBOX360@GOTPCREL(%rip), %rcx
	movq	_XTYPE_XBOX360W@GOTPCREL(%rip), %rdx
	cmpq	(%rcx), %rax
	je	LBB0_26
## %bb.22:
	cmpq	(%rdx), %rax
	je	LBB0_26
## %bb.23:
	movq	_xpad_btn@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_29
## %bb.24:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %esi
	callq	_set_bit
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jns	LBB0_25
	jmp	LBB0_29
LBB0_26:
	movq	_xpad360_btn@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_29
## %bb.27:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %esi
	callq	_set_bit
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jns	LBB0_28
LBB0_29:
	movl	(%r15), %eax
	movq	_MAP_DPAD_TO_BUTTONS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_33
## %bb.30:
	movq	_xpad_btn_pad@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	js	LBB0_33
## %bb.31:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %esi
	callq	_set_bit
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jns	LBB0_32
LBB0_33:
	movq	_xpad_abs@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	js	LBB0_36
## %bb.34:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_xpad_set_up_abs
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jns	LBB0_35
LBB0_36:
	movl	(%r15), %eax
	movq	_MAP_DPAD_TO_AXES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_40
## %bb.37:
	movq	_xpad_abs_pad@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	js	LBB0_40
## %bb.38:
	movl	$8, %ebx
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_xpad_set_up_abs
	movq	(%r14), %rax
	movq	(%rax,%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	jns	LBB0_39
LBB0_40:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rbx
	movq	%r15, %rsi
	callq	_xpad_init_output
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jne	LBB0_56
## %bb.41:
	movq	%rbx, %rdi
	callq	_xpad_init_ff
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_55
## %bb.42:
	movq	%rbx, %rdi
	callq	_xpad_led_probe
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_55
## %bb.43:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	32(%r15), %r14
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_usb_rcvintpipe
	movl	28(%r15), %ecx
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_xpad_irq_in@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	4(%rbx), %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	pushq	%rbx
	movq	%r15, %rbx
	pushq	%r15
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	24(%r15), %eax
	movq	32(%r15), %rcx
	movl	%eax, 12(%rcx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rcx)
	movq	56(%r15), %rdi
	callq	_input_register_device
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_44
LBB0_54:
	movq	32(%rbx), %rdi
	callq	_usb_free_urb
LBB0_55:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_xpad_deinit_output
LBB0_56:
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	movq	%r12, %rdi
	callq	_usb_buffer_free
LBB0_57:
	movq	%r13, %rdi
	callq	_input_free_device
	movq	%rbx, %rdi
	callq	_kfree
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_58:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_usb_set_intfdata
	movq	8(%rbx), %rdx
	xorl	%eax, %eax
	movq	_XTYPE_XBOX360W@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_58
## %bb.45:
	movq	32(%rbx), %rdi
	movq	48(%rbx), %rax
	movq	%rax, (%rdi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_54
## %bb.46:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_53
## %bb.47:
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_kzalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_52
## %bb.48:
	movl	$8, 8(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movslq	20(%rcx), %rdx
	cmpq	$6, %rdx
	ja	LBB0_51
## %bb.49:
	movl	$85, %esi
	btl	%edx, %esi
	jae	LBB0_51
## %bb.50:
	leaq	l_switch.table.xpad_probe(%rip), %rsi
	movl	(%rsi,%rdx,4), %edx
	movl	%edx, 12(%rax)
LBB0_51:
	movq	(%rcx), %rax
	movq	40(%rbx), %r14
	movl	8(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_sndbulkpipe
	movq	16(%rbx), %rcx
	movq	_XPAD_PKT_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_xpad_bulk_out@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	pushq	%rbx
	callq	_usb_fill_bulk_urb
	addq	$16, %rsp
	xorl	%eax, %eax
	jmp	LBB0_58
LBB0_52:
	movq	40(%rbx), %rdi
	callq	_usb_free_urb
LBB0_53:
	movq	32(%rbx), %rdi
	callq	_usb_kill_urb
	xorl	%r14d, %r14d
	jmp	LBB0_54
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_xpad_device,8,3                ## @xpad_device
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_XPAD_PKT_LEN,4,2               ## @XPAD_PKT_LEN
	.comm	_MAP_DPAD_UNKNOWN,4,2           ## @MAP_DPAD_UNKNOWN
	.comm	_dpad_to_buttons,4,2            ## @dpad_to_buttons
	.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_XBOX360,8,3              ## @XTYPE_XBOX360
	.comm	_XTYPE_XBOX,8,3                 ## @XTYPE_XBOX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/input0"

	.comm	_xpad_open,4,2                  ## @xpad_open
	.comm	_xpad_close,4,2                 ## @xpad_close
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_xpad_common_btn,8,3            ## @xpad_common_btn
	.comm	_xpad360_btn,8,3                ## @xpad360_btn
	.comm	_xpad_btn,8,3                   ## @xpad_btn
	.comm	_MAP_DPAD_TO_BUTTONS,4,2        ## @MAP_DPAD_TO_BUTTONS
	.comm	_xpad_btn_pad,8,3               ## @xpad_btn_pad
	.comm	_xpad_abs,8,3                   ## @xpad_abs
	.comm	_MAP_DPAD_TO_AXES,4,2           ## @MAP_DPAD_TO_AXES
	.comm	_xpad_abs_pad,8,3               ## @xpad_abs_pad
	.comm	_xpad_irq_in,4,2                ## @xpad_irq_in
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.comm	_xpad_bulk_out,4,2              ## @xpad_bulk_out
	.no_dead_strip	_xpad_probe
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.xpad_probe
l_switch.table.xpad_probe:
	.long	66                              ## 0x42
	.long	66                              ## 0x42
	.long	67                              ## 0x43
	.long	66                              ## 0x42
	.long	68                              ## 0x44
	.long	66                              ## 0x42
	.long	69                              ## 0x45

.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	bl	_interface_to_usbdev
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w23, w8
Lloh3:
	adrp	x27, _xpad_device@GOTPAGE
Lloh4:
	ldr	x27, [x27, _xpad_device@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, #0
	mov	x26, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	add	x8, x8, x20
	ldr	x8, [x8, #40]
	add	x20, x20, #40
	cbz	x8, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	bl	_le16_to_cpu
	ldr	x8, [x27]
	ldr	x9, [x8, x20]
	cmp	x0, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19]
	bl	_le16_to_cpu
	ldr	x8, [x27]
	add	x9, x8, x20
	ldr	x9, [x9, #8]
	cmp	x0, x9
	b.ne	LBB0_2
	b	LBB0_6
LBB0_5:
	mov	x26, #0
LBB0_6:
Lloh5:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #72
	bl	_kzalloc
	mov	x20, x0
	bl	_input_allocate_device
	mov	x22, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_44
; %bb.7:
Lloh7:
	adrp	x24, _XPAD_PKT_LEN@GOTPAGE
Lloh8:
	ldr	x24, [x24, _XPAD_PKT_LEN@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x25]
	add	x3, x20, #24
	mov	x0, x19
	bl	_usb_buffer_alloc
	str	w0, [x20, #28]
	cbz	w0, LBB0_44
; %bb.8:
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x20, #32]
	cbz	x0, LBB0_43
; %bb.9:
	and	x23, x26, #0xffffffff
	str	x19, [x20, #48]
	ldr	x8, [x27]
	mov	w9, #40
	madd	x8, x23, x9, x8
	ldr	w9, [x8, #16]
	str	w9, [x20]
	ldr	x8, [x8, #24]
	str	x8, [x20, #8]
Lloh9:
	adrp	x10, _MAP_DPAD_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAP_DPAD_UNKNOWN@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_11
; %bb.10:
Lloh12:
	adrp	x9, _dpad_to_buttons@GOTPAGE
Lloh13:
	ldr	x9, [x9, _dpad_to_buttons@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x20]
LBB0_11:
Lloh15:
	adrp	x9, _XTYPE_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XTYPE_UNKNOWN@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x28, _XTYPE_XBOX360@GOTPAGE
Lloh19:
	ldr	x28, [x28, _XTYPE_XBOX360@GOTPAGEOFF]
Lloh20:
	adrp	x26, _XTYPE_XBOX360W@GOTPAGE
Lloh21:
	ldr	x26, [x26, _XTYPE_XBOX360W@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.12:
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
Lloh22:
	adrp	x10, _USB_CLASS_VENDOR_SPEC@GOTPAGE
Lloh23:
	ldr	x10, [x10, _USB_CLASS_VENDOR_SPEC@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.13:
	ldr	w8, [x8, #16]
	cmp	w8, #129
	csel	x8, x26, x28, eq
	b	LBB0_15
LBB0_14:
Lloh25:
	adrp	x8, _XTYPE_XBOX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XTYPE_XBOX@GOTPAGEOFF]
LBB0_15:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_16:
	str	x22, [x20, #56]
	ldr	w1, [x20, #64]
	mov	x0, x19
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x20, #64]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	ldr	x8, [x27]
	mov	w9, #40
	madd	x8, x23, x9, x8
	ldr	w8, [x8, #32]
	ldr	w9, [x20, #64]
	stp	w9, w8, [x22, #36]
	add	x1, x22, #32
	mov	x0, x19
	bl	_usb_to_input_id
	add	x8, x21, #8
	str	x8, [x22, #24]
	mov	x0, x22
	mov	x1, x20
	bl	_input_set_drvdata
Lloh29:
	adrp	x8, _xpad_open@GOTPAGE
Lloh30:
	ldr	x8, [x8, _xpad_open@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _xpad_close@GOTPAGE
Lloh33:
	ldr	x9, [x9, _xpad_close@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #12]
Lloh35:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x23, x0
Lloh38:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w8, w0, w23
	ldr	x9, [x22]
	str	w8, [x9]
Lloh41:
	adrp	x23, _xpad_common_btn@GOTPAGE
Lloh42:
	ldr	x23, [x23, _xpad_common_btn@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_19
; %bb.17:
	mov	w27, #8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #8]
	bl	_set_bit
	ldr	x8, [x23]
	ldr	x0, [x8, x27]
	add	x27, x27, #8
	tbz	x0, #63, LBB0_18
LBB0_19:
	ldr	x8, [x20, #8]
	ldr	x9, [x28]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_23
; %bb.20:
Lloh43:
	adrp	x23, _xpad360_btn@GOTPAGE
Lloh44:
	ldr	x23, [x23, _xpad360_btn@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_26
; %bb.21:
	mov	w27, #8
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #8]
	bl	_set_bit
	ldr	x8, [x23]
	ldr	x0, [x8, x27]
	add	x27, x27, #8
	tbz	x0, #63, LBB0_22
	b	LBB0_26
LBB0_23:
Lloh45:
	adrp	x23, _xpad_btn@GOTPAGE
Lloh46:
	ldr	x23, [x23, _xpad_btn@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_26
; %bb.24:
	mov	w27, #8
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #8]
	bl	_set_bit
	ldr	x8, [x23]
	ldr	x0, [x8, x27]
	add	x27, x27, #8
	tbz	x0, #63, LBB0_25
LBB0_26:
	ldr	w8, [x20]
Lloh47:
	adrp	x9, _MAP_DPAD_TO_BUTTONS@GOTPAGE
Lloh48:
	ldr	x9, [x9, _MAP_DPAD_TO_BUTTONS@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_30
; %bb.27:
Lloh50:
	adrp	x23, _xpad_btn_pad@GOTPAGE
Lloh51:
	ldr	x23, [x23, _xpad_btn_pad@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_30
; %bb.28:
	mov	w27, #8
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22, #8]
	bl	_set_bit
	ldr	x8, [x23]
	ldr	x0, [x8, x27]
	add	x27, x27, #8
	tbz	x0, #63, LBB0_29
LBB0_30:
Lloh52:
	adrp	x23, _xpad_abs@GOTPAGE
Lloh53:
	ldr	x23, [x23, _xpad_abs@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x1, [x8]
	tbnz	x1, #63, LBB0_33
; %bb.31:
	mov	w27, #8
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_xpad_set_up_abs
	ldr	x8, [x23]
	ldr	x1, [x8, x27]
	add	x27, x27, #8
	tbz	x1, #63, LBB0_32
LBB0_33:
	ldr	w8, [x20]
Lloh54:
	adrp	x9, _MAP_DPAD_TO_AXES@GOTPAGE
Lloh55:
	ldr	x9, [x9, _MAP_DPAD_TO_AXES@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_37
; %bb.34:
Lloh57:
	adrp	x23, _xpad_abs_pad@GOTPAGE
Lloh58:
	ldr	x23, [x23, _xpad_abs_pad@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x1, [x8]
	tbnz	x1, #63, LBB0_37
; %bb.35:
	mov	w27, #8
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_xpad_set_up_abs
	ldr	x8, [x23]
	ldr	x1, [x8, x27]
	add	x27, x27, #8
	tbz	x1, #63, LBB0_36
LBB0_37:
	mov	x0, x21
	mov	x1, x20
	bl	_xpad_init_output
	mov	x23, x0
	cbnz	w0, LBB0_43
; %bb.38:
	mov	x0, x20
	bl	_xpad_init_ff
	mov	x23, x0
	cbnz	w0, LBB0_42
; %bb.39:
	mov	x0, x20
	bl	_xpad_led_probe
	mov	x23, x0
	cbnz	w0, LBB0_42
; %bb.40:
	ldr	x8, [x21]
	ldr	x27, [x8]
	ldr	x23, [x20, #32]
	ldr	w1, [x27]
	mov	x0, x19
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	w3, [x20, #28]
	ldr	w4, [x24]
Lloh59:
	adrp	x8, _xpad_irq_in@GOTPAGE
Lloh60:
	ldr	x8, [x8, _xpad_irq_in@GOTPAGEOFF]
Lloh61:
	ldr	w5, [x8]
	ldr	w7, [x27, #4]
	mov	x0, x23
	mov	x1, x19
	mov	x6, x20
	bl	_usb_fill_int_urb
	ldr	w8, [x20, #24]
	ldr	x9, [x20, #32]
Lloh62:
	adrp	x10, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh63:
	ldr	x10, [x10, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh64:
	ldr	w10, [x10]
	ldr	w11, [x9, #8]
	orr	w10, w11, w10
	stp	w10, w8, [x9, #8]
	ldr	x0, [x20, #56]
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_46
LBB0_41:
	ldr	x0, [x20, #32]
	bl	_usb_free_urb
LBB0_42:
	mov	x0, x20
	bl	_xpad_deinit_output
LBB0_43:
	ldr	w1, [x24]
	ldp	w3, w2, [x20, #24]
	mov	x0, x19
	bl	_usb_buffer_free
LBB0_44:
	mov	x0, x22
	bl	_input_free_device
	mov	x0, x20
	bl	_kfree
LBB0_45:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_46:
	mov	x0, x21
	mov	x1, x20
	bl	_usb_set_intfdata
	ldr	x8, [x20, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_54
; %bb.47:
	ldr	x8, [x20, #48]
	ldr	x0, [x20, #32]
	str	x8, [x0]
	ldr	w1, [x25]
	bl	_usb_submit_urb
	mov	x23, x0
	cbnz	w0, LBB0_41
; %bb.48:
	ldr	w1, [x25]
	bl	_usb_alloc_urb
	str	x0, [x20, #40]
	cbz	x0, LBB0_56
; %bb.49:
	ldr	w0, [x24]
	ldr	w1, [x25]
	bl	_kzalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_55
; %bb.50:
	mov	w8, #8
	str	w8, [x0, #8]
	ldr	x8, [x21]
	ldrsw	x9, [x8, #20]
	cmp	w9, #6
	b.hi	LBB0_53
; %bb.51:
	mov	w10, #85
	lsr	w10, w10, w9
	tbz	w10, #0, LBB0_53
; %bb.52:
Lloh65:
	adrp	x10, l_switch.table.xpad_probe@PAGE
Lloh66:
	add	x10, x10, l_switch.table.xpad_probe@PAGEOFF
	ldr	w9, [x10, x9, lsl #2]
	str	w9, [x0, #12]
LBB0_53:
	ldr	x8, [x8]
	ldr	x21, [x20, #40]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_usb_sndbulkpipe
	mov	x2, x0
	ldr	x3, [x20, #16]
	ldr	w4, [x24]
Lloh67:
	adrp	x8, _xpad_bulk_out@GOTPAGE
Lloh68:
	ldr	x8, [x8, _xpad_bulk_out@GOTPAGEOFF]
Lloh69:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x6, x20
	bl	_usb_fill_bulk_urb
LBB0_54:
	mov	w23, #0
	b	LBB0_45
LBB0_55:
	ldr	x0, [x20, #40]
	bl	_usb_free_urb
LBB0_56:
	ldr	x0, [x20, #32]
	bl	_usb_kill_urb
	mov	w23, #0
	b	LBB0_41
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_xpad_device,8,3                ; @xpad_device
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_XPAD_PKT_LEN,4,2               ; @XPAD_PKT_LEN
	.comm	_MAP_DPAD_UNKNOWN,4,2           ; @MAP_DPAD_UNKNOWN
	.comm	_dpad_to_buttons,4,2            ; @dpad_to_buttons
	.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_XBOX360,8,3              ; @XTYPE_XBOX360
	.comm	_XTYPE_XBOX,8,3                 ; @XTYPE_XBOX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/input0"

	.comm	_xpad_open,4,2                  ; @xpad_open
	.comm	_xpad_close,4,2                 ; @xpad_close
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_xpad_common_btn,8,3            ; @xpad_common_btn
	.comm	_xpad360_btn,8,3                ; @xpad360_btn
	.comm	_xpad_btn,8,3                   ; @xpad_btn
	.comm	_MAP_DPAD_TO_BUTTONS,4,2        ; @MAP_DPAD_TO_BUTTONS
	.comm	_xpad_btn_pad,8,3               ; @xpad_btn_pad
	.comm	_xpad_abs,8,3                   ; @xpad_abs
	.comm	_MAP_DPAD_TO_AXES,4,2           ; @MAP_DPAD_TO_AXES
	.comm	_xpad_abs_pad,8,3               ; @xpad_abs_pad
	.comm	_xpad_irq_in,4,2                ; @xpad_irq_in
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.comm	_xpad_bulk_out,4,2              ; @xpad_bulk_out
	.no_dead_strip	_xpad_probe
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.xpad_probe
l_switch.table.xpad_probe:
	.long	66                              ; 0x42
	.long	66                              ; 0x42
	.long	67                              ; 0x43
	.long	66                              ; 0x42
	.long	68                              ; 0x44
	.long	66                              ; 0x42
	.long	69                              ; 0x45

.subsections_via_symbols
