	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_read_ctrl_reg          ## -- Begin function cx231xx_read_ctrl_reg
	.p2align	4, 0x90
_cx231xx_read_ctrl_reg:                 ## @cx231xx_read_ctrl_reg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	%r15d, %r9d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_URB_MAX_CTRL_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jl	LBB0_4
## %bb.5:
	leal	-1(%r12), %ecx
	cmpl	$3, %ecx
	ja	LBB0_4
## %bb.6:
	movslq	%ecx, %rcx
	leaq	l_switch.table.cx231xx_read_ctrl_reg(%rip), %rsi
	movq	(%rsi,%rcx,8), %rcx
	movl	(%rcx), %r8d
	cmpl	$255, %r8d
	jne	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_2:
	subl	(%rax), %r14d
	movl	%r14d, %eax
	addq	$8, %rsp
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_HZ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	pushq	%r10
	pushq	%r12
	pushq	%r15
	callq	___usb_control_msg
	addq	$40, %rsp
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_DISCONNECTED,4,2           ## @DEV_DISCONNECTED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_URB_MAX_CTRL_SIZE,4,2          ## @URB_MAX_CTRL_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENABLE_ONE_BYTE,4,2            ## @ENABLE_ONE_BYTE
	.comm	_ENABLE_TWE_BYTE,4,2            ## @ENABLE_TWE_BYTE
	.comm	_ENABLE_THREE_BYTE,4,2          ## @ENABLE_THREE_BYTE
	.comm	_ENABLE_FOUR_BYTE,4,2           ## @ENABLE_FOUR_BYTE
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_HZ,4,2                         ## @HZ
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cx231xx_read_ctrl_reg
l_switch.table.cx231xx_read_ctrl_reg:
	.quad	_ENABLE_ONE_BYTE
	.quad	_ENABLE_TWE_BYTE
	.quad	_ENABLE_THREE_BYTE
	.quad	_ENABLE_FOUR_BYTE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_read_ctrl_reg          ; -- Begin function cx231xx_read_ctrl_reg
	.p2align	2
_cx231xx_read_ctrl_reg:                 ; @cx231xx_read_ctrl_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0, #4]
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _DEV_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEV_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _URB_MAX_CTRL_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _URB_MAX_CTRL_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w19
	b.lt	LBB0_5
; %bb.3:
	sub	w8, w19, #1
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.4:
Lloh8:
	adrp	x9, l_switch.table.cx231xx_read_ctrl_reg@PAGE
Lloh9:
	add	x9, x9, l_switch.table.cx231xx_read_ctrl_reg@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w4, [x8]
	cmp	w4, #255
	b.ne	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x1, x0
Lloh12:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _USB_RECIP_DEVICE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _USB_RECIP_DEVICE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh20:
	ldr	w9, [x10]
	orr	w3, w8, w9
Lloh21:
	adrp	x8, _HZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x23
	mov	x2, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	___usb_control_msg
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_DISCONNECTED,4,2           ; @DEV_DISCONNECTED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_URB_MAX_CTRL_SIZE,4,2          ; @URB_MAX_CTRL_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENABLE_ONE_BYTE,4,2            ; @ENABLE_ONE_BYTE
	.comm	_ENABLE_TWE_BYTE,4,2            ; @ENABLE_TWE_BYTE
	.comm	_ENABLE_THREE_BYTE,4,2          ; @ENABLE_THREE_BYTE
	.comm	_ENABLE_FOUR_BYTE,4,2           ; @ENABLE_FOUR_BYTE
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_HZ,4,2                         ; @HZ
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cx231xx_read_ctrl_reg
l_switch.table.cx231xx_read_ctrl_reg:
	.quad	_ENABLE_ONE_BYTE
	.quad	_ENABLE_TWE_BYTE
	.quad	_ENABLE_THREE_BYTE
	.quad	_ENABLE_FOUR_BYTE

.subsections_via_symbols
