	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp2112_write_read_req
_cp2112_write_read_req:                 ## @cp2112_write_read_req
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	-513(%rdx), %eax
	cmpl	$-512, %eax                     ## imm = 0xFE00
	jb	LBB0_2
## %bb.1:
	movl	%r9d, %ebx
	cmpl	$8, %r9d
	jae	LBB0_2
## %bb.3:
	movq	%r8, %r14
	movl	%ecx, %r15d
	movq	%rdi, %r12
	movq	_CP2112_DATA_WRITE_READ_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	addl	%esi, %esi
	movl	%esi, (%rdi)
	movl	%edx, %edi
	callq	_cpu_to_be16
	movl	%eax, 16(%r12)
	leal	1(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	8(%r12), %rdi
	movl	%r15d, (%rdi)
	addq	$4, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	$6, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CP2112_DATA_WRITE_READ_REQUEST,4,2 ## @CP2112_DATA_WRITE_READ_REQUEST
	.no_dead_strip	_cp2112_write_read_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp2112_write_read_req
_cp2112_write_read_req:                 ; @cp2112_write_read_req
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	w8, w2, #513
	cmn	w8, #512
	ccmp	w5, #8, #2, hs
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x0
Lloh3:
	adrp	x8, _CP2112_DATA_WRITE_READ_REQUEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CP2112_DATA_WRITE_READ_REQUEST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	lsl	w8, w1, #1
	str	w8, [x0]
	mov	x0, x2
	bl	_cpu_to_be16
	str	w0, [x22, #16]
	add	w8, w19, #1
	str	w8, [x22, #4]
	ldr	x0, [x22, #8]
	str	w21, [x0], #4
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	add	w0, w19, #6
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CP2112_DATA_WRITE_READ_REQUEST,4,2 ; @CP2112_DATA_WRITE_READ_REQUEST
	.no_dead_strip	_cp2112_write_read_req
.subsections_via_symbols
