	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_i2c_probe
_wacom_i2c_probe:                       ## @wacom_i2c_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
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$0, -48(%rbp)
	movl	8(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_wacom_query_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_device
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:
	movq	%r13, 8(%r14)
	movq	%r15, (%r14)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r15)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	movl	$1386, 40(%r15)                 ## imm = 0x56A
	movl	-52(%rbp), %eax
	movl	%eax, 44(%r15)
	leaq	4(%r13), %r12
	movq	%r12, 32(%r15)
	movq	_wacom_i2c_open@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_wacom_i2c_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	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	8(%r15), %rcx
	orl	%eax, (%rcx)
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOOL_RUBBER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	___set_bit
	movq	_BTN_STYLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	___set_bit
	movq	_BTN_STYLUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	___set_bit
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r15), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-60(%rbp), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-64(%rbp), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movl	(%r13), %edi
	movq	_wacom_i2c_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
	xorl	%esi, %esi
	movq	%r14, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	addq	$4, %r13
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_input_free_device
	movq	%r14, %rdi
	callq	_kfree
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r13), %edi
	callq	_disable_irq
	movq	(%r14), %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r13), %edi
	movq	%r14, %rsi
	callq	_free_irq
	jmp	LBB0_10
LBB0_12:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_check_functionality error\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Wacom I2C Digitizer"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_wacom_i2c_open,4,2             ## @wacom_i2c_open
	.comm	_wacom_i2c_close,4,2            ## @wacom_i2c_close
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_BTN_TOOL_PEN,4,2               ## @BTN_TOOL_PEN
	.comm	_BTN_TOOL_RUBBER,4,2            ## @BTN_TOOL_RUBBER
	.comm	_BTN_STYLUS,4,2                 ## @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ## @BTN_STYLUS2
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_wacom_i2c_irq,4,2              ## @wacom_i2c_irq
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"wacom_i2c"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to enable IRQ, error: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to register input device, error: %d\n"

	.no_dead_strip	_wacom_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_i2c_probe
_wacom_i2c_probe:                       ; @wacom_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	wzr, [sp, #24]
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_wacom_query_device
	mov	x23, x0
	cbnz	w0, LBB0_10
; %bb.2:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	mov	x20, x0
	bl	_input_allocate_device
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_4:
	add	x0, x19, #4
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_5:
	stp	x21, x19, [x20]
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x21]
Lloh16:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x8]
	mov	w8, #1386
	ldr	w9, [sp, #20]
	str	w8, [x21, #40]
	stp	w9, w10, [x21, #44]
	add	x22, x19, #4
	str	x22, [x21, #32]
Lloh19:
	adrp	x8, _wacom_i2c_open@GOTPAGE
Lloh20:
	ldr	x8, [x8, _wacom_i2c_open@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _wacom_i2c_close@GOTPAGE
Lloh23:
	ldr	x9, [x9, _wacom_i2c_close@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #20]
Lloh25:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_BIT_MASK
	mov	x23, x0
Lloh28:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_BIT_MASK
	orr	w8, w0, w23
	ldr	x9, [x21, #8]
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x9]
Lloh31:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	___set_bit
Lloh34:
	adrp	x8, _BTN_TOOL_RUBBER@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BTN_TOOL_RUBBER@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	___set_bit
Lloh37:
	adrp	x8, _BTN_STYLUS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BTN_STYLUS@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	___set_bit
Lloh40:
	adrp	x8, _BTN_STYLUS2@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BTN_STYLUS2@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	___set_bit
Lloh43:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	ldr	w1, [x21, #16]
	bl	___set_bit
Lloh46:
	adrp	x8, _ABS_X@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w3, [sp, #16]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh49:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh52:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	ldr	w3, [sp, #8]
	mov	x0, x21
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	mov	x0, x21
	mov	x1, x20
	bl	_input_set_drvdata
	ldr	w0, [x19]
Lloh55:
	adrp	x8, _wacom_i2c_irq@GOTPAGE
Lloh56:
	ldr	x8, [x8, _wacom_i2c_irq@GOTPAGEOFF]
Lloh57:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh58:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
Lloh60:
	ldr	w8, [x9]
Lloh61:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh62:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh64:
	adrp	x4, l_.str.2@PAGE
Lloh65:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	cbz	w0, LBB0_7
; %bb.6:
	mov	x23, x0
	str	x23, [sp]
Lloh66:
	adrp	x1, l_.str.3@PAGE
Lloh67:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19]
	bl	_disable_irq
	ldr	x0, [x20]
	bl	_input_register_device
	mov	x23, x0
	cbz	w0, LBB0_11
; %bb.8:
	str	x23, [sp]
Lloh68:
	adrp	x1, l_.str.4@PAGE
Lloh69:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	ldr	w0, [x19]
	mov	x1, x20
	bl	_free_irq
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_9:
	mov	x0, x21
	bl	_input_free_device
	mov	x0, x20
	bl	_kfree
LBB0_10:
	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
	add	sp, sp, #96
	ret
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh59
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_check_functionality error\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Wacom I2C Digitizer"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_wacom_i2c_open,4,2             ; @wacom_i2c_open
	.comm	_wacom_i2c_close,4,2            ; @wacom_i2c_close
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_BTN_TOOL_PEN,4,2               ; @BTN_TOOL_PEN
	.comm	_BTN_TOOL_RUBBER,4,2            ; @BTN_TOOL_RUBBER
	.comm	_BTN_STYLUS,4,2                 ; @BTN_STYLUS
	.comm	_BTN_STYLUS2,4,2                ; @BTN_STYLUS2
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_wacom_i2c_irq,4,2              ; @wacom_i2c_irq
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"wacom_i2c"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to enable IRQ, error: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to register input device, error: %d\n"

	.no_dead_strip	_wacom_i2c_probe
.subsections_via_symbols
