	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isdn_net_unbind_channel
_isdn_net_unbind_channel:               ## @isdn_net_unbind_channel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$36, %rdi
	callq	_skb_queue_purge
	cmpl	$0, 32(%rbx)
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movl	(%rax), %edi
	callq	_qdisc_reset_all_tx
LBB0_2:
	movq	$0, 16(%rbx)
	movq	_dev@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rax), %r15
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_isdn_dc2minor
	movq	$0, (%r15,%rax,8)
	movq	(%r14), %rax
	movq	(%rax), %r14
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_isdn_dc2minor
	movq	$0, (%r14,%rax,8)
	movl	(%rbx), %edi
	cmpl	$-1, %edi
	je	LBB0_5
## %bb.3:
	movl	4(%rbx), %esi
	cmpl	$-1, %esi
	je	LBB0_5
## %bb.4:
	movq	_ISDN_USAGE_NET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_isdn_free_channel
LBB0_5:
	movq	_ISDN_NET_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	$-1, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev,8,3                        ## @dev
	.comm	_ISDN_USAGE_NET,4,2             ## @ISDN_USAGE_NET
	.comm	_ISDN_NET_CONNECTED,4,2         ## @ISDN_NET_CONNECTED
	.no_dead_strip	_isdn_net_unbind_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isdn_net_unbind_channel
_isdn_net_unbind_channel:               ; @isdn_net_unbind_channel
	.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	x19, x0
	add	x0, x0, #36
	bl	_skb_queue_purge
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w0, [x8]
	bl	_qdisc_reset_all_tx
LBB0_2:
	str	xzr, [x19, #16]
Lloh0:
	adrp	x20, _dev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dev@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x21, [x8, #8]
	ldp	w0, w1, [x19]
	bl	_isdn_dc2minor
	str	xzr, [x21, x0, lsl #3]
	ldr	x8, [x20]
	ldr	x20, [x8]
	ldp	w0, w1, [x19]
	bl	_isdn_dc2minor
	str	xzr, [x20, x0, lsl #3]
	ldr	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	ldr	w1, [x19, #4]
	cmn	w1, #1
	b.eq	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _ISDN_USAGE_NET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISDN_USAGE_NET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_isdn_free_channel
LBB0_5:
Lloh5:
	adrp	x8, _ISDN_NET_CONNECTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ISDN_NET_CONNECTED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dev,8,3                        ; @dev
	.comm	_ISDN_USAGE_NET,4,2             ; @ISDN_USAGE_NET
	.comm	_ISDN_NET_CONNECTED,4,2         ; @ISDN_NET_CONNECTED
	.no_dead_strip	_isdn_net_unbind_channel
.subsections_via_symbols
