	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks959_disconnect
_ks959_disconnect:                      ## @ks959_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_usb_get_intfdata
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_unregister_netdev
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_usb_kill_urb
	movq	48(%rbx), %rdi
	callq	_usb_free_urb
	movq	$0, 48(%rbx)
LBB0_3:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_usb_kill_urb
	movq	40(%rbx), %rdi
	callq	_usb_free_urb
	movq	$0, 40(%rbx)
LBB0_5:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_usb_kill_urb
	movq	32(%rbx), %rdi
	callq	_usb_free_urb
	movq	$0, 32(%rbx)
LBB0_7:
	movl	24(%rbx), %edi
	callq	_kfree
	movl	20(%rbx), %edi
	callq	_kfree
	movl	16(%rbx), %edi
	callq	_kfree
	movl	12(%rbx), %edi
	callq	_kfree
	movl	8(%rbx), %edi
	callq	_kfree
	movl	4(%rbx), %edi
	callq	_kfree
	movl	(%rbx), %edi
	callq	_free_netdev
	movq	%r14, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_usb_set_intfdata               ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ks959_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks959_disconnect
_ks959_disconnect:                      ; @ks959_disconnect
	.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	x19, x0
	bl	_usb_get_intfdata
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_unregister_netdev
	ldr	x0, [x20, #48]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_usb_kill_urb
	ldr	x0, [x20, #48]
	bl	_usb_free_urb
	str	xzr, [x20, #48]
LBB0_3:
	ldr	x0, [x20, #40]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_usb_kill_urb
	ldr	x0, [x20, #40]
	bl	_usb_free_urb
	str	xzr, [x20, #40]
LBB0_5:
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_usb_kill_urb
	ldr	x0, [x20, #32]
	bl	_usb_free_urb
	str	xzr, [x20, #32]
LBB0_7:
	ldr	w0, [x20, #24]
	bl	_kfree
	ldr	w0, [x20, #20]
	bl	_kfree
	ldr	w0, [x20, #16]
	bl	_kfree
	ldr	w0, [x20, #12]
	bl	_kfree
	ldr	w0, [x20, #8]
	bl	_kfree
	ldr	w0, [x20, #4]
	bl	_kfree
	ldr	w0, [x20]
	bl	_free_netdev
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_usb_set_intfdata
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ks959_disconnect
.subsections_via_symbols
