	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_start_in
_hid_start_in:                          ## @hid_start_in
	.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), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	jle	LBB0_6
## %bb.1:
	movq	_HID_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_HID_REPORTED_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_HID_IN_RUNNING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	8(%r13), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movl	%r12d, %r14d
LBB0_6:
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_DISCONNECTED,4,2           ## @HID_DISCONNECTED
	.comm	_HID_REPORTED_IDLE,4,2          ## @HID_REPORTED_IDLE
	.comm	_HID_IN_RUNNING,4,2             ## @HID_IN_RUNNING
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_hid_start_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_start_in
_hid_start_in:                          ; @hid_start_in
	.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	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _HID_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _HID_REPORTED_IDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_REPORTED_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbnz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x22, _HID_IN_RUNNING@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HID_IN_RUNNING@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x20
	bl	_test_and_set_bit
	cbz	w0, LBB0_6
LBB0_4:
	mov	w21, #0
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	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_6:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.7:
	ldr	w0, [x22]
	mov	x1, x20
	bl	_clear_bit
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_DISCONNECTED,4,2           ; @HID_DISCONNECTED
	.comm	_HID_REPORTED_IDLE,4,2          ; @HID_REPORTED_IDLE
	.comm	_HID_IN_RUNNING,4,2             ; @HID_IN_RUNNING
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_hid_start_in
.subsections_via_symbols
