	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_retrieve_hid_descriptor
_wacom_retrieve_hid_descriptor:         ## @wacom_retrieve_hid_descriptor
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_BTN_TOOL_PEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rsi)
	movq	(%rsi), %rcx
	movq	_TABLETPC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	movq	_TABLETPC2FG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
LBB0_2:
	movq	_HID_DEVICET_HID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_usb_get_extra_descriptor
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%r15), %rdi
	movq	_HID_DEVICET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_usb_get_extra_descriptor
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movl	$1, %eax
	jmp	LBB0_6
LBB0_5:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_wacom_parse_hid
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTN_TOOL_PEN,4,2               ## @BTN_TOOL_PEN
	.comm	_TABLETPC,8,3                   ## @TABLETPC
	.comm	_TABLETPC2FG,8,3                ## @TABLETPC2FG
	.comm	_HID_DEVICET_HID,4,2            ## @HID_DEVICET_HID
	.comm	_HID_DEVICET_REPORT,4,2         ## @HID_DEVICET_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wacom: can not retrieve extra class descriptor\n"

	.no_dead_strip	_wacom_retrieve_hid_descriptor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_retrieve_hid_descriptor
_wacom_retrieve_hid_descriptor:         ; @wacom_retrieve_hid_descriptor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _BTN_TOOL_PEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTN_TOOL_PEN@GOTPAGEOFF]
	ldr	x21, [x0]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #8]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _TABLETPC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TABLETPC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _TABLETPC2FG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TABLETPC2FG@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh9:
	adrp	x8, _HID_DEVICET_HID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_DEVICET_HID@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_usb_get_extra_descriptor
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x21]
Lloh12:
	adrp	x8, _HID_DEVICET_REPORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HID_DEVICET_REPORT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_usb_get_extra_descriptor
	cbz	x0, LBB0_5
; %bb.3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_wacom_parse_hid
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BTN_TOOL_PEN,4,2               ; @BTN_TOOL_PEN
	.comm	_TABLETPC,8,3                   ; @TABLETPC
	.comm	_TABLETPC2FG,8,3                ; @TABLETPC2FG
	.comm	_HID_DEVICET_HID,4,2            ; @HID_DEVICET_HID
	.comm	_HID_DEVICET_REPORT,4,2         ; @HID_DEVICET_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wacom: can not retrieve extra class descriptor\n"

	.no_dead_strip	_wacom_retrieve_hid_descriptor
.subsections_via_symbols
