	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb20_dev_req_string_simple_sync ## -- Begin function libusb20_dev_req_string_simple_sync
	.p2align	4, 0x90
_libusb20_dev_req_string_simple_sync:   ## @libusb20_dev_req_string_simple_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	%r12
	pushq	%rbx
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	movl	%ecx, %r14d
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.2:
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-1072(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1020, %r8d                     ## imm = 0x3FC
	callq	_libusb20_dev_req_string_sync
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	-1060(%rbp), %edx
	shll	$8, %edx
	orl	-1064(%rbp), %edx
	leaq	-1072(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1020, %r8d                     ## imm = 0x3FC
	callq	_libusb20_dev_req_string_sync
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movl	-1072(%rbp), %eax
	cmpl	$1, %eax
	jg	LBB0_9
## %bb.5:
	movl	$0, (%r12)
	movq	_LIBUSB20_ERROR_OTHER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_6:
	movq	_LIBUSB20_ERROR_INVALID_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_8:
	movl	$0, (%r12)
	jmp	LBB0_22
LBB0_9:
	shrl	%eax
	cmpl	%r14d, %eax
	cmovael	%r14d, %eax
	decl	%eax
	je	LBB0_21
## %bb.10:
	movl	%eax, %r14d
	movl	$3, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%ecx, %r15d
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	movl	%r15d, %ecx
	cmpq	%rbx, %r14
	je	LBB0_21
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	-1064(%rbp,%rbx,8), %edx
	movl	-1060(%rbp,%rbx,8), %eax
	shll	$8, %eax
	orl	%edx, %eax
	testl	$65280, %eax                    ## imm = 0xFF00
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ecx, %esi
	movl	$1, %r15d
	andl	$1, %esi
	jne	LBB0_18
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	testb	%dl, %dl
	jne	LBB0_11
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%ecx, %edx
	andl	$2, %edx
	je	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	shrl	$8, %eax
	movl	$2, %r15d
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movb	%al, (%r12)
	movl	%eax, %ecx
	orl	$2, %ecx
	shll	$24, %ecx
	cmpl	$1040187392, %ecx               ## imm = 0x3E000000
	je	LBB0_12
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movsbl	%al, %edi
	callq	_isprint
	cmpl	$1, %eax
	sbbq	$-1, %r12
	jmp	LBB0_12
LBB0_21:
	movb	$0, (%r12)
	xorl	%eax, %eax
LBB0_22:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_24
## %bb.23:
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LIBUSB20_ERROR_INVALID_PARAM,4,2 ## @LIBUSB20_ERROR_INVALID_PARAM
	.comm	_LIBUSB20_ERROR_OTHER,4,2       ## @LIBUSB20_ERROR_OTHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libusb20_dev_req_string_simple_sync ; -- Begin function libusb20_dev_req_string_simple_sync
	.p2align	2
_libusb20_dev_req_string_simple_sync:   ; @libusb20_dev_req_string_simple_sync
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x2, LBB0_6
; %bb.1:
	mov	x20, x3
	cmp	w3, #0
	b.le	LBB0_6
; %bb.2:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	add	x3, sp, #12
	mov	w1, #0
	mov	w2, #0
	mov	w4, #1020
	bl	_libusb20_dev_req_string_sync
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldp	w8, w9, [sp, #20]
	orr	w2, w8, w9, lsl #8
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	w4, #1020
	bl	_libusb20_dev_req_string_sync
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.gt	LBB0_8
; %bb.5:
	str	wzr, [x19]
Lloh3:
	adrp	x8, _LIBUSB20_ERROR_OTHER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIBUSB20_ERROR_OTHER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_6:
Lloh6:
	adrp	x8, _LIBUSB20_ERROR_INVALID_PARAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LIBUSB20_ERROR_INVALID_PARAM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_18
LBB0_7:
	str	wzr, [x19]
	b	LBB0_18
LBB0_8:
	lsr	w8, w8, #1
	cmp	w8, w20
	csel	w8, w8, w20, lo
	subs	w20, w8, #1
	b.eq	LBB0_17
; %bb.9:
	add	x8, sp, #12
	add	x21, x8, #12
	mov	w23, #3
	mov	w22, #1040187392
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #8
	subs	x20, x20, #1
	b.eq	LBB0_17
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	w9, w8, [x21, #-4]
	orr	w8, w9, w8, lsl #8
	and	w10, w8, #0xff00
	and	w11, w23, #0x1
	cmp	w10, #0
	ccmp	w11, #0, #4, eq
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	and	w9, w9, #0xff
	and	w10, w23, #0x2
	cmp	w9, #0
	ccmp	w10, #0, #4, eq
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	lsr	w8, w8, #8
	mov	w23, #2
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w23, #1
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	strb	w8, [x19]
	lsl	w9, w8, #24
	orr	w9, w9, #0x2000000
	cmp	w9, w22
	b.eq	LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	sxtb	w0, w8
	bl	_isprint
	cmp	w0, #0
	cinc	x19, x19, ne
	b	LBB0_10
LBB0_17:
	mov	w0, #0
	strb	wzr, [x19]
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.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_ERROR_INVALID_PARAM,4,2 ; @LIBUSB20_ERROR_INVALID_PARAM
	.comm	_LIBUSB20_ERROR_OTHER,4,2       ; @LIBUSB20_ERROR_OTHER
.subsections_via_symbols
