	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ugen20_do_request_sync
_ugen20_do_request_sync:                ## @ugen20_do_request_sync
	.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
	movl	%r9d, %r13d
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_libusb20_pass_ptr
	movl	%eax, -44(%rbp)
	movq	_LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_USB_SHORT_XFER_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
LBB0_2:
	leaq	-52(%rbp), %rdi
	movl	$4, %esi
	movq	%r12, %rdx
	callq	_libusb20_me_encode
	movl	(%r15), %ebx
	movq	_USB_DO_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IOUSB
	leaq	-56(%rbp), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_LIBUSB20_ERROR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	-56(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK,4,2 ## @LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK
	.comm	_USB_SHORT_XFER_OK,4,2          ## @USB_SHORT_XFER_OK
	.comm	_USB_DO_REQUEST,4,2             ## @USB_DO_REQUEST
	.comm	_LIBUSB20_ERROR_OTHER,4,2       ## @LIBUSB20_ERROR_OTHER
	.no_dead_strip	_ugen20_do_request_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ugen20_do_request_sync
_ugen20_do_request_sync:                ; @ugen20_do_request_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x5
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	mov	x24, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x23
	bl	_libusb20_pass_ptr
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _USB_SHORT_XFER_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_SHORT_XFER_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
LBB0_2:
	orr	x0, x24, #0x4
	mov	w1, #4
	mov	x2, x21
	bl	_libusb20_me_encode
	ldr	w20, [x20]
Lloh6:
	adrp	x8, _USB_DO_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_DO_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_IOUSB
	mov	x1, x0
	mov	x2, sp
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _LIBUSB20_ERROR_OTHER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LIBUSB20_ERROR_OTHER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w8, [sp]
	str	w8, [x19]
LBB0_6:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK,4,2 ; @LIBUSB20_TRANSFER_SINGLE_SHORT_NOT_OK
	.comm	_USB_SHORT_XFER_OK,4,2          ; @USB_SHORT_XFER_OK
	.comm	_USB_DO_REQUEST,4,2             ; @USB_DO_REQUEST
	.comm	_LIBUSB20_ERROR_OTHER,4,2       ; @LIBUSB20_ERROR_OTHER
	.no_dead_strip	_ugen20_do_request_sync
.subsections_via_symbols
