	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexcop_usb_v8_memory_req
_flexcop_usb_v8_memory_req:             ## @flexcop_usb_v8_memory_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	%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
	movl	%r9d, %r12d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shll	$8, %ebx
	cmpl	$130, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %r13d
	je	LBB0_2
## %bb.3:
	cmpl	$128, %r13d
	jne	LBB0_5
## %bb.4:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	orl	(%r8), %ebx
	movq	_B2C2_USB_CTRL_PIPE_OUT@GOTPCREL(%rip), %rax
	movq	_B2C2_WAIT_FOR_OPERATION_V8WRITE@GOTPCREL(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	_B2C2_USB_CTRL_PIPE_OUT@GOTPCREL(%rip), %rax
	movq	_B2C2_WAIT_FOR_OPERATION_V8FLASH@GOTPCREL(%rip), %rsi
LBB0_7:
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_2:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	_B2C2_USB_CTRL_PIPE_IN@GOTPCREL(%rip), %rax
	movq	_B2C2_WAIT_FOR_OPERATION_V8READ@GOTPCREL(%rip), %rsi
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %r15d
	orl	(%rdx), %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%ebx, %r8d
	movl	%r12d, %r9d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	callq	_deb_v8
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	subq	$8, %rsp
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%r15
	pushq	%r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	_deb_v8@GOTPCREL(%rip), %rdx
	callq	_debug_dump
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	cmpl	%r12d, %r14d
	cmovel	%ecx, %eax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_deb_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_B2C2_WAIT_FOR_OPERATION_V8READ,4,2 ## @B2C2_WAIT_FOR_OPERATION_V8READ
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_B2C2_USB_CTRL_PIPE_IN,4,2      ## @B2C2_USB_CTRL_PIPE_IN
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_B2C2_WAIT_FOR_OPERATION_V8WRITE,4,2 ## @B2C2_WAIT_FOR_OPERATION_V8WRITE
	.comm	_B2C2_USB_CTRL_PIPE_OUT,4,2     ## @B2C2_USB_CTRL_PIPE_OUT
	.comm	_B2C2_WAIT_FOR_OPERATION_V8FLASH,4,2 ## @B2C2_WAIT_FOR_OPERATION_V8FLASH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported request for v8_mem_req %x.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"v8mem: %02x %02x %04x %04x, len: %d\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_flexcop_usb_v8_memory_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexcop_usb_v8_memory_req
_flexcop_usb_v8_memory_req:             ; @flexcop_usb_v8_memory_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _USB_TYPE_VENDOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w23, w2, #8
	cmp	w1, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_8
; %bb.3:
	ldr	w9, [x20]
	orr	w23, w9, w23
Lloh3:
	adrp	x9, _B2C2_USB_CTRL_PIPE_OUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _B2C2_USB_CTRL_PIPE_OUT@GOTPAGEOFF]
Lloh5:
	adrp	x10, _B2C2_WAIT_FOR_OPERATION_V8WRITE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _B2C2_WAIT_FOR_OPERATION_V8WRITE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x9, _B2C2_USB_CTRL_PIPE_OUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _B2C2_USB_CTRL_PIPE_OUT@GOTPAGEOFF]
Lloh9:
	adrp	x10, _B2C2_WAIT_FOR_OPERATION_V8FLASH@GOTPAGE
Lloh10:
	ldr	x10, [x10, _B2C2_WAIT_FOR_OPERATION_V8FLASH@GOTPAGEOFF]
LBB0_5:
Lloh11:
	adrp	x11, _USB_DIR_OUT@GOTPAGE
Lloh12:
	ldr	x11, [x11, _USB_DIR_OUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x9, _B2C2_USB_CTRL_PIPE_IN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _B2C2_USB_CTRL_PIPE_IN@GOTPAGEOFF]
Lloh15:
	adrp	x10, _B2C2_WAIT_FOR_OPERATION_V8READ@GOTPAGE
Lloh16:
	ldr	x10, [x10, _B2C2_WAIT_FOR_OPERATION_V8READ@GOTPAGEOFF]
Lloh17:
	adrp	x11, _USB_DIR_IN@GOTPAGE
Lloh18:
	ldr	x11, [x11, _USB_DIR_IN@GOTPAGEOFF]
LBB0_7:
	ldr	w25, [x9]
	ldr	w28, [x10]
	ldr	w9, [x11]
	orr	w26, w9, w8
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x26
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x19
	bl	_deb_v8
Lloh21:
	adrp	x27, _deb_v8@GOTPAGE
Lloh22:
	ldr	x27, [x27, _deb_v8@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh23:
	adrp	x8, _HZ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mul	w8, w8, w28
	str	w8, [sp]
	mov	x1, x25
	mov	x2, x21
	mov	x3, x26
	mov	x4, x22
	mov	x5, x23
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x27
	bl	_debug_dump
Lloh26:
	adrp	x8, _EIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmp	w21, w19
	csneg	w0, wzr, w8, eq
	b	LBB0_9
LBB0_8:
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_deb_info
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_B2C2_WAIT_FOR_OPERATION_V8READ,4,2 ; @B2C2_WAIT_FOR_OPERATION_V8READ
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_B2C2_USB_CTRL_PIPE_IN,4,2      ; @B2C2_USB_CTRL_PIPE_IN
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_B2C2_WAIT_FOR_OPERATION_V8WRITE,4,2 ; @B2C2_WAIT_FOR_OPERATION_V8WRITE
	.comm	_B2C2_USB_CTRL_PIPE_OUT,4,2     ; @B2C2_USB_CTRL_PIPE_OUT
	.comm	_B2C2_WAIT_FOR_OPERATION_V8FLASH,4,2 ; @B2C2_WAIT_FOR_OPERATION_V8FLASH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported request for v8_mem_req %x.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"v8mem: %02x %02x %04x %04x, len: %d\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_flexcop_usb_v8_memory_req
.subsections_via_symbols
