	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbhid_stop
_usbhid_stop:                           ## @usbhid_stop
	.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, %r14
	movq	16(%rdi), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_HID_QUIRK_ALWAYS_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.2:
	movq	_HID_IN_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %rsi
	callq	_clear_bit
	movq	32(%rbx), %rax
	movq	$0, (%rax)
LBB0_3:
	movq	_HID_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%rbx), %r15
	movq	%r15, %rsi
	callq	_clear_bit
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	movq	_HID_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	16(%rbx), %rdi
	callq	_usb_kill_urb
	movq	(%rbx), %rdi
	callq	_usb_kill_urb
	movq	8(%rbx), %rdi
	callq	_usb_kill_urb
	movq	%rbx, %rdi
	callq	_hid_cancel_delayed_stuff
	movq	$0, 8(%r14)
	movq	16(%rbx), %rdi
	callq	_usb_free_urb
	movq	8(%rbx), %rdi
	callq	_usb_free_urb
	movq	(%rbx), %rdi
	callq	_usb_free_urb
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	callq	_hid_to_usb_dev
	movl	%eax, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hid_free_buffers               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_QUIRK_ALWAYS_POLL,4,2      ## @HID_QUIRK_ALWAYS_POLL
	.comm	_HID_IN_POLLING,4,2             ## @HID_IN_POLLING
	.comm	_HID_STARTED,4,2                ## @HID_STARTED
	.comm	_HID_DISCONNECTED,4,2           ## @HID_DISCONNECTED
	.no_dead_strip	_usbhid_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbhid_stop
_usbhid_stop:                           ; @usbhid_stop
	.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	x19, x0
	ldr	x20, [x0, #16]
	cmp	x20, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _HID_QUIRK_ALWAYS_POLL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HID_QUIRK_ALWAYS_POLL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _HID_IN_POLLING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_IN_POLLING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x20, #28
	bl	_clear_bit
	ldr	x8, [x20, #32]
	str	xzr, [x8]
LBB0_4:
Lloh6:
	adrp	x8, _HID_STARTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_STARTED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x21, x20, #28
	mov	x1, x21
	bl	_clear_bit
	add	x22, x20, #24
	mov	x0, x22
	bl	_spin_lock_irq
Lloh9:
	adrp	x8, _HID_DISCONNECTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_DISCONNECTED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	mov	x0, x22
	bl	_spin_unlock_irq
	ldr	x0, [x20, #16]
	bl	_usb_kill_urb
	ldr	x0, [x20]
	bl	_usb_kill_urb
	ldr	x0, [x20, #8]
	bl	_usb_kill_urb
	mov	x0, x20
	bl	_hid_cancel_delayed_stuff
	str	xzr, [x19, #8]
	ldr	x0, [x20, #16]
	bl	_usb_free_urb
	ldr	x0, [x20, #8]
	bl	_usb_free_urb
	ldr	x0, [x20]
	bl	_usb_free_urb
	stp	xzr, xzr, [x20, #8]
	str	xzr, [x20]
	mov	x0, x19
	bl	_hid_to_usb_dev
	mov	x1, x19
	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
	b	_hid_free_buffers
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_QUIRK_ALWAYS_POLL,4,2      ; @HID_QUIRK_ALWAYS_POLL
	.comm	_HID_IN_POLLING,4,2             ; @HID_IN_POLLING
	.comm	_HID_STARTED,4,2                ; @HID_STARTED
	.comm	_HID_DISCONNECTED,4,2           ; @HID_DISCONNECTED
	.no_dead_strip	_usbhid_stop
.subsections_via_symbols
