	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_control_transfer        ## -- Begin function libusb_control_transfer
	.p2align	4, 0x90
_libusb_control_transfer:               ## @libusb_control_transfer
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%r9, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %rbx
	testq	%r9, %r9
	jne	LBB0_6
## %bb.2:
	cmpq	$0, 16(%rbp)
	je	LBB0_6
LBB0_3:
	movq	_LIBUSB_ERROR_INVALID_PARAM@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_LIBUSB20_CONTROL_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	callq	_LIBUSB20_INIT
	movq	%r15, -64(%rbp)
	movq	%r13, -72(%rbp)
	movq	%r12, -80(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -88(%rbp)
	movq	16(%rbp), %rax
	movq	%rax, -96(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdx
	movl	24(%rbp), %r8d
	xorl	%r9d, %r9d
	callq	_libusb20_dev_request_sync
	movq	_LIBUSB20_ERROR_PIPE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	movq	_LIBUSB_ERROR_PIPE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_LIBUSB20_ERROR_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movq	_LIBUSB_ERROR_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	_LIBUSB_ERROR_NO_DEVICE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_12:
	movl	-56(%rbp), %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB_ERROR_INVALID_PARAM,4,2 ## @LIBUSB_ERROR_INVALID_PARAM
	.comm	_LIBUSB20_CONTROL_SETUP,4,2     ## @LIBUSB20_CONTROL_SETUP
	.comm	_LIBUSB20_ERROR_PIPE,4,2        ## @LIBUSB20_ERROR_PIPE
	.comm	_LIBUSB_ERROR_PIPE,4,2          ## @LIBUSB_ERROR_PIPE
	.comm	_LIBUSB20_ERROR_TIMEOUT,4,2     ## @LIBUSB20_ERROR_TIMEOUT
	.comm	_LIBUSB_ERROR_TIMEOUT,4,2       ## @LIBUSB_ERROR_TIMEOUT
	.comm	_LIBUSB_ERROR_NO_DEVICE,4,2     ## @LIBUSB_ERROR_NO_DEVICE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb_control_transfer        ; -- Begin function libusb_control_transfer
	.p2align	2
_libusb_control_transfer:               ; @libusb_control_transfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x7
	mov	x22, x6
	mov	x20, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x21, x0
	cbnz	x5, LBB0_6
; %bb.2:
	cbz	x22, LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _LIBUSB_ERROR_INVALID_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIBUSB_ERROR_INVALID_PARAM@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
Lloh2:
	adrp	x8, _LIBUSB20_CONTROL_SETUP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LIBUSB20_CONTROL_SETUP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_LIBUSB20_INIT
	stp	x25, x26, [sp, #32]
	stp	x23, x24, [sp, #16]
	str	x22, [sp, #8]
	add	x1, sp, #8
	mov	x3, sp
	mov	x0, x21
	mov	x2, x20
	mov	x4, x19
	mov	w5, #0
	bl	_libusb20_dev_request_sync
Lloh5:
	adrp	x8, _LIBUSB20_ERROR_PIPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIBUSB20_ERROR_PIPE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.7:
Lloh8:
	adrp	x8, _LIBUSB_ERROR_PIPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LIBUSB_ERROR_PIPE@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
Lloh10:
	adrp	x8, _LIBUSB20_ERROR_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LIBUSB20_ERROR_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _LIBUSB_ERROR_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LIBUSB_ERROR_TIMEOUT@GOTPAGEOFF]
	b	LBB0_4
LBB0_10:
	cbz	w0, LBB0_12
; %bb.11:
Lloh15:
	adrp	x8, _LIBUSB_ERROR_NO_DEVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LIBUSB_ERROR_NO_DEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	ldr	w0, [sp]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB_ERROR_INVALID_PARAM,4,2 ; @LIBUSB_ERROR_INVALID_PARAM
	.comm	_LIBUSB20_CONTROL_SETUP,4,2     ; @LIBUSB20_CONTROL_SETUP
	.comm	_LIBUSB20_ERROR_PIPE,4,2        ; @LIBUSB20_ERROR_PIPE
	.comm	_LIBUSB_ERROR_PIPE,4,2          ; @LIBUSB_ERROR_PIPE
	.comm	_LIBUSB20_ERROR_TIMEOUT,4,2     ; @LIBUSB20_ERROR_TIMEOUT
	.comm	_LIBUSB_ERROR_TIMEOUT,4,2       ; @LIBUSB_ERROR_TIMEOUT
	.comm	_LIBUSB_ERROR_NO_DEVICE,4,2     ; @LIBUSB_ERROR_NO_DEVICE
.subsections_via_symbols
