	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugen20_check_connected
_ugen20_check_connected:                ## @ugen20_check_connected
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	8(%rdi), %ebx
	movq	_USB_GET_PLUGTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IOUSB
	leaq	-24(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rcx
	xorl	%eax, %eax
	cmpq	-24(%rbp), %rcx
	je	LBB0_3
LBB0_2:
	movq	_LIBUSB20_ERROR_NO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_GET_PLUGTIME,4,2           ## @USB_GET_PLUGTIME
	.comm	_LIBUSB20_ERROR_NO_DEVICE,4,2   ## @LIBUSB20_ERROR_NO_DEVICE
	.no_dead_strip	_ugen20_check_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ugen20_check_connected
_ugen20_check_connected:                ; @ugen20_check_connected
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w20, [x0, #8]
Lloh0:
	adrp	x8, _USB_GET_PLUGTIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_GET_PLUGTIME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IOUSB
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _LIBUSB20_ERROR_NO_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIBUSB20_ERROR_NO_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
Lloh6:
	adrp	x10, _LIBUSB20_ERROR_NO_DEVICE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LIBUSB20_ERROR_NO_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w0, wzr, w10, eq
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_GET_PLUGTIME,4,2           ; @USB_GET_PLUGTIME
	.comm	_LIBUSB20_ERROR_NO_DEVICE,4,2   ; @LIBUSB20_ERROR_NO_DEVICE
	.no_dead_strip	_ugen20_check_connected
.subsections_via_symbols
