	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidp_del_connection            ## -- Begin function hidp_del_connection
	.p2align	4, 0x90
_hidp_del_connection:                   ## @hidp_del_connection
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_BT_DBG
	movq	_hidp_session_sem@GOTPCREL(%rip), %rdi
	callq	_down_read
	leaq	4(%rbx), %rdi
	callq	___hidp_get_session
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %eax
	movq	_HIDP_VIRTUAL_CABLE_UNPLUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	btl	%ecx, %eax
	jae	LBB0_3
## %bb.2:
	movq	_HIDP_TRANS_HID_CONTROL@GOTPCREL(%rip), %rax
	movq	_HIDP_CTRL_VIRTUAL_CABLE_UNPLUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hidp_send_ctrl_message
	jmp	LBB0_5
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	leaq	28(%r14), %rdi
	callq	_skb_queue_purge
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_skb_queue_purge
	movq	_EUNATCH@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%r14), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	callq	_atomic_inc
	movq	%r14, %rdi
	callq	_hidp_schedule
	xorl	%ebx, %ebx
LBB0_5:
	movq	_hidp_session_sem@GOTPCREL(%rip), %rdi
	callq	_up_read
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_hidp_session_sem,4,2           ## @hidp_session_sem
	.comm	_HIDP_VIRTUAL_CABLE_UNPLUG,4,2  ## @HIDP_VIRTUAL_CABLE_UNPLUG
	.comm	_HIDP_TRANS_HID_CONTROL,4,2     ## @HIDP_TRANS_HID_CONTROL
	.comm	_HIDP_CTRL_VIRTUAL_CABLE_UNPLUG,4,2 ## @HIDP_CTRL_VIRTUAL_CABLE_UNPLUG
	.comm	_EUNATCH,8,3                    ## @EUNATCH
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hidp_del_connection            ; -- Begin function hidp_del_connection
	.p2align	2
_hidp_del_connection:                   ; @hidp_del_connection
	.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
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
Lloh2:
	adrp	x0, _hidp_session_sem@GOTPAGE
Lloh3:
	ldr	x0, [x0, _hidp_session_sem@GOTPAGEOFF]
	bl	_down_read
	add	x0, x20, #4
	bl	___hidp_get_session
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _HIDP_VIRTUAL_CABLE_UNPLUG@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HIDP_VIRTUAL_CABLE_UNPLUG@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	lsr	w8, w8, w9
	tbz	w8, #0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _HIDP_TRANS_HID_CONTROL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HIDP_TRANS_HID_CONTROL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _HIDP_CTRL_VIRTUAL_CABLE_UNPLUG@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HIDP_CTRL_VIRTUAL_CABLE_UNPLUG@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_hidp_send_ctrl_message
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_4:
	add	x0, x19, #28
	bl	_skb_queue_purge
	add	x0, x19, #24
	bl	_skb_queue_purge
Lloh16:
	adrp	x8, _EUNATCH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EUNATCH@GOTPAGEOFF]
	ldr	x9, [x8]
	ldp	x11, x10, [x19, #8]
	ldr	x10, [x10]
	str	x9, [x10]
	ldr	x8, [x8]
	ldr	x9, [x11]
	str	x8, [x9]
	mov	x0, x19
	bl	_atomic_inc
	mov	x0, x19
	bl	_hidp_schedule
LBB0_5:
	mov	w19, #0
LBB0_6:
Lloh18:
	adrp	x0, _hidp_session_sem@GOTPAGE
Lloh19:
	ldr	x0, [x0, _hidp_session_sem@GOTPAGEOFF]
	bl	_up_read
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_hidp_session_sem,4,2           ; @hidp_session_sem
	.comm	_HIDP_VIRTUAL_CABLE_UNPLUG,4,2  ; @HIDP_VIRTUAL_CABLE_UNPLUG
	.comm	_HIDP_TRANS_HID_CONTROL,4,2     ; @HIDP_TRANS_HID_CONTROL
	.comm	_HIDP_CTRL_VIRTUAL_CABLE_UNPLUG,4,2 ; @HIDP_CTRL_VIRTUAL_CABLE_UNPLUG
	.comm	_EUNATCH,8,3                    ; @EUNATCH
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
