	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyspan_probe
_keyspan_probe:                         ## @keyspan_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, %r12
	callq	_interface_to_usbdev
	movq	%rax, %rbx
	movl	4(%r12), %edi
	callq	_keyspan_get_in_endpoint
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$72, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%r15, %r15
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rbx, 32(%r15)
	movq	%rax, 24(%r15)
	movq	%r12, 64(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%r15)
	movl	$-1, (%r15)
	movq	_RECV_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r15, %rcx
	addq	$4, %rcx
	movq	%rbx, %rdi
	callq	_usb_alloc_coherent
	movl	%eax, 8(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	(%r13), %esi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_keyspan_setup
	testl	%eax, %eax
	je	LBB0_15
## %bb.12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_28
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_5:
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_15:
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:
	movl	52(%r15), %edi
	movl	$4, %edx
	callq	_strlcpy
LBB0_17:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.18:
	cmpq	$0, 16(%rbx)
	je	LBB0_20
## %bb.19:
	movl	52(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movq	(%rbx), %rsi
LBB0_20:
	movl	52(%r15), %edi
	movl	$4, %edx
	callq	_strlcat
LBB0_21:
	movl	52(%r15), %edi
	callq	_strlen
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movl	52(%r15), %r13d
	movl	12(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %edi
	movl	$4, %esi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_snprintf
LBB0_23:
	movl	48(%r15), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_usb_make_path
	movl	48(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	movq	40(%r15), %rdi
	movq	_keyspan_key_table@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	52(%r15), %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, 48(%r13)
	movl	48(%r15), %eax
	movl	%eax, 44(%r13)
	movq	%r13, %rsi
	addq	$40, %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_usb_to_input_id
	movq	%r12, 32(%r13)
	movq	40(%r15), %rdi
	movq	%rdi, 24(%r13)
	movl	$2, (%r13)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r13)
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_input_set_capability
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r13), %esi
	callq	___set_bit
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_26
## %bb.24:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	movl	16(%r13), %esi
	callq	___set_bit
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_25
LBB0_26:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r13), %esi
	callq	___clear_bit
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	_keyspan_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_keyspan_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	16(%r15), %r13
	movq	32(%r15), %r14
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_usb_rcvintpipe
	movl	8(%r15), %ecx
	movq	_RECV_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_keyspan_irq_recv@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	(%rbx), %ebx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	pushq	%rbx
	pushq	%r15
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	4(%r15), %eax
	movq	16(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	movq	24(%r15), %rdi
	callq	_input_register_device
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_27
LBB0_13:
	movq	16(%r15), %rdi
	callq	_usb_free_urb
LBB0_14:
	movq	_RECV_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %ecx
	movl	8(%r15), %edx
	movq	%rbx, %rdi
	callq	_usb_free_coherent
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_input_free_device
LBB0_28:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_usb_set_intfdata
	xorl	%r14d, %r14d
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RECV_SIZE,4,2                  ## @RECV_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" "

L_.str.1:                               ## @.str.1
	.asciz	"USB Keyspan Remote %04x:%04x"

L_.str.2:                               ## @.str.2
	.asciz	"/input0"

	.comm	_keyspan_key_table,8,3          ## @keyspan_key_table
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_keyspan_open,4,2               ## @keyspan_open
	.comm	_keyspan_close,4,2              ## @keyspan_close
	.comm	_keyspan_irq_recv,4,2           ## @keyspan_irq_recv
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_keyspan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyspan_probe
_keyspan_probe:                         ; @keyspan_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	x22, x0
	bl	_interface_to_usbdev
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	_keyspan_get_in_endpoint
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #72
	bl	_kzalloc
	mov	x19, x0
	bl	_input_allocate_device
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_6
; %bb.2:
	stp	x20, x21, [x19, #24]
	stp	x23, x22, [x19, #56]
	mov	w8, #-1
	str	w8, [x19]
Lloh2:
	adrp	x26, _RECV_SIZE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RECV_SIZE@GOTPAGEOFF]
	ldr	w1, [x26]
	ldr	w2, [x24]
	add	x3, x19, #4
	mov	x0, x21
	bl	_usb_alloc_coherent
	str	w0, [x19, #8]
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w1, [x24]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x21
	bl	_keyspan_setup
	cbz	w0, LBB0_9
; %bb.5:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_21
LBB0_6:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_23
LBB0_7:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_24
LBB0_8:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_22
LBB0_9:
	ldr	x1, [x21, #16]
	cbz	x1, LBB0_11
; %bb.10:
	ldr	w0, [x19, #52]
	mov	w2, #4
	bl	_strlcpy
LBB0_11:
	ldr	x1, [x21]
	cbz	x1, LBB0_15
; %bb.12:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x19, #52]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	ldr	x1, [x21]
LBB0_14:
	ldr	w0, [x19, #52]
	mov	w2, #4
	bl	_strlcat
LBB0_15:
	ldr	w0, [x19, #52]
	bl	_strlen
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	w24, [x19, #52]
	ldr	w0, [x21, #12]
	bl	_le16_to_cpu
	mov	x25, x0
	ldr	w0, [x21, #8]
	bl	_le16_to_cpu
	mov	x4, x0
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	w1, #4
	mov	x3, x25
	bl	_snprintf
LBB0_17:
	ldr	w1, [x19, #48]
	mov	x0, x21
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x19, #48]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strlcat
	ldr	x0, [x19, #40]
Lloh22:
	adrp	x24, _keyspan_key_table@GOTPAGE
Lloh23:
	ldr	x24, [x24, _keyspan_key_table@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	w2, #8
	bl	_memcpy
	ldr	d0, [x19, #48]
	stur	d0, [x20, #44]
	add	x1, x20, #40
	mov	x0, x21
	bl	_usb_to_input_id
	ldr	x0, [x19, #40]
	stp	x0, x22, [x20, #24]
	mov	w8, #2
	str	w8, [x20]
	bl	_ARRAY_SIZE
	str	w0, [x20, #4]
Lloh24:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_set_capability
Lloh30:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x20, #20]
	bl	___set_bit
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_20
; %bb.18:
	mov	x25, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x25, lsl #2]
	ldr	w1, [x20, #16]
	bl	___set_bit
	add	x25, x25, #1
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.lt	LBB0_19
LBB0_20:
Lloh33:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	___clear_bit
	mov	x0, x20
	mov	x1, x19
	bl	_input_set_drvdata
Lloh36:
	adrp	x8, _keyspan_open@GOTPAGE
Lloh37:
	ldr	x8, [x8, _keyspan_open@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _keyspan_close@GOTPAGE
Lloh40:
	ldr	x9, [x9, _keyspan_close@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	ldr	x24, [x19, #16]
	ldr	x25, [x19, #32]
	ldr	w1, [x23, #4]
	mov	x0, x25
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	w3, [x19, #8]
	ldr	w4, [x26]
Lloh42:
	adrp	x8, _keyspan_irq_recv@GOTPAGE
Lloh43:
	ldr	x8, [x8, _keyspan_irq_recv@GOTPAGEOFF]
Lloh44:
	ldr	w5, [x8]
	ldr	w7, [x23]
	mov	x0, x24
	mov	x1, x25
	mov	x6, x19
	bl	_usb_fill_int_urb
	ldr	w8, [x19, #4]
Lloh45:
	adrp	x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh46:
	ldr	x9, [x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	ldp	x10, x0, [x19, #16]
	ldr	w11, [x10]
	orr	w9, w11, w9
	stp	w9, w8, [x10]
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_25
LBB0_21:
	ldr	x0, [x19, #16]
	bl	_usb_free_urb
LBB0_22:
	ldr	w1, [x26]
	ldp	w3, w2, [x19, #4]
	mov	x0, x21
	bl	_usb_free_coherent
LBB0_23:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_input_free_device
LBB0_24:
	mov	x0, x23
	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_25:
	mov	x0, x22
	mov	x1, x19
	bl	_usb_set_intfdata
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RECV_SIZE,4,2                  ; @RECV_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" "

l_.str.1:                               ; @.str.1
	.asciz	"USB Keyspan Remote %04x:%04x"

l_.str.2:                               ; @.str.2
	.asciz	"/input0"

	.comm	_keyspan_key_table,8,3          ; @keyspan_key_table
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_keyspan_open,4,2               ; @keyspan_open
	.comm	_keyspan_close,4,2              ; @keyspan_close
	.comm	_keyspan_irq_recv,4,2           ; @keyspan_irq_recv
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_keyspan_probe
.subsections_via_symbols
