	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ce6230_ctrl_msg
_ce6230_ctrl_msg:                       ## @ce6230_ctrl_msg
	.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	(%rsi), %r13d
	leal	-128(%r13), %eax
	cmpl	$6, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	20(%rsi), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cltq
	leaq	l_switch.table.ce6230_ctrl_msg(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %r14
	movl	(%rax), %ebx
	orl	(%r14), %ebx
	movl	24(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rsi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r14), %ecx
	cmpl	%ecx, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_7
## %bb.6:
	movq	8(%r15), %rsi
	movl	16(%r15), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	(%r12), %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	jmp	LBB0_8
LBB0_1:
	movq	(%rdi), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_7:
	movq	(%r12), %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
LBB0_8:
	movl	%eax, %r14d
	movl	$1, %edi
	callq	_msleep
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	16(%r15), %r10d
	movq	_CE6230_USB_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	subq	$8, %rsp
	movl	%r14d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r10
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	16(%r15), %eax
	subq	$8, %rsp
	movl	%r13d, %esi
	movl	%ebx, %r13d
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	%r12, %rbx
	movq	%r12, %r9
	pushq	%rax
	callq	_dvb_usb_dbg_usb_control_msg
	addq	$16, %rsp
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.10:
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%r14d, %r14d
	cmpl	%eax, %r13d
	movq	%rbx, %rsi
	jne	LBB0_13
## %bb.11:
	movq	8(%r15), %rdi
	movl	16(%r15), %edx
	callq	_memcpy
	jmp	LBB0_12
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %ecx
	callq	_dev_err
LBB0_12:
	movq	%rbx, %rsi
LBB0_13:
	movq	%rsi, %rdi
	callq	_kfree
LBB0_14:
	movl	%r14d, %eax
	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	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unknown command=%02x\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CE6230_USB_TIMEOUT,4,2         ## @CE6230_USB_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"%s: usb_control_msg() failed=%d\n"

	.no_dead_strip	_ce6230_ctrl_msg
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ce6230_ctrl_msg
l_switch.table.ce6230_ctrl_msg:
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_IN
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_IN
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_IN

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ce6230_ctrl_msg
_ce6230_ctrl_msg:                       ; @ce6230_ctrl_msg
	.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	x21, x0
	ldr	w22, [x1]
	sub	w8, w22, #128
	cmp	w8, #6
	b.hs	LBB0_4
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x9, l_switch.table.ce6230_ctrl_msg@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ce6230_ctrl_msg@PAGEOFF
	ldp	w24, w23, [x1, #20]
	ldr	x8, [x9, w8, sxtw #3]
Lloh2:
	adrp	x27, _USB_TYPE_VENDOR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w25, [x27]
	ldr	w26, [x8]
	ldr	w0, [x1, #16]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	orr	w25, w26, w25
	ldr	w8, [x27]
Lloh7:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w25, w8
	b.ne	LBB0_7
; %bb.3:
	ldr	x1, [x20, #8]
	ldr	w2, [x20, #16]
	mov	x0, x19
	bl	_memcpy
	ldr	x0, [x21]
	mov	w1, #0
	bl	_usb_sndctrlpipe
	b	LBB0_8
LBB0_4:
	ldr	x0, [x21]
Lloh10:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh11:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_14
LBB0_7:
	ldr	x0, [x21]
	mov	w1, #0
	bl	_usb_rcvctrlpipe
LBB0_8:
	mov	x26, x0
	mov	w0, #1
	bl	_msleep
	ldr	x0, [x21]
	ldr	w7, [x20, #16]
Lloh19:
	adrp	x8, _CE6230_USB_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CE6230_USB_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x1, x26
	mov	x2, x22
	mov	x3, x25
	mov	x4, x23
	mov	x5, x24
	mov	x6, x19
	bl	_usb_control_msg
	mov	x26, x0
	ldr	x0, [x21]
	ldr	w6, [x20, #16]
	mov	x1, x22
	mov	x2, x25
	mov	x3, x23
	mov	x4, x24
	mov	x5, x19
	bl	_dvb_usb_dbg_usb_control_msg
	tbnz	w26, #31, LBB0_12
; %bb.9:
	ldr	w8, [x27]
Lloh22:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh23:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w25, w8
	b.ne	LBB0_11
; %bb.10:
	ldr	x0, [x20, #8]
	ldr	w2, [x20, #16]
	mov	x1, x19
	bl	_memcpy
LBB0_11:
	mov	w26, #0
	b	LBB0_13
LBB0_12:
	ldr	x0, [x21]
Lloh25:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x26
	bl	_dev_err
LBB0_13:
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x0, x26
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unknown command=%02x\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CE6230_USB_TIMEOUT,4,2         ; @CE6230_USB_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"%s: usb_control_msg() failed=%d\n"

	.no_dead_strip	_ce6230_ctrl_msg
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ce6230_ctrl_msg
l_switch.table.ce6230_ctrl_msg:
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_IN
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_IN
	.quad	_USB_DIR_OUT
	.quad	_USB_DIR_IN

.subsections_via_symbols
