	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_probe
_wacom_probe:                           ## @wacom_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_hid_set_drvdata
	movq	%rbx, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	addq	$4, %rbx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_1:
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_5:
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hid_hw_start
	leaq	4(%rbx), %r12
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
LBB0_4:
	callq	_dev_err
	movq	%r14, %rdi
	callq	_kfree
LBB0_13:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_dev_attr_speed@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_9:
	movl	(%rbx), %eax
	xorl	%r15d, %r15d
	cmpl	$128, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_wacom_poke
	jmp	LBB0_13
LBB0_12:
	movl	$0, (%r14)
	movq	%rbx, %rdi
	callq	_wacom_set_features
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't alloc wacom descriptor\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"hw start failed\n"

	.comm	_dev_attr_speed,4,2             ## @dev_attr_speed
L_.str.3:                               ## @.str.3
	.asciz	"can't create sysfs speed attribute err: %d\n"

	.no_dead_strip	_wacom_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_probe
_wacom_probe:                           ; @wacom_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_hid_set_drvdata
	mov	x0, x20
	bl	_hid_parse
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	add	x0, x20, #4
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_3:
	add	x0, x20, #4
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hid_hw_start
	add	x22, x20, #4
	cbz	w0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
LBB0_6:
	bl	_dev_err
	mov	x0, x19
	bl	_kfree
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x1, _dev_attr_speed@GOTPAGE
Lloh16:
	ldr	x1, [x1, _dev_attr_speed@GOTPAGEOFF]
	mov	x0, x22
	bl	_device_create_file
	cbz	w0, LBB0_10
; %bb.9:
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_warn
LBB0_10:
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.11:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x20
	mov	w1, #1
	bl	_wacom_poke
	b	LBB0_14
LBB0_13:
	str	wzr, [x19]
	mov	x0, x20
	bl	_wacom_set_features
LBB0_14:
	mov	w21, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't alloc wacom descriptor\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"hw start failed\n"

	.comm	_dev_attr_speed,4,2             ; @dev_attr_speed
l_.str.3:                               ; @.str.3
	.asciz	"can't create sysfs speed attribute err: %d\n"

	.no_dead_strip	_wacom_probe
.subsections_via_symbols
