	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_usb_control_ep_error_test      ## -- Begin function usb_control_ep_error_test
	.p2align	4, 0x90
_usb_control_ep_error_test:             ## @usb_control_ep_error_test
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_find_usb_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_libusb20_dev_open
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_str.9(%rip), %rdi
	callq	_puts
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.5:
	movq	%r13, %rdi
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_libusb20_dev_free              ## TAILCALL
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.2:
	leaq	L_str.10(%rip), %rdi
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
LBB0_6:
	movq	%r13, %rdi
	callq	_libusb20_dev_get_bus_number
	movl	%eax, -1080(%rbp)               ## 4-byte Spill
	movq	%r13, %rdi
	callq	_libusb20_dev_get_address
	movl	%eax, -1084(%rbp)               ## 4-byte Spill
	movl	$-1, %r14d
	leaq	-1120(%rbp), %rbx
	movl	$0, -1076(%rbp)                 ## 4-byte Folded Spill
	movq	%r13, -1096(%rbp)               ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	%r15d, -1076(%rbp)              ## 4-byte Spill
	movl	%r12d, %r14d
	cmpl	$254, %r12d
	je	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%r14), %r12d
	movq	_LIBUSB20_CONTROL_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_LIBUSB20_INIT
	movabsq	$25769803904, %rax              ## imm = 0x600000080
	movq	%rax, -1120(%rbp)
	movl	%r12d, %eax
	orl	$512, %eax                      ## imm = 0x200
	movl	%eax, -1112(%rbp)
	movq	$0, -1104(%rbp)
	movl	$255, -1108(%rbp)
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %edi
	movl	$-1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_set_ctrl_ep_fail
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	xorl	%r9d, %r9d
	callq	_libusb20_dev_request_sync
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	-1080(%rbp), %edi               ## 4-byte Reload
	movl	-1084(%rbp), %r14d              ## 4-byte Reload
	movl	%r14d, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_set_ctrl_ep_fail
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	xorl	%r9d, %r9d
	callq	_libusb20_dev_request_sync
	movl	$-1, %edi
	movl	$-1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_set_ctrl_ep_fail
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	xorl	%r9d, %r9d
	callq	_libusb20_dev_request_sync
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	movl	-1076(%rbp), %r15d              ## 4-byte Reload
	incl	%r15d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-1076(%rbp), %r15d              ## 4-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	-1080(%rbp), %edi               ## 4-byte Reload
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_set_ctrl_ep_fail
	movq	-1096(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rdi
	leaq	-1120(%rbp), %rbx
	movq	%rbx, %rsi
	leaq	-1072(%rbp), %r14
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	xorl	%r9d, %r9d
	callq	_libusb20_dev_request_sync
	movl	$-1, %edi
	movl	$-1, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_set_ctrl_ep_fail
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	xorl	%r9d, %r9d
	callq	_libusb20_dev_request_sync
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	incl	%r15d
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_15:
	movq	%r13, %rdi
	callq	_libusb20_dev_close
	movq	%r13, %rdi
	callq	_libusb20_dev_free
	leaq	L_.str.7(%rip), %rdi
	movl	-1076(%rbp), %esi               ## 4-byte Reload
	xorl	%eax, %eax
	callq	_printf
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB20_CONTROL_SETUP,4,2     ## @LIBUSB20_CONTROL_SETUP
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Test #%d.1/3 ...\n"

L_.str.3:                               ## @.str.3
	.asciz	"Last configuration index is: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Test #%d.2/3 ...\n"

L_.str.6:                               ## @.str.6
	.asciz	"Test #%d.3/3 ...\n"

L_.str.7:                               ## @.str.7
	.asciz	"Test completed detecting %d failures\nDone\n\n"

L_str.8:                                ## @str.8
	.asciz	"Cannot fetch descriptor (unexpected)"

L_str.9:                                ## @str.9
	.asciz	"Could not open USB device"

L_str.10:                               ## @str.10
	.asciz	"USB device not found"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function usb_control_ep_error_test
lCPI0_0:
	.long	128                             ; 0x80
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_usb_control_ep_error_test
	.p2align	2
_usb_control_ep_error_test:             ; @usb_control_ep_error_test
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #1072
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-112]
	bl	_find_usb_device
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w1, #0
	bl	_libusb20_dev_open
	cbz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x0, l_str.9@PAGE
Lloh4:
	add	x0, x0, l_str.9@PAGEOFF
	bl	_puts
	ldur	x8, [x29, #-112]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.3:
	mov	x0, x19
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_libusb20_dev_free
LBB0_4:
	ldur	x8, [x29, #-112]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.5:
Lloh11:
	adrp	x0, l_str.10@PAGE
Lloh12:
	add	x0, x0, l_str.10@PAGEOFF
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_puts
LBB0_6:
	mov	x0, x19
	bl	_libusb20_dev_get_bus_number
	mov	x20, x0
	mov	x0, x19
	bl	_libusb20_dev_get_address
	mov	x21, x0
	mov	w26, #0
	mov	w27, #-1
Lloh13:
	adrp	x8, lCPI0_0@PAGE
Lloh14:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh15:
	adrp	x22, l_.str.2@PAGE
Lloh16:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh17:
	adrp	x23, l_.str.4@PAGE
Lloh18:
	add	x23, x23, l_.str.4@PAGEOFF
Lloh19:
	adrp	x24, l_.str.6@PAGE
Lloh20:
	add	x24, x24, l_.str.6@PAGEOFF
Lloh21:
	adrp	x25, l_str.8@PAGE
Lloh22:
	add	x25, x25, l_str.8@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w27, w27, #1
	cmp	w27, #254
	b.eq	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w28, w27, #1
Lloh23:
	adrp	x8, _LIBUSB20_CONTROL_SETUP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LIBUSB20_CONTROL_SETUP@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_LIBUSB20_INIT
	str	d8, [sp, #8]
	orr	w9, w28, #0x200
	str	xzr, [sp, #24]
	mov	w8, #255
	stp	w9, w8, [sp, #16]
	str	x28, [sp]
	mov	x0, x22
	bl	_printf
	mov	w0, #-1
	mov	w1, #-1
	mov	w2, #0
	mov	w3, #0
	bl	_set_ctrl_ep_fail
	add	x1, sp, #8
	add	x2, sp, #32
	mov	x0, x19
	mov	x3, #0
	mov	w4, #1000
	mov	w5, #0
	bl	_libusb20_dev_request_sync
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, x28
	str	x8, [sp]
	mov	x0, x23
	bl	_printf
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	mov	w3, #1
	bl	_set_ctrl_ep_fail
	add	x1, sp, #8
	add	x2, sp, #32
	mov	x0, x19
	mov	x3, #0
	mov	w4, #1000
	mov	w5, #0
	bl	_libusb20_dev_request_sync
	mov	w0, #-1
	mov	w1, #-1
	mov	w2, #0
	mov	w3, #0
	bl	_set_ctrl_ep_fail
	add	x1, sp, #8
	add	x2, sp, #32
	mov	x0, x19
	mov	x3, #0
	mov	w4, #1000
	mov	w5, #0
	bl	_libusb20_dev_request_sync
	cbz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	bl	_puts
	add	w26, w26, #1
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
                                        ; kill: def $w28 killed $w28 killed $x28 def $x28
	str	x28, [sp]
	mov	x0, x24
	bl	_printf
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w3, #1
	bl	_set_ctrl_ep_fail
	add	x1, sp, #8
	add	x2, sp, #32
	mov	x0, x19
	mov	x3, #0
	mov	w4, #1000
	mov	w5, #0
	bl	_libusb20_dev_request_sync
	mov	w0, #-1
	mov	w1, #-1
	mov	w2, #0
	mov	w3, #0
	bl	_set_ctrl_ep_fail
	add	x1, sp, #8
	add	x2, sp, #32
	mov	x0, x19
	mov	x3, #0
	mov	w4, #1000
	mov	w5, #0
	bl	_libusb20_dev_request_sync
	cbz	w0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x25
	bl	_puts
	add	w26, w26, #1
	b	LBB0_7
LBB0_13:
	str	x27, [sp]
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_14:
	mov	x0, x19
	bl	_libusb20_dev_close
	mov	x0, x19
	bl	_libusb20_dev_free
	str	x26, [sp]
Lloh28:
	adrp	x0, l_.str.7@PAGE
Lloh29:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldur	x8, [x29, #-112]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_LIBUSB20_CONTROL_SETUP,4,2     ; @LIBUSB20_CONTROL_SETUP
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Test #%d.1/3 ...\n"

l_.str.3:                               ; @.str.3
	.asciz	"Last configuration index is: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Test #%d.2/3 ...\n"

l_.str.6:                               ; @.str.6
	.asciz	"Test #%d.3/3 ...\n"

l_.str.7:                               ; @.str.7
	.asciz	"Test completed detecting %d failures\nDone\n\n"

l_str.8:                                ; @str.8
	.asciz	"Cannot fetch descriptor (unexpected)"

l_str.9:                                ; @str.9
	.asciz	"Could not open USB device"

l_str.10:                               ; @str.10
	.asciz	"USB device not found"

.subsections_via_symbols
