	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_device_remove
_hid_device_remove:                     ## @hid_device_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_hid_device
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_down_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINTR@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movl	$0, (%rbx)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rax), %rax
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	callq	*%rax
	jmp	LBB0_6
LBB0_5:
	callq	_hid_hw_stop
LBB0_6:
	movq	%rbx, %rdi
	callq	_hid_close_report
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	jne	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_up
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_hid_device_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_device_remove
_hid_device_remove:                     ; @hid_device_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_hid_device
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_down_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_2:
	str	wzr, [x20]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	blr	x8
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	bl	_hid_hw_stop
LBB0_6:
	mov	x0, x20
	bl	_hid_close_report
	str	xzr, [x20, #8]
	ldr	w8, [x20]
	cbnz	w8, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_up
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_hid_device_remove
.subsections_via_symbols
