	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disconnect
_disconnect:                            ## @disconnect
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rax), %rbx
	movq	16(%rax), %r14
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	incl	4(%rax)
	cmpl	$0, 20(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	_PC_UMMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movl	$1, (%rbx)
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_gig_dbg
LBB0_2:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movl	(%r14), %eax
	movq	_CHS_D_UP@GOTPCREL(%rip), %rdx
	movq	_CHS_NOTIFY_LL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.4:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
	movq	_ISDN_STAT_DHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gigaset_i4l_channel_cmd        ## TAILCALL
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rdi
	callq	_list_del
	movq	(%r12), %rdi
	callq	_kfree
	movq	$0, (%r12)
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PC_UMMODE,4,2                  ## @PC_UMMODE
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scheduling PC_UMMODE"

	.comm	_CHS_D_UP,4,2                   ## @CHS_D_UP
	.comm	_CHS_NOTIFY_LL,4,2              ## @CHS_NOTIFY_LL
	.comm	_ISDN_STAT_DHUP,4,2             ## @ISDN_STAT_DHUP
	.no_dead_strip	_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disconnect
_disconnect:                            ; @disconnect
	.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	x8, [x0]
	ldp	x22, x19, [x8, #8]
	add	x21, x22, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x20]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldr	w8, [x22, #20]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PC_UMMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PC_UMMODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22, #16]
	orr	w8, w9, w8
	str	w8, [x22, #16]
	mov	w8, #1
	str	w8, [x22]
Lloh3:
	adrp	x8, _DEBUG_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gig_dbg
LBB0_2:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	x19, LBB0_5
; %bb.3:
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _CHS_D_UP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CHS_D_UP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _CHS_NOTIFY_LL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CHS_NOTIFY_LL@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	bic	w8, w8, w9
	str	w8, [x19]
Lloh14:
	adrp	x8, _ISDN_STAT_DHUP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISDN_STAT_DHUP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_gigaset_i4l_channel_cmd
LBB0_5:
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x0, [x20]
	bl	_list_del
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
	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
	b	_spin_unlock_irqrestore
LBB0_6:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PC_UMMODE,4,2                  ; @PC_UMMODE
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scheduling PC_UMMODE"

	.comm	_CHS_D_UP,4,2                   ; @CHS_D_UP
	.comm	_CHS_NOTIFY_LL,4,2              ; @CHS_NOTIFY_LL
	.comm	_ISDN_STAT_DHUP,4,2             ; @ISDN_STAT_DHUP
	.no_dead_strip	_disconnect
.subsections_via_symbols
