	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gigaset_disconnect
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gigaset_disconnect:                    ## @gigaset_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	%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, %r14
	callq	_usb_get_intfdata
	movq	%rax, %r13
	movq	(%rax), %rdi
	movq	16(%rax), %r15
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	$0, 48(%r15)
	movq	_BAS_CHANNELS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%rbx, %rdi
	callq	_gigaset_bchannel_down
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r13, %rdi
	callq	_gigaset_stop
	leaq	40(%r15), %rdi
	callq	_del_timer_sync
	leaq	36(%r15), %rdi
	callq	_del_timer_sync
	leaq	32(%r15), %rdi
	callq	_del_timer_sync
	movq	%r13, %rdi
	callq	_freeurbs
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
	movq	24(%r15), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movq	(%r15), %rdi
	callq	_usb_put_dev
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movq	$0, (%r13)
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gigaset_freecs                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disconnecting Gigaset base\n"

	.comm	_BAS_CHANNELS,4,2               ## @BAS_CHANNELS
	.no_dead_strip	_gigaset_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gigaset_disconnect
_gigaset_disconnect:                    ; @gigaset_disconnect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_usb_get_intfdata
	mov	x19, x0
	ldr	x21, [x0, #16]
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	str	xzr, [x21, #48]
Lloh2:
	adrp	x22, _BAS_CHANNELS@GOTPAGE
Lloh3:
	ldr	x22, [x22, _BAS_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x23, x8
	bl	_gigaset_bchannel_down
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_gigaset_stop
	add	x0, x21, #40
	bl	_del_timer_sync
	add	x0, x21, #36
	bl	_del_timer_sync
	add	x0, x21, #32
	bl	_del_timer_sync
	mov	x0, x19
	bl	_freeurbs
	mov	x0, x20
	mov	x1, #0
	bl	_usb_set_intfdata
	ldr	x0, [x21, #24]
	bl	_kfree
	stp	xzr, xzr, [x21, #16]
	ldr	x0, [x21]
	bl	_usb_put_dev
	stp	xzr, xzr, [x21]
	str	xzr, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gigaset_freecs
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disconnecting Gigaset base\n"

	.comm	_BAS_CHANNELS,4,2               ; @BAS_CHANNELS
	.no_dead_strip	_gigaset_disconnect
.subsections_via_symbols
