	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au6610_usb_msg
_au6610_usb_msg:                        ## @au6610_usb_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r15d
	movq	%rcx, %r13
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$6, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpl	$2, %r15d
	je	LBB0_6
## %bb.3:
	cmpl	$1, %r15d
	jne	LBB0_5
## %bb.4:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r14d
	shll	$8, %r14d
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r14d
	shll	$8, %r14d
	addl	4(%r13), %r14d
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rdx
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	addl	%r15d, %r15d
	movq	_AU6610_USB_TIMEOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	pushq	%r10
	pushq	$6
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	subq	$8, %rsp
	movl	%r12d, %esi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movq	%rbx, %r9
	pushq	$6
	callq	_dvb_usb_dbg_usb_control_msg
	addq	$16, %rsp
	andl	$-2, %r12d
	cmpl	$128, %r12d
	jne	LBB0_10
## %bb.8:
	testl	%r13d, %r13d
	js	LBB0_10
## %bb.9:
	movl	16(%rbx), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: wlen=%d, aborting\n"

	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_AU6610_USB_TIMEOUT,4,2         ## @AU6610_USB_TIMEOUT
	.no_dead_strip	_au6610_usb_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au6610_usb_msg
_au6610_usb_msg:                        ; @au6610_usb_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	x20, x5
	mov	x24, x4
	mov	x25, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #6
	bl	_kmalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	cmp	w24, #2
	b.eq	LBB0_5
; %bb.2:
	cmp	w24, #1
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x25]
	lsl	w24, w8, #8
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_5:
	ldp	w8, w9, [x25]
	add	w24, w9, w8, lsl #8
LBB0_6:
	ldr	x25, [x22]
	mov	x0, x25
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh6:
	adrp	x27, _USB_TYPE_VENDOR@GOTPAGE
Lloh7:
	ldr	x27, [x27, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh8:
	adrp	x28, _USB_DIR_IN@GOTPAGE
Lloh9:
	ldr	x28, [x28, _USB_DIR_IN@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w3, w9, w8
	lsl	w26, w23, #1
Lloh10:
	adrp	x8, _AU6610_USB_TIMEOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AU6610_USB_TIMEOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x25
	mov	x2, x21
	mov	x4, x26
	mov	x5, x24
	mov	x6, x19
	mov	w7, #6
	bl	_usb_control_msg
	mov	x23, x0
	ldr	x0, [x22]
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w2, w9, w8
	mov	x1, x21
	mov	x3, x26
	mov	x4, x24
	mov	x5, x19
	mov	w6, #6
	bl	_dvb_usb_dbg_usb_control_msg
	and	w8, w21, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.7:
	tbnz	w23, #31, LBB0_10
; %bb.8:
	ldr	w8, [x19, #16]
	str	w8, [x20]
	b	LBB0_10
LBB0_9:
	ldr	x0, [x22]
Lloh13:
	adrp	x8, _KBUILD_MODNAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x24
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: wlen=%d, aborting\n"

	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_AU6610_USB_TIMEOUT,4,2         ; @AU6610_USB_TIMEOUT
	.no_dead_strip	_au6610_usb_msg
.subsections_via_symbols
