	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbhid_probe
_usbhid_probe:                          ## @usbhid_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, %r13
	movq	8(%rdi), %r12
	callq	_interface_to_usbdev
	movq	%rax, %rbx
	movq	(%r13), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	addq	%rbx, %rdi
	callq	_usb_endpoint_is_int_in
	cmpq	$1, %rax
	sbbl	$-1, %r14d
	incq	%r15
	movl	(%r12), %eax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jb	LBB0_2
## %bb.3:
	testl	%r14d, %r14d
	movq	%r13, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_hid_allocate_device
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.31:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_hid_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_30:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_usb_set_intfdata
	movq	_usb_hid_driver@GOTPCREL(%rip), %rax
	movq	%rax, 88(%r14)
	movq	_hid_pidff_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r14)
	leaq	16(%r13), %rax
	movq	%rax, 56(%r14)
	movq	_BUS_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movl	16(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r14)
	movl	12(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 4(%r14)
	movl	20(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, 8(%r14)
	movq	40(%r14), %rdi
	movq	$0, (%rdi)
	movq	8(%r13), %rax
	movq	8(%rax), %rax
	movq	_USB_INTERFACE_PROTOCOL_MOUSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_HID_TYPE_USBMOUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	_HID_TYPE_USBNONE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
LBB0_11:
	movq	24(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:
	movl	$8, %edx
	callq	_strlcpy
LBB0_13:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.14:
	cmpq	$0, 24(%r15)
	je	LBB0_16
## %bb.15:
	movq	40(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$8, %edx
	callq	_strlcat
	movq	(%r15), %rsi
LBB0_16:
	movq	40(%r14), %rdi
	movl	$8, %edx
	callq	_strlcat
LBB0_17:
	movq	40(%r14), %rbx
	cmpb	$0, (%rbx)
	jne	LBB0_19
## %bb.18:
	movl	16(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r15), %edi
	callq	_le16_to_cpu
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_snprintf
LBB0_19:
	movq	32(%r14), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_usb_make_path
	movq	32(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$8, %edx
	callq	_strlcat
	movq	32(%r14), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cmpq	$6, %rax
	ja	LBB0_21
## %bb.20:
	leaq	(%rbx,%rax,8), %rdi
	movl	$8, %esi
	subl	%eax, %esi
	movq	(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
LBB0_21:
	movl	8(%r15), %esi
	movq	24(%r14), %rdx
	movq	%r15, %rdi
	movl	$64, %ecx
	callq	_usb_string
	testq	%rax, %rax
	jg	LBB0_23
## %bb.22:
	movq	24(%r14), %rax
	movq	$0, (%rax)
LBB0_23:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	movq	%rax, %r15
	movq	%rax, 16(%r14)
	movq	%r14, 32(%rax)
	movq	%r13, 24(%rax)
	movl	16(%r12), %eax
	movl	%eax, 16(%r15)
	leaq	12(%r15), %rdi
	callq	_init_waitqueue_head
	leaq	8(%r15), %rdi
	movq	_hid_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	%r15, %rdi
	addq	$4, %rdi
	movq	_hid_retry_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_timer_setup
	movq	%r15, %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	callq	_hid_add_device
	testl	%eax, %eax
	je	LBB0_30
## %bb.26:
	movl	%eax, %r12d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_hid_err
LBB0_28:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_29
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_29:
	movq	%r14, %rdi
	callq	_hid_destroy_device
	movl	%r12d, %ebx
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HID probe called for ifnum %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't find an input interrupt endpoint\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_usb_hid_driver,4,2             ## @usb_hid_driver
	.comm	_hid_pidff_init,4,2             ## @hid_pidff_init
	.comm	_BUS_USB,4,2                    ## @BUS_USB
	.comm	_USB_INTERFACE_PROTOCOL_MOUSE,8,3 ## @USB_INTERFACE_PROTOCOL_MOUSE
	.comm	_HID_TYPE_USBMOUSE,4,2          ## @HID_TYPE_USBMOUSE
	.comm	_HID_TYPE_USBNONE,4,2           ## @HID_TYPE_USBNONE
L_.str.2:                               ## @.str.2
	.asciz	" "

L_.str.3:                               ## @.str.3
	.asciz	"HID %04x:%04x"

L_.str.4:                               ## @.str.4
	.asciz	"/input"

L_.str.5:                               ## @.str.5
	.asciz	"%d"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hid_reset,4,2                  ## @hid_reset
	.comm	_hid_retry_timeout,4,2          ## @hid_retry_timeout
L_.str.6:                               ## @.str.6
	.asciz	"can't add hid device: %d\n"

	.comm	_hiddev_connect,4,2             ## @hiddev_connect
	.comm	_hiddev_disconnect,4,2          ## @hiddev_disconnect
	.comm	_hiddev_hid_event,4,2           ## @hiddev_hid_event
	.comm	_hiddev_report_event,4,2        ## @hiddev_report_event
	.no_dead_strip	_usbhid_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbhid_probe
_usbhid_probe:                          ; @usbhid_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x24, [x0, #8]
	bl	_interface_to_usbdev
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	ldr	w8, [x24]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, #0
	mov	x23, #0
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #24]
	add	x0, x8, x20
	bl	_usb_endpoint_is_int_in
	cmp	x0, #0
	cinc	w22, w22, ne
	add	x23, x23, #1
	ldr	w8, [x24]
	add	x20, x20, #4
	cmp	x23, x8
	b.lo	LBB0_2
; %bb.3:
	cbz	w22, LBB0_6
; %bb.4:
	bl	_hid_allocate_device
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_6:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hid_err
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_usb_set_intfdata
Lloh7:
	adrp	x8, _usb_hid_driver@GOTPAGE
Lloh8:
	ldr	x8, [x8, _usb_hid_driver@GOTPAGEOFF]
	str	x8, [x20, #88]
Lloh9:
	adrp	x8, _hid_pidff_init@GOTPAGE
Lloh10:
	ldr	x8, [x8, _hid_pidff_init@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #80]
	add	x8, x19, #16
	str	x8, [x20, #56]
Lloh12:
	adrp	x8, _BUS_USB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BUS_USB@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x20, #52]
	ldr	w0, [x21, #16]
	bl	_le16_to_cpu
	str	w0, [x20]
	ldr	w0, [x21, #12]
	bl	_le16_to_cpu
	str	w0, [x20, #4]
	ldr	w0, [x21, #20]
	bl	_le16_to_cpu
	str	w0, [x20, #8]
	ldr	x0, [x20, #40]
	str	xzr, [x0]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
Lloh15:
	adrp	x9, _USB_INTERFACE_PROTOCOL_MOUSE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _USB_INTERFACE_PROTOCOL_MOUSE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh18:
	adrp	x8, _HID_TYPE_USBMOUSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HID_TYPE_USBMOUSE@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
	cbnz	x8, LBB0_13
; %bb.11:
Lloh20:
	adrp	x8, _HID_TYPE_USBNONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HID_TYPE_USBNONE@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x20, #48]
LBB0_13:
	ldr	x1, [x21, #24]
	cbz	x1, LBB0_15
; %bb.14:
	mov	w2, #8
	bl	_strlcpy
LBB0_15:
	ldr	x1, [x21]
	cbz	x1, LBB0_19
; %bb.16:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x0, [x20, #40]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #8
	bl	_strlcat
	ldr	x1, [x21]
LBB0_18:
	ldr	x0, [x20, #40]
	mov	w2, #8
	bl	_strlcat
LBB0_19:
	ldr	x22, [x20, #40]
	ldrb	w8, [x22]
	cbnz	w8, LBB0_21
; %bb.20:
	ldr	w0, [x21, #16]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x21, #12]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	w1, #8
	mov	x3, x23
	bl	_snprintf
LBB0_21:
	ldr	x1, [x20, #32]
	mov	w23, #8
	mov	x0, x21
	mov	w2, #8
	bl	_usb_make_path
	ldr	x0, [x20, #32]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #8
	bl	_strlcat
	ldr	x22, [x20, #32]
	mov	x0, x22
	bl	_strlen
	cmp	x0, #6
	b.hi	LBB0_23
; %bb.22:
	add	x8, x22, x0, lsl #3
	sub	w1, w23, w0
	ldr	x9, [x19]
	ldr	w3, [x9]
Lloh28:
	adrp	x2, l_.str.5@PAGE
Lloh29:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x8
	bl	_snprintf
LBB0_23:
	ldr	w1, [x21, #8]
	ldr	x2, [x20, #24]
	mov	x0, x21
	mov	w3, #64
	bl	_usb_string
	cmp	x0, #0
	b.gt	LBB0_25
; %bb.24:
	ldr	x8, [x20, #24]
	str	xzr, [x8]
LBB0_25:
Lloh30:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_30
; %bb.26:
	mov	x21, x0
	str	x0, [x20, #16]
	stp	x19, x20, [x0, #24]
	ldr	w8, [x24, #16]
	str	w8, [x0, #16]
	add	x0, x0, #12
	bl	_init_waitqueue_head
	add	x0, x21, #8
Lloh33:
	adrp	x8, _hid_reset@GOTPAGE
Lloh34:
	ldr	x8, [x8, _hid_reset@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x21, #4
Lloh36:
	adrp	x8, _hid_retry_timeout@GOTPAGE
Lloh37:
	ldr	x8, [x8, _hid_retry_timeout@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_timer_setup
	mov	x0, x21
	bl	_spin_lock_init
	mov	x0, x20
	bl	_hid_add_device
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.27:
Lloh39:
	adrp	x8, _ENODEV@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cmn	w22, w8
	b.eq	LBB0_29
; %bb.28:
	str	x22, [sp]
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_hid_err
LBB0_29:
	mov	x0, x21
	bl	_kfree
	b	LBB0_31
LBB0_30:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_31:
	mov	x0, x20
	bl	_hid_destroy_device
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HID probe called for ifnum %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't find an input interrupt endpoint\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_usb_hid_driver,4,2             ; @usb_hid_driver
	.comm	_hid_pidff_init,4,2             ; @hid_pidff_init
	.comm	_BUS_USB,4,2                    ; @BUS_USB
	.comm	_USB_INTERFACE_PROTOCOL_MOUSE,8,3 ; @USB_INTERFACE_PROTOCOL_MOUSE
	.comm	_HID_TYPE_USBMOUSE,4,2          ; @HID_TYPE_USBMOUSE
	.comm	_HID_TYPE_USBNONE,4,2           ; @HID_TYPE_USBNONE
l_.str.2:                               ; @.str.2
	.asciz	" "

l_.str.3:                               ; @.str.3
	.asciz	"HID %04x:%04x"

l_.str.4:                               ; @.str.4
	.asciz	"/input"

l_.str.5:                               ; @.str.5
	.asciz	"%d"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hid_reset,4,2                  ; @hid_reset
	.comm	_hid_retry_timeout,4,2          ; @hid_retry_timeout
l_.str.6:                               ; @.str.6
	.asciz	"can't add hid device: %d\n"

	.comm	_hiddev_connect,4,2             ; @hiddev_connect
	.comm	_hiddev_disconnect,4,2          ; @hiddev_disconnect
	.comm	_hiddev_hid_event,4,2           ; @hiddev_hid_event
	.comm	_hiddev_report_event,4,2        ; @hiddev_report_event
	.no_dead_strip	_usbhid_probe
.subsections_via_symbols
