	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugen20_dev_get_iface_desc
_ugen20_dev_get_iface_desc:             ## @ugen20_dev_get_iface_desc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	-64(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_libusb20_pass_ptr
	movl	%eax, -48(%rbp)
	movq	%r15, -56(%rbp)
	movq	%r12, -64(%rbp)
	movl	(%r13), %ebx
	movq	_USB_GET_IFACE_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IOUSB
	movl	%ebx, %edi
	movl	%eax, %esi
	leaq	-64(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_LIBUSB20_ERROR_INVALID_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_GET_IFACE_DRIVER,4,2       ## @USB_GET_IFACE_DRIVER
	.comm	_LIBUSB20_ERROR_INVALID_PARAM,4,2 ## @LIBUSB20_ERROR_INVALID_PARAM
	.no_dead_strip	_ugen20_dev_get_iface_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ugen20_dev_get_iface_desc
_ugen20_dev_get_iface_desc:             ; @ugen20_dev_get_iface_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x0, x20
	bl	_libusb20_pass_ptr
	str	w0, [sp, #24]
	stp	x21, x19, [sp, #8]
	ldr	w19, [x22]
Lloh0:
	adrp	x8, _USB_GET_IFACE_DRIVER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_GET_IFACE_DRIVER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IOUSB
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
Lloh3:
	adrp	x8, _LIBUSB20_ERROR_INVALID_PARAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIBUSB20_ERROR_INVALID_PARAM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, wzr, w8, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_GET_IFACE_DRIVER,4,2       ; @USB_GET_IFACE_DRIVER
	.comm	_LIBUSB20_ERROR_INVALID_PARAM,4,2 ; @LIBUSB20_ERROR_INVALID_PARAM
	.no_dead_strip	_ugen20_dev_get_iface_desc
.subsections_via_symbols
