	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kbtab_probe
_kbtab_probe:                           ## @kbtab_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, %r15
	xorl	%r14d, %r14d
	movq	8(%r12), %rax
	cmpl	$0, 8(%rax)
	jle	LBB0_10
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r14d
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_int_in
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_9
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.4:
	movl	(%r13), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	movq	%r15, %rcx
	callq	_usb_alloc_coherent
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	(%r13), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r12, 32(%r15)
	movq	%rbx, 16(%r15)
	movl	24(%r15), %esi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_usb_make_path
	movl	24(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strlcat
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rbx)
	movl	24(%r15), %eax
	movl	%eax, 44(%rbx)
	movq	%rbx, %rsi
	addq	$40, %rsi
	movq	%r14, %rdi
	callq	_usb_to_input_id
	movq	%r12, 32(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_input_set_drvdata
	movq	_kbtab_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_kbtab_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %r14d
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	orl	%r14d, %eax
	movq	8(%rbx), %rcx
	orl	%eax, (%rcx)
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %r14d
	orl	%r13d, %r14d
	movq	16(%rbx), %r13
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_WORD
	orl	%r14d, (%r13,%rax,4)
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %r13d
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_MASK
	movl	%eax, %r14d
	orl	%r13d, %r14d
	movq	16(%rbx), %r13
	movq	_BTN_DIGI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT_WORD
	orl	%r14d, (%r13,%rax,4)
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8192, %ecx                     ## imm = 0x2000
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$5968, %ecx                     ## imm = 0x1750
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_usb_rcvintpipe
	movl	4(%r15), %ecx
	movq	_kbtab_irq@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	(%r13), %r10d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	$8, %r8d
	pushq	%r10
	pushq	%r15
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movl	(%r15), %eax
	movq	8(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	_URB_NO_TRANSFER_DMA_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	movq	16(%r15), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	movl	%eax, %r13d
	movq	8(%r15), %rdi
	callq	_usb_free_urb
	movl	%r13d, %r14d
LBB0_8:
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	callq	_usb_free_coherent
LBB0_9:
	movq	%rbx, %rdi
	callq	_input_free_device
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_13
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_12:
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_usb_set_intfdata
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/input0"

L_.str.1:                               ## @.str.1
	.asciz	"KB Gear Tablet"

	.comm	_kbtab_open,4,2                 ## @kbtab_open
	.comm	_kbtab_close,4,2                ## @kbtab_close
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_TOOL_PEN,4,2               ## @BTN_TOOL_PEN
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_BTN_DIGI,4,2                   ## @BTN_DIGI
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_kbtab_irq,4,2                  ## @kbtab_irq
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ## @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_kbtab_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kbtab_probe
_kbtab_probe:                           ; @kbtab_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, #8]
	ldr	w9, [x8, #8]
	cmp	w9, #0
	b.le	LBB0_9
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x9]
	ldr	x23, [x8]
	mov	x0, x23
	bl	_usb_endpoint_is_int_in
	cbz	w0, LBB0_9
; %bb.2:
	neg	w24, w20
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #40
	bl	_kzalloc
	mov	x20, x0
	bl	_input_allocate_device
	mov	x22, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_8
; %bb.3:
	ldr	w2, [x25]
	mov	x0, x19
	mov	w1, #8
	mov	x3, x20
	bl	_usb_alloc_coherent
	str	w0, [x20, #4]
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x20, #8]
	cbz	x0, LBB0_7
; %bb.5:
	str	x21, [x20, #32]
	str	x22, [x20, #16]
	ldr	w1, [x20, #24]
	mov	x0, x19
	mov	w2, #4
	bl	_usb_make_path
	ldr	w0, [x20, #24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strlcat
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x22]
	ldr	w8, [x20, #24]
	str	w8, [x22, #44]
	add	x1, x22, #40
	mov	x0, x19
	bl	_usb_to_input_id
	str	x21, [x22, #32]
	mov	x0, x22
	mov	x1, x20
	bl	_input_set_drvdata
Lloh9:
	adrp	x8, _kbtab_open@GOTPAGE
Lloh10:
	ldr	x8, [x8, _kbtab_open@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _kbtab_close@GOTPAGE
Lloh13:
	ldr	x9, [x9, _kbtab_close@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #24]
Lloh15:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x24, x0
Lloh18:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w8, w0, w24
	ldr	x9, [x22, #8]
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x9]
Lloh21:
	adrp	x25, _BTN_LEFT@GOTPAGE
Lloh22:
	ldr	x25, [x25, _BTN_LEFT@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_BIT_MASK
	mov	x24, x0
Lloh23:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w24, w0, w24
	ldr	x26, [x22, #16]
	ldr	w0, [x25]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x26, x8]
	orr	w9, w24, w9
	str	w9, [x26, x8]
Lloh26:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x24, x0
Lloh29:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w24, w0, w24
	ldr	x25, [x22, #16]
Lloh32:
	adrp	x8, _BTN_DIGI@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BTN_DIGI@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_BIT_WORD
	lsl	x8, x0, #2
	ldr	w9, [x25, x8]
	orr	w9, w24, w9
	str	w9, [x25, x8]
Lloh35:
	adrp	x8, _ABS_X@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w3, #8192
	mov	w4, #4
	mov	w5, #0
	bl	_input_set_abs_params
Lloh38:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w3, #5968
	mov	w4, #4
	mov	w5, #0
	bl	_input_set_abs_params
Lloh41:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x24, [x20, #8]
	ldr	w1, [x23, #4]
	mov	x0, x19
	bl	_usb_rcvintpipe
	mov	x2, x0
	ldr	w3, [x20, #4]
Lloh44:
	adrp	x8, _kbtab_irq@GOTPAGE
Lloh45:
	ldr	x8, [x8, _kbtab_irq@GOTPAGEOFF]
Lloh46:
	ldr	w5, [x8]
	ldr	w7, [x23]
	mov	x0, x24
	mov	x1, x19
	mov	w4, #8
	mov	x6, x20
	bl	_usb_fill_int_urb
	ldr	w8, [x20]
Lloh47:
	adrp	x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGE
Lloh48:
	ldr	x9, [x9, _URB_NO_TRANSFER_DMA_MAP@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	ldp	x10, x0, [x20, #8]
	ldr	w11, [x10]
	orr	w9, w11, w9
	stp	w9, w8, [x10]
	bl	_input_register_device
	mov	x24, x0
	cbz	w0, LBB0_11
; %bb.6:
	ldr	x0, [x20, #8]
	bl	_usb_free_urb
LBB0_7:
	ldp	w3, w2, [x20]
	mov	x0, x19
	mov	w1, #8
	bl	_usb_free_coherent
LBB0_8:
	mov	x0, x22
	bl	_input_free_device
	mov	x0, x20
	bl	_kfree
	b	LBB0_10
LBB0_9:
Lloh50:
	adrp	x8, _ENODEV@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	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_11:
	mov	x0, x21
	mov	x1, x20
	bl	_usb_set_intfdata
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/input0"

l_.str.1:                               ; @.str.1
	.asciz	"KB Gear Tablet"

	.comm	_kbtab_open,4,2                 ; @kbtab_open
	.comm	_kbtab_close,4,2                ; @kbtab_close
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_TOOL_PEN,4,2               ; @BTN_TOOL_PEN
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_BTN_DIGI,4,2                   ; @BTN_DIGI
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_kbtab_irq,4,2                  ; @kbtab_irq
	.comm	_URB_NO_TRANSFER_DMA_MAP,4,2    ; @URB_NO_TRANSFER_DMA_MAP
	.no_dead_strip	_kbtab_probe
.subsections_via_symbols
