	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wacom_get_report
_wacom_get_report:                      ## @wacom_get_report
	.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
	movl	%r9d, %ebx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_interface_to_usbdev
	movq	%rax, %r14
	shll	$8, %r12d
	addl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_REQ_GET_REPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	(%r13), %rsi
	movl	(%rsi), %r9d
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %r8d
	pushq	$100
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ecx
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EPIPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	je	LBB0_3
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_REQ_GET_REPORT,4,2         ## @USB_REQ_GET_REPORT
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EPIPE,4,2                      ## @EPIPE
	.no_dead_strip	_wacom_get_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wacom_get_report
_wacom_get_report:                      ; @wacom_get_report
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x27, x2
	mov	x24, x1
	mov	x22, x0
	bl	_interface_to_usbdev
	mov	x23, x0
Lloh0:
	adrp	x28, _USB_TYPE_CLASS@GOTPAGE
Lloh1:
	ldr	x28, [x28, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh2:
	adrp	x25, _USB_RECIP_INTERFACE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _USB_RECIP_INTERFACE@GOTPAGEOFF]
	mov	w26, #100
	add	w24, w27, w24, lsl #8
Lloh4:
	adrp	x27, _ETIMEDOUT@GOTPAGE
Lloh5:
	ldr	x27, [x27, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	subs	w19, w19, #1
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh6:
	adrp	x8, _USB_REQ_GET_REPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_REQ_GET_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w3, w8, w9
	ldr	x8, [x22]
	ldr	w5, [x8]
	str	w26, [sp]
	mov	x0, x23
	mov	x4, x24
	mov	x6, x21
	mov	x7, x20
	bl	_usb_control_msg
	ldr	w8, [x27]
	cmn	w0, w8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh12:
	adrp	x8, _EPIPE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	sub	w19, w19, #1
	cmn	w0, w8
	ccmp	w19, #0, #4, eq
	b.ne	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_REQ_GET_REPORT,4,2         ; @USB_REQ_GET_REPORT
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EPIPE,4,2                      ; @EPIPE
	.no_dead_strip	_wacom_get_report
.subsections_via_symbols
