	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_restart_io
_hid_restart_io:                        ## @hid_restart_io
	.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, %r15
	movq	(%rdi), %r13
	movq	_HID_CLEAR_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %r14
	movq	%r14, %rsi
	callq	_test_bit
	movl	%eax, %r12d
	movq	_HID_RESET_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_spin_lock_irq
	movq	_HID_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	%r13, %rdi
	callq	_usbhid_mark_busy
	movl	%r12d, %eax
	orl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	leaq	24(%r13), %rdi
	callq	_schedule_work
LBB0_2:
	movq	$0, 16(%r13)
	movq	%r13, %rdi
	callq	_spin_unlock_irq
	testl	%ebx, %ebx
	je	LBB0_3
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_HID_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	testl	%r12d, %r12d
	jne	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_hid_start_in
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_hid_io_error
LBB0_7:
	movq	%r13, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 8(%r13)
	je	LBB0_10
## %bb.8:
	movq	_HID_OUT_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_usbhid_restart_out_queue
LBB0_10:
	movq	_HID_CTRL_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_usbhid_restart_ctrl_queue
LBB0_12:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_CLEAR_HALT,4,2             ## @HID_CLEAR_HALT
	.comm	_HID_RESET_PENDING,4,2          ## @HID_RESET_PENDING
	.comm	_HID_SUSPENDED,4,2              ## @HID_SUSPENDED
	.comm	_HID_STARTED,4,2                ## @HID_STARTED
	.comm	_HID_OUT_RUNNING,4,2            ## @HID_OUT_RUNNING
	.comm	_HID_CTRL_RUNNING,4,2           ## @HID_CTRL_RUNNING
	.no_dead_strip	_hid_restart_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_restart_io
_hid_restart_io:                        ; @hid_restart_io
	.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	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _HID_CLEAR_HALT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_CLEAR_HALT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_bit
	mov	x22, x0
Lloh3:
	adrp	x8, _HID_RESET_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_RESET_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	mov	x23, x0
	mov	x0, x19
	bl	_spin_lock_irq
Lloh6:
	adrp	x8, _HID_SUSPENDED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_SUSPENDED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x19
	bl	_usbhid_mark_busy
	orr	w8, w22, w23
	cbz	w8, LBB0_2
; %bb.1:
	add	x0, x19, #24
	bl	_schedule_work
LBB0_2:
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_spin_unlock_irq
	cbz	w23, LBB0_4
LBB0_3:
	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
LBB0_4:
Lloh9:
	adrp	x8, _HID_STARTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_STARTED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.5:
	cbnz	w22, LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_hid_start_in
	tbz	x0, #63, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_hid_io_error
LBB0_8:
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.9:
Lloh12:
	adrp	x8, _HID_OUT_RUNNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HID_OUT_RUNNING@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_usbhid_restart_out_queue
LBB0_11:
Lloh15:
	adrp	x8, _HID_CTRL_RUNNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HID_CTRL_RUNNING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_usbhid_restart_ctrl_queue
LBB0_13:
	mov	x0, x19
	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
	b	_spin_unlock_irq
	.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 AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_CLEAR_HALT,4,2             ; @HID_CLEAR_HALT
	.comm	_HID_RESET_PENDING,4,2          ; @HID_RESET_PENDING
	.comm	_HID_SUSPENDED,4,2              ; @HID_SUSPENDED
	.comm	_HID_STARTED,4,2                ; @HID_STARTED
	.comm	_HID_OUT_RUNNING,4,2            ; @HID_OUT_RUNNING
	.comm	_HID_CTRL_RUNNING,4,2           ; @HID_CTRL_RUNNING
	.no_dead_strip	_hid_restart_io
.subsections_via_symbols
