	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doit
_doit:                                  ## @doit
	.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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$2, %esi
	callq	_libusb20_dev_open
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_libusb20_strerror
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.2:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_libusb20_dev_set_config_index
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_libusb20_strerror
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_libusb20_tr_get_pointer
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_libusb20_tr_get_pointer
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	testq	%r14, %r14
	je	LBB0_9
## %bb.11:
	movq	%rax, %r15
	movq	_out_ep@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_libusb20_tr_open
	testl	%eax, %eax
	jne	LBB0_12
## %bb.14:
	movq	_in_ep@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_libusb20_tr_open
	testl	%eax, %eax
	je	LBB0_15
LBB0_12:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_libusb20_strerror
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_libusb20_strerror
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
LBB0_3:
	movl	%ebx, %edi
	movq	%rax, %rdx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_15:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_BUFLEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_out_len@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	jle	LBB0_19
## %bb.16:
	movq	_out_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-52(%rbp), %rcx
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_libusb20_tr_bulk_intr_sync
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	%eax, %edi
	callq	_libusb20_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	%r13d, %edi
	movq	_BUFLEN@GOTPCREL(%rip), %r13
	movq	%rax, %rdx
	callq	_fprintf
LBB0_18:
	movl	-52(%rbp), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_printf
LBB0_19:
	movl	(%r13), %edx
	movq	_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_libusb20_tr_bulk_intr_sync
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	%eax, %edi
	callq	_libusb20_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	%r13d, %edi
	movq	%rax, %rdx
	callq	_fprintf
LBB0_21:
	movl	-52(%rbp), %esi
	leaq	L_.str.7(%rip), %rdi
	callq	_printf
	movl	-52(%rbp), %esi
	testl	%esi, %esi
	jle	LBB0_23
## %bb.22:
	movq	%r12, %rdi
	callq	_print_formatted
LBB0_23:
	movq	%r14, %rdi
	callq	_libusb20_tr_close
	movq	%r15, %rdi
	callq	_libusb20_tr_close
	movq	%rbx, %rdi
	callq	_libusb20_dev_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"libusb20_dev_open: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"libusb20_dev_set_config_index: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"libusb20_tr_get_pointer: %s\n"

	.comm	_out_ep,4,2                     ## @out_ep
L_.str.3:                               ## @.str.3
	.asciz	"libusb20_tr_open: %s\n"

	.comm	_in_ep,4,2                      ## @in_ep
	.comm	_BUFLEN,4,2                     ## @BUFLEN
	.comm	_out_len,8,3                    ## @out_len
	.comm	_out_buf,8,3                    ## @out_buf
	.comm	_TIMEOUT,4,2                    ## @TIMEOUT
L_.str.4:                               ## @.str.4
	.asciz	"libusb20_tr_bulk_intr_sync (OUT): %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"sent %d bytes\n"

L_.str.6:                               ## @.str.6
	.asciz	"libusb20_tr_bulk_intr_sync: %s\n"

L_.str.7:                               ## @.str.7
	.asciz	"received %d bytes\n"

	.no_dead_strip	_doit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doit
_doit:                                  ; @doit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	w1, #2
	bl	_libusb20_dev_open
	cbz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_libusb20_strerror
	ldur	x8, [x29, #-72]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.2:
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_libusb20_dev_set_config_index
	cbz	w0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	bl	_libusb20_strerror
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.5:
	mov	x2, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_libusb20_tr_get_pointer
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1
	bl	_libusb20_tr_get_pointer
	cbz	x0, LBB0_12
; %bb.7:
	cbz	x20, LBB0_12
; %bb.8:
	mov	x21, x0
Lloh19:
	adrp	x8, _out_ep@GOTPAGE
Lloh20:
	ldr	x8, [x8, _out_ep@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_libusb20_tr_open
	cbnz	w0, LBB0_10
; %bb.9:
Lloh22:
	adrp	x8, _in_ep@GOTPAGE
Lloh23:
	ldr	x8, [x8, _in_ep@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x21
	mov	w1, #0
	mov	w2, #1
	bl	_libusb20_tr_open
	cbz	w0, LBB0_15
LBB0_10:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w19, [x8]
	bl	_libusb20_strerror
	ldur	x8, [x29, #-72]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.11:
	mov	x2, x0
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w19, [x8]
	mov	w0, #0
	bl	_libusb20_strerror
	ldur	x8, [x29, #-72]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.13:
	mov	x2, x0
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_fprintf
LBB0_15:
	mov	x24, sp
Lloh41:
	adrp	x25, _BUFLEN@GOTPAGE
Lloh42:
	ldr	x25, [x25, _BUFLEN@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh43:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh44:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh45:
	adrp	x8, _out_len@GOTPAGE
Lloh46:
	ldr	x8, [x8, _out_len@GOTPAGEOFF]
Lloh47:
	ldr	x2, [x8]
Lloh48:
	adrp	x26, _TIMEOUT@GOTPAGE
Lloh49:
	ldr	x26, [x26, _TIMEOUT@GOTPAGEOFF]
	cmp	x2, #1
	b.lt	LBB0_19
; %bb.16:
Lloh50:
	adrp	x8, _out_buf@GOTPAGE
Lloh51:
	ldr	x8, [x8, _out_buf@GOTPAGEOFF]
Lloh52:
	ldr	x1, [x8]
	ldr	w4, [x26]
	sub	x3, x29, #76
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_libusb20_tr_bulk_intr_sync
	cbz	w0, LBB0_18
; %bb.17:
Lloh53:
	adrp	x8, _stderr@GOTPAGE
Lloh54:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh55:
	ldr	w23, [x8]
	bl	_libusb20_strerror
	mov	x2, x0
Lloh56:
	adrp	x1, l_.str.4@PAGE
Lloh57:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_fprintf
LBB0_18:
	ldur	w1, [x29, #-76]
Lloh58:
	adrp	x0, l_.str.5@PAGE
Lloh59:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_19:
	ldr	w2, [x25]
	ldr	w4, [x26]
	sub	x3, x29, #76
	mov	x0, x21
	mov	x1, x22
	bl	_libusb20_tr_bulk_intr_sync
	cbz	w0, LBB0_21
; %bb.20:
Lloh60:
	adrp	x8, _stderr@GOTPAGE
Lloh61:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh62:
	ldr	w23, [x8]
	bl	_libusb20_strerror
	mov	x2, x0
Lloh63:
	adrp	x1, l_.str.6@PAGE
Lloh64:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	bl	_fprintf
LBB0_21:
	ldur	w1, [x29, #-76]
Lloh65:
	adrp	x0, l_.str.7@PAGE
Lloh66:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldur	w1, [x29, #-76]
	cmp	w1, #1
	b.lt	LBB0_23
; %bb.22:
	mov	x0, x22
	bl	_print_formatted
LBB0_23:
	mov	x0, x20
	bl	_libusb20_tr_close
	mov	x0, x21
	bl	_libusb20_tr_close
	mov	x0, x19
	bl	_libusb20_dev_close
	ldur	x8, [x29, #-72]
Lloh67:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh68:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh69:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	mov	sp, x24
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"libusb20_dev_open: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"libusb20_dev_set_config_index: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"libusb20_tr_get_pointer: %s\n"

	.comm	_out_ep,4,2                     ; @out_ep
l_.str.3:                               ; @.str.3
	.asciz	"libusb20_tr_open: %s\n"

	.comm	_in_ep,4,2                      ; @in_ep
	.comm	_BUFLEN,4,2                     ; @BUFLEN
	.comm	_out_len,8,3                    ; @out_len
	.comm	_out_buf,8,3                    ; @out_buf
	.comm	_TIMEOUT,4,2                    ; @TIMEOUT
l_.str.4:                               ; @.str.4
	.asciz	"libusb20_tr_bulk_intr_sync (OUT): %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"sent %d bytes\n"

l_.str.6:                               ; @.str.6
	.asciz	"libusb20_tr_bulk_intr_sync: %s\n"

l_.str.7:                               ; @.str.7
	.asciz	"received %d bytes\n"

	.no_dead_strip	_doit
.subsections_via_symbols
