	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugen20_close_device
_ugen20_close_device:                   ## @ugen20_close_device
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r12
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%rbx), %r15d
	movq	_USB_FS_UNINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IOUSB
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_ioctl
	movq	8(%rbx), %rdi
	callq	_free
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
	movl	(%rbx), %edi
	callq	_close
	movl	4(%rbx), %edi
	callq	_close
	movq	$-1, (%rbx)
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_FS_UNINIT,4,2              ## @USB_FS_UNINIT
	.no_dead_strip	_ugen20_close_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ugen20_close_device
_ugen20_close_device:                   ; @ugen20_close_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	x21, x0
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w20, [x19]
Lloh0:
	adrp	x8, _USB_FS_UNINIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_FS_UNINIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IOUSB
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_ioctl
	ldr	x0, [x19, #8]
	bl	_free
LBB0_2:
	stp	xzr, xzr, [x21]
	ldr	w0, [x19]
	bl	_close
	ldr	w0, [x19, #4]
	bl	_close
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_FS_UNINIT,4,2              ; @USB_FS_UNINIT
	.no_dead_strip	_ugen20_close_device
.subsections_via_symbols
