	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_write_ctrl_reg         ## -- Begin function cx231xx_write_ctrl_reg
	.p2align	4, 0x90
_cx231xx_write_ctrl_reg:                ## @cx231xx_write_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movl	%eax, %esi
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_5
## %bb.4:
	movq	_URB_MAX_CTRL_SIZE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jl	LBB0_5
## %bb.6:
	leal	-1(%r13), %eax
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.7:
	cltq
	leaq	l_switch.table.cx231xx_write_ctrl_reg(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %r12d
	cmpl	$255, %r12d
	jne	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_2:
	subl	(%rax), %r12d
	movl	%r12d, %eax
	addq	$40, %rsp
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_reg_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.9:
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movzbl	%r14b, %r10d
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r14d, %r11d
	sarl	$8, %r11d
	movq	%r13, %r14
	movl	%r14d, %r15d
	shrl	$8, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %r9d
	xorl	%eax, %eax
	pushq	%r15
	pushq	%r13
	pushq	%r11
	pushq	%r10
	callq	_cx231xx_isocdbg
	addq	$32, %rsp
	movl	%r14d, %r15d
	xorl	%r12d, %r12d
	movq	%rbx, %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r14,%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_cx231xx_isocdbg
	incq	%r12
	cmpq	%r12, %r15
	jne	LBB0_10
## %bb.11:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_cx231xx_isocdbg
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_12:
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %r8d
	movl	%r14d, %r9d
	pushq	%rax
	pushq	%r13
	pushq	%rbx
	callq	___usb_control_msg
	addq	$72, %rsp
	jmp	LBB0_13
	.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	_reg_debug,8,3                  ## @reg_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(pipe 0x%08x): OUT: %02x %02x %02x %02x %02x %02x %02x %02x >>>"

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	" %02x"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_HZ,4,2                         ## @HZ
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.cx231xx_write_ctrl_reg
l_switch.table.cx231xx_write_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_write_ctrl_reg         ; -- Begin function cx231xx_write_ctrl_reg
	.p2align	2
_cx231xx_write_ctrl_reg:                ; @cx231xx_write_ctrl_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w0, [x0, #4]
	mov	w1, #0
	bl	_usb_sndctrlpipe
	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_7
LBB0_2:
	subs	w8, w19, #1
	b.lt	LBB0_6
; %bb.3:
Lloh5:
	adrp	x9, _URB_MAX_CTRL_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _URB_MAX_CTRL_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w19
	b.lt	LBB0_6
; %bb.4:
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.5:
Lloh8:
	adrp	x9, l_switch.table.cx231xx_write_ctrl_reg@PAGE
Lloh9:
	add	x9, x9, l_switch.table.cx231xx_write_ctrl_reg@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w25, [x8]
	cmp	w25, #255
	b.ne	LBB0_9
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_9:
	mov	x24, x0
Lloh12:
	adrp	x8, _reg_debug@GOTPAGE
Lloh13:
	ldr	x8, [x8, _reg_debug@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x27, _USB_DIR_OUT@GOTPAGE
Lloh16:
	ldr	x27, [x27, _USB_DIR_OUT@GOTPAGEOFF]
Lloh17:
	adrp	x28, _USB_TYPE_VENDOR@GOTPAGE
Lloh18:
	ldr	x28, [x28, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh19:
	adrp	x26, _USB_RECIP_DEVICE@GOTPAGE
Lloh20:
	ldr	x26, [x26, _USB_RECIP_DEVICE@GOTPAGEOFF]
	cbz	x8, LBB0_15
; %bb.10:
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w8, w8, w9
	and	w9, w21, #0xff
	asr	w10, w21, #8
	lsr	w11, w19, #8
	stp	x19, x11, [sp, #56]
	stp	x9, x10, [sp, #40]
	stp	xzr, x25, [sp, #24]
	stp	x8, x22, [sp, #8]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	str	x24, [sp]
	bl	_cx231xx_isocdbg
	ldrb	w8, [x20]
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_cx231xx_isocdbg
	cmp	w19, #1
	b.eq	LBB0_14
; %bb.11:
	ldrb	w8, [x20, #1]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_cx231xx_isocdbg
	cmp	w19, #2
	b.eq	LBB0_14
; %bb.12:
	ldrb	w8, [x20, #2]
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_cx231xx_isocdbg
	cmp	w19, #3
	b.eq	LBB0_14
; %bb.13:
	ldrb	w8, [x20, #3]
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_cx231xx_isocdbg
LBB0_14:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_cx231xx_isocdbg
LBB0_15:
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w3, w8, w9
Lloh33:
	adrp	x8, _HZ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	mov	x4, x25
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	___usb_control_msg
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.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	_reg_debug,8,3                  ; @reg_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(pipe 0x%08x): OUT: %02x %02x %02x %02x %02x %02x %02x %02x >>>"

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	" %02x"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_HZ,4,2                         ; @HZ
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cx231xx_write_ctrl_reg
l_switch.table.cx231xx_write_ctrl_reg:
	.quad	_ENABLE_ONE_BYTE
	.quad	_ENABLE_TWE_BYTE
	.quad	_ENABLE_THREE_BYTE
	.quad	_ENABLE_FOUR_BYTE

.subsections_via_symbols
