	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbhid_close
_usbhid_close:                          ## @usbhid_close
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	_HID_OPENED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %r12
	movq	%r12, %rsi
	callq	_clear_bit
	movq	_HID_QUIRK_ALWAYS_POLL@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_HID_IN_POLLING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movl	(%r13), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_hid_cancel_delayed_stuff
	movl	8(%r14), %edi
	callq	_usb_kill_urb
	movq	(%r14), %rax
	movq	$0, (%rax)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_OPENED,4,2                 ## @HID_OPENED
	.comm	_HID_QUIRK_ALWAYS_POLL,4,2      ## @HID_QUIRK_ALWAYS_POLL
	.comm	_HID_IN_POLLING,4,2             ## @HID_IN_POLLING
	.no_dead_strip	_usbhid_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbhid_close
_usbhid_close:                          ; @usbhid_close
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0, #8]
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irq
Lloh0:
	adrp	x8, _HID_OPENED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_OPENED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x22, x19, #16
	mov	x1, x22
	bl	_clear_bit
	ldr	w8, [x20]
Lloh3:
	adrp	x23, _HID_QUIRK_ALWAYS_POLL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HID_QUIRK_ALWAYS_POLL@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _HID_IN_POLLING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_IN_POLLING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
LBB0_2:
	mov	x0, x21
	bl	_spin_unlock_irq
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_hid_cancel_delayed_stuff
	ldr	w0, [x19, #8]
	bl	_usb_kill_urb
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_OPENED,4,2                 ; @HID_OPENED
	.comm	_HID_QUIRK_ALWAYS_POLL,4,2      ; @HID_QUIRK_ALWAYS_POLL
	.comm	_HID_IN_POLLING,4,2             ; @HID_IN_POLLING
	.no_dead_strip	_usbhid_close
.subsections_via_symbols
