	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbhid_restart_ctrl_queue
_usbhid_restart_ctrl_queue:             ## @usbhid_restart_ctrl_queue
	.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, %r14
	movl	4(%rdi), %edi
	callq	_usb_get_intfdata
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	xorl	%r12d, %r12d
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	_HID_RESET_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movq	_HID_SUSPENDED@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.3:
	movl	12(%r14), %ecx
	movl	16(%r14), %edx
	cmpl	%ecx, %edx
	je	LBB0_10
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_hid_dbg
	movl	4(%r14), %edi
	callq	_usb_autopm_get_interface_async
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movl	(%r13), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	4(%r14), %edi
	callq	_usb_autopm_put_interface_no_suspend
	jmp	LBB0_10
LBB0_7:
	movq	_HID_CTRL_RUNNING@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_hid_submit_ctrl
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movl	4(%r14), %edi
	callq	_usb_autopm_put_interface_async
LBB0_9:
	movq	%r14, %rdi
	callq	_wake_up
	movl	$1, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_RESET_PENDING,4,2          ## @HID_RESET_PENDING
	.comm	_HID_SUSPENDED,4,2              ## @HID_SUSPENDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Kicking head %d tail %d"

	.comm	_HID_CTRL_RUNNING,4,2           ## @HID_CTRL_RUNNING
	.no_dead_strip	_usbhid_restart_ctrl_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbhid_restart_ctrl_queue
_usbhid_restart_ctrl_queue:             ; @usbhid_restart_ctrl_queue
	.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	x19, x0
	ldr	w0, [x0, #4]
	bl	_usb_get_intfdata
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x20, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _HID_RESET_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_RESET_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x19, #8
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x23, _HID_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HID_SUSPENDED@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.3:
	ldp	w3, w2, [x19, #12]
	cmp	w2, w3
	b.ne	LBB0_6
LBB0_4:
	mov	w22, #0
LBB0_5:
	mov	x0, x22
	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_6:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_dbg
	ldr	w0, [x19, #4]
	bl	_usb_autopm_get_interface_async
	mov	x22, x0
	tbnz	w0, #31, LBB0_5
; %bb.7:
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_usb_autopm_put_interface_no_suspend
	b	LBB0_5
LBB0_9:
Lloh7:
	adrp	x22, _HID_CTRL_RUNNING@GOTPAGE
Lloh8:
	ldr	x22, [x22, _HID_CTRL_RUNNING@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x21
	bl	_set_bit
	mov	x0, x20
	bl	_hid_submit_ctrl
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x22]
	mov	x1, x21
	bl	_clear_bit
	ldr	w0, [x19, #4]
	bl	_usb_autopm_put_interface_async
LBB0_11:
	mov	x0, x19
	bl	_wake_up
	mov	w22, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_RESET_PENDING,4,2          ; @HID_RESET_PENDING
	.comm	_HID_SUSPENDED,4,2              ; @HID_SUSPENDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Kicking head %d tail %d"

	.comm	_HID_CTRL_RUNNING,4,2           ; @HID_CTRL_RUNNING
	.no_dead_strip	_usbhid_restart_ctrl_queue
.subsections_via_symbols
