	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_cleanup
_usb_cleanup:                           ## @usb_cleanup
	.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
	movl	%esi, %r14d
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	callq	_input_free_device
	jmp	LBB0_5
LBB0_4:
	callq	_input_unregister_device
LBB0_5:
	movl	36(%rbx), %edi
	callq	_usb_free_urb
	movl	32(%rbx), %edi
	callq	_usb_free_urb
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	_USB_PKT_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	16(%rbx), %edx
	movl	8(%rbx), %edi
	movl	12(%rbx), %ecx
	callq	_usb_free_coherent
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	callq	_usb_free_coherent
	movq	%rbx, %rdi
	callq	_kfree
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_PKT_LEN,4,2                ## @USB_PKT_LEN
	.no_dead_strip	_usb_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_cleanup
_usb_cleanup:                           ; @usb_cleanup
	.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, x1
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0, #40]
	cbz	x0, LBB0_5
; %bb.2:
	cbz	w19, LBB0_4
; %bb.3:
	bl	_input_free_device
	b	LBB0_5
LBB0_4:
	bl	_input_unregister_device
LBB0_5:
	ldr	w0, [x20, #36]
	bl	_usb_free_urb
	ldr	w0, [x20, #32]
	bl	_usb_free_urb
	ldr	x0, [x20, #24]
	bl	_kfree
Lloh0:
	adrp	x21, _USB_PKT_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _USB_PKT_LEN@GOTPAGEOFF]
	ldr	w1, [x21]
	ldp	w3, w2, [x20, #12]
	ldr	w0, [x20, #8]
	bl	_usb_free_coherent
	ldp	w2, w0, [x20, #4]
	ldr	w1, [x21]
	ldr	w3, [x20]
	bl	_usb_free_coherent
	mov	x0, x20
	bl	_kfree
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_PKT_LEN,4,2                ; @USB_PKT_LEN
	.no_dead_strip	_usb_cleanup
.subsections_via_symbols
