	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbtouch_open
_usbtouch_open:                         ## @usbtouch_open
	.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
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	callq	_interface_to_usbdev
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	8(%rbx), %rdi
	callq	_usb_autopm_get_interface
	movq	%rax, %rcx
	movq	_EIO@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	subl	(%r12), %eax
	testq	%rcx, %rcx
	cmovnel	%eax, %r15d
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.1:
	movq	%rbx, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	32(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
LBB0_4:
	movq	8(%rbx), %rax
	movl	$1, (%rax)
	movl	$1, (%rbx)
	jmp	LBB0_5
LBB0_2:
	movq	24(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%r15d, %r15d
	subl	(%r12), %r15d
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	8(%rbx), %rdi
	callq	_usb_autopm_put_interface
	movl	%r15d, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_usbtouch_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbtouch_open
_usbtouch_open:                         ; @usbtouch_open
	.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
	bl	_input_get_drvdata
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_interface_to_usbdev
	ldr	x8, [x19, #24]
	str	w0, [x8]
	ldr	x0, [x19, #8]
	bl	_usb_autopm_get_interface
Lloh0:
	adrp	x22, _EIO@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EIO@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	x0, #0
	csneg	w20, wzr, w8, eq
	tbnz	w20, #31, LBB0_3
; %bb.1:
	add	x21, x19, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
LBB0_2:
	ldr	x8, [x19, #8]
	mov	w9, #1
	str	w9, [x8]
	str	w9, [x19]
	b	LBB0_6
LBB0_3:
	neg	w20, w8
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19, #24]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	x0, LBB0_2
; %bb.5:
	ldr	w8, [x22]
	neg	w20, w8
LBB0_6:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	x0, [x19, #8]
	bl	_usb_autopm_put_interface
LBB0_7:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_usbtouch_open
.subsections_via_symbols
