	.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	%edx, %r15d
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$2, %r8d
	je	LBB0_4
## %bb.1:
	cmpl	$1, %r8d
	jne	LBB0_3
## %bb.2:
	movl	(%rcx), %ebx
	shll	$8, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	(%rcx), %ebx
	shll	$8, %ebx
	addl	4(%rcx), %ebx
LBB0_5:
	movl	(%rdi), %r13d
	movl	%r13d, %edi
	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
	addl	%r15d, %r15d
	movq	_AU6610_USB_TIMEOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	subq	$8, %rsp
	leaq	-80(%rbp), %r11
	movl	%r13d, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	pushq	%r10
	pushq	$24
	pushq	%r11
	callq	_usb_control_msg
	addq	$32, %rsp
	andl	$-2, %r12d
	cmpl	$128, %r12d
	jne	LBB0_8
## %bb.6:
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	-64(%rbp), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%r8d, %esi
	callq	_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wlen = %x, aborting."

	.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	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
	mov	x19, x5
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cmp	w4, #2
	b.eq	LBB0_3
; %bb.1:
	cmp	w4, #1
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x3]
	lsl	w22, w8, #8
	b	LBB0_4
LBB0_3:
	ldp	w8, w9, [x3]
	add	w22, w9, w8, lsl #8
LBB0_4:
	ldr	w23, [x0]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _USB_TYPE_VENDOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	lsl	w4, w21, #1
Lloh9:
	adrp	x8, _AU6610_USB_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AU6610_USB_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp]
	add	x6, sp, #16
	mov	x0, x23
	mov	x2, x20
	mov	x5, x22
	mov	w7, #24
	bl	_usb_control_msg
	and	w8, w20, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.5:
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w8, [sp, #32]
	str	w8, [x19]
	b	LBB0_8
LBB0_7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x4
	bl	_warn
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldr	x8, [sp, #40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	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
	add	sp, sp, #112
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wlen = %x, aborting."

	.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
