	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexcop_usb_i2c_req
_flexcop_usb_i2c_req:                   ## @flexcop_usb_i2c_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
                                        ## kill: def $edx killed $edx def $rdx
	leal	-128(%rdx), %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.2:
	movq	%r9, %r14
	movl	%ecx, %r13d
	movl	%esi, %r15d
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movq	8(%rdi), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cltq
	leaq	l_switch.table.flexcop_usb_i2c_req(%rip), %rsi
	leaq	l_switch.table.flexcop_usb_i2c_req.2(%rip), %rbx
	movq	(%rbx,%rax,8), %rbx
	movl	(%rbx), %r12d
	orl	(%rcx), %r12d
	movq	(%rsi,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	shll	$8, %ebx
	movl	(%rdi), %eax
	shll	$4, %eax
	orl	%eax, %ebx
	shll	$8, %r13d
	orl	%r8d, %r13d
	movzbl	%al, %r11d
	movl	%ebx, %r9d
	sarl	$8, %r9d
	movzbl	%r8b, %r10d
	movl	%r13d, %eax
	sarl	$8, %eax
	leaq	L_.str.1(%rip), %rdi
	movl	%edx, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r11d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_deb_i2c
	addq	$16, %rsp
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	subq	$8, %rsp
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%r13d, %r9d
	pushq	%rax
	movl	16(%rbp), %ebx
	pushq	%rbx
	pushq	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ecx
	movq	_EREMOTEIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	cmpl	%ebx, %ecx
	cmovel	%edx, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_deb_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	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_USB_CTRL_PIPE_OUT,4,2     ## @B2C2_USB_CTRL_PIPE_OUT
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_B2C2_USB_CTRL_PIPE_IN,4,2      ## @B2C2_USB_CTRL_PIPE_IN
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported function for i2c_req %x\n"

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

	.comm	_HZ,4,2                         ## @HZ
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_flexcop_usb_i2c_req
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.flexcop_usb_i2c_req
l_switch.table.flexcop_usb_i2c_req:
	.quad	_B2C2_USB_CTRL_PIPE_OUT
	.quad	_B2C2_USB_CTRL_PIPE_OUT
	.quad	_B2C2_USB_CTRL_PIPE_IN
	.quad	_B2C2_USB_CTRL_PIPE_IN
	.quad	_B2C2_USB_CTRL_PIPE_OUT
	.quad	_B2C2_USB_CTRL_PIPE_OUT

	.p2align	3                               ## @switch.table.flexcop_usb_i2c_req.2
l_switch.table.flexcop_usb_i2c_req.2:
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_IN
	.quad	_USB_DIR_IN
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_OUT

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexcop_usb_i2c_req
_flexcop_usb_i2c_req:                   ; @flexcop_usb_i2c_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w8, w2, #128
	cmp	w8, #6
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x6
	mov	x20, x5
	mov	x21, x1
Lloh0:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x10, [x0, #8]
	sbfiz	x8, x8, #3, #32
Lloh3:
	adrp	x11, l_switch.table.flexcop_usb_i2c_req@PAGE
Lloh4:
	add	x11, x11, l_switch.table.flexcop_usb_i2c_req@PAGEOFF
	ldr	x11, [x11, x8]
Lloh5:
	adrp	x12, l_switch.table.flexcop_usb_i2c_req.2@PAGE
Lloh6:
	add	x12, x12, l_switch.table.flexcop_usb_i2c_req.2@PAGEOFF
	ldr	x8, [x12, x8]
	ldr	x26, [x10]
	ldr	w8, [x8]
	orr	w22, w8, w9
	ldr	w8, [x0]
	lsl	w8, w8, #4
	orr	w23, w8, w2, lsl #8
	orr	w24, w4, w3, lsl #8
	ldr	w25, [x11]
	and	w8, w8, #0xf0
	asr	w5, w23, #8
	and	w6, w4, #0xff
	asr	w7, w24, #8
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x2
	mov	x2, x22
	mov	x3, x21
	mov	x4, x8
	bl	_deb_i2c
	ldr	w0, [x26]
Lloh9:
	adrp	x8, _HZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	str	w8, [sp]
	mov	x1, x25
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
Lloh12:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w19
	csneg	w0, wzr, w8, eq
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_deb_info
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_B2C2_USB_CTRL_PIPE_OUT,4,2     ; @B2C2_USB_CTRL_PIPE_OUT
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_B2C2_USB_CTRL_PIPE_IN,4,2      ; @B2C2_USB_CTRL_PIPE_IN
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported function for i2c_req %x\n"

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

	.comm	_HZ,4,2                         ; @HZ
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_flexcop_usb_i2c_req
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.flexcop_usb_i2c_req
l_switch.table.flexcop_usb_i2c_req:
	.quad	_B2C2_USB_CTRL_PIPE_OUT
	.quad	_B2C2_USB_CTRL_PIPE_OUT
	.quad	_B2C2_USB_CTRL_PIPE_IN
	.quad	_B2C2_USB_CTRL_PIPE_IN
	.quad	_B2C2_USB_CTRL_PIPE_OUT
	.quad	_B2C2_USB_CTRL_PIPE_OUT

	.p2align	3                               ; @switch.table.flexcop_usb_i2c_req.2
l_switch.table.flexcop_usb_i2c_req.2:
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_IN
	.quad	_USB_DIR_IN
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_OUT

.subsections_via_symbols
