	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_val
_snd_val:                               ## @snd_val
	.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	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	16(%rdi), %r14
	cmpl	$16136, %esi                    ## imm = 0x3F08
	jne	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$1796, %esi                     ## imm = 0x704
	callq	_reg_r
	movq	%r12, %rdi
	movl	$1797, %esi                     ## imm = 0x705
	callq	_reg_r
	movl	%eax, %r15d
	movq	%r12, %rdi
	movl	$1616, %esi                     ## imm = 0x650
	callq	_reg_r
	movq	%r12, %rdi
	movl	$1620, %esi                     ## imm = 0x654
	movl	%r15d, %edx
	callq	_reg_w
	addl	$4, %r15d
	andl	$63, %r15d
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %eax
	shrl	$16, %eax
	movzbl	%al, %edx
	movq	%r12, %rdi
	movl	$1620, %esi                     ## imm = 0x654
	callq	_reg_w
	movl	$4, %r15d
LBB0_3:
	movzbl	%bh, %edx
	movq	%r12, %rdi
	movl	$1621, %esi                     ## imm = 0x655
	callq	_reg_w
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movzbl	%bl, %edx
	movq	%r12, %rdi
	movl	$1622, %esi                     ## imm = 0x656
	callq	_reg_w
	movq	%r12, %rdi
	movl	$1623, %esi                     ## imm = 0x657
	xorl	%edx, %edx
	callq	_reg_w
	movq	%r12, %rdi
	movl	$1624, %esi                     ## imm = 0x658
	movl	$4, %edx
	callq	_reg_w
	movq	%r12, %rdi
	movl	$1625, %esi                     ## imm = 0x659
	xorl	%edx, %edx
	callq	_reg_w
	movq	%r12, %rdi
	movl	$1626, %esi                     ## imm = 0x65A
	xorl	%edx, %edx
	callq	_reg_w
	movq	%r12, %rdi
	movl	$1627, %esi                     ## imm = 0x65B
	xorl	%edx, %edx
	callq	_reg_w
	movq	%r12, %rdi
	movl	$1616, %esi                     ## imm = 0x650
	movl	$5, %edx
	callq	_reg_w
	cmpl	$0, (%r12)
	js	LBB0_8
## %bb.4:
	movl	%r13d, %eax
	shrl	$24, %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx)
	movl	%r13d, %eax
	shrl	$16, %eax
	movl	%eax, 4(%rcx)
	movl	%r13d, %eax
	shrl	$8, %eax
	movl	%eax, 8(%rcx)
	movl	%r13d, 12(%rcx)
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_usb_sndbulkpipe
	movq	8(%r12), %rdx
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$4, %ecx
	movl	$500, %r9d                      ## imm = 0x1F4
	callq	_usb_bulk_msg
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	cmpl	$16136, -44(%rbp)               ## 4-byte Folded Reload
                                        ## imm = 0x3F08
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movl	$1797, %esi                     ## imm = 0x705
	movl	%r15d, %edx
	callq	_reg_w
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	%r14d, (%r12)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snd_val err %d\n"

	.no_dead_strip	_snd_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function snd_val
lCPI0_0:
	.long	4294967272                      ; 0xffffffe8
	.long	4294967280                      ; 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_snd_val:                               ; @snd_val
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #16]
	mov	w8, #16136
	cmp	w1, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1796
	bl	_reg_r
	mov	x0, x19
	mov	w1, #1797
	bl	_reg_r
	mov	x23, x0
	mov	x0, x19
	mov	w1, #1616
	bl	_reg_r
	mov	x0, x19
	mov	w1, #1620
	mov	x2, x23
	bl	_reg_w
	add	w8, w23, #4
	and	w23, w8, #0x3f
	b	LBB0_3
LBB0_2:
	ubfx	w2, w20, #16, #8
	mov	x0, x19
	mov	w1, #1620
	bl	_reg_w
	mov	w23, #4
LBB0_3:
	ubfx	w2, w20, #8, #8
	mov	x0, x19
	mov	w1, #1621
	bl	_reg_w
	and	w2, w20, #0xff
	mov	x0, x19
	mov	w1, #1622
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1623
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1624
	mov	w2, #4
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1625
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1626
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1627
	mov	w2, #0
	bl	_reg_w
	mov	x0, x19
	mov	w1, #1616
	mov	w2, #5
	bl	_reg_w
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_8
; %bb.4:
	dup.2s	v0, w22
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	ldr	x8, [x19, #8]
	str	d0, [x8]
	lsr	w9, w22, #8
	stp	w9, w22, [x8, #8]
	mov	x0, x21
	mov	w1, #6
	bl	_usb_sndbulkpipe
	mov	x1, x0
	ldr	x2, [x19, #8]
	add	x4, sp, #12
	mov	x0, x21
	mov	w3, #4
	mov	w5, #500
	bl	_usb_bulk_msg
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	w8, #16136
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #1797
	mov	x2, x23
	bl	_reg_w
	b	LBB0_8
LBB0_7:
	mov	x21, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
	str	w21, [x19]
LBB0_8:
	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
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snd_val err %d\n"

	.no_dead_strip	_snd_val
.subsections_via_symbols
