	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9015_streaming_ctrl
_af9015_streaming_ctrl:                 ## @af9015_streaming_ctrl
	.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	%esi, %r12d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_fe_to_d
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_d_to_priv
	movq	8(%r14), %r15
	movq	%rbx, %rdi
	movq	%rax, %rbx
	callq	_fe_to_adap
	movl	(%rax), %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%rbx), %rax
	cmpl	$0, (%rax,%r13,4)
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.6:
	testl	%r12d, %r12d
	je	LBB0_12
LBB0_7:
	testl	%r13d, %r13d
	jne	LBB0_12
## %bb.8:
	movl	8(%rbx), %edi
	movl	$56595, %esi                    ## imm = 0xDD13
	movl	$32, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	%rbx, %r14
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.9:
	movl	8(%r14), %edi
	movl	$56593, %esi                    ## imm = 0xDD11
	movl	$32, %edx
	movl	$32, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.10:
	movl	8(%r14), %edi
	xorl	%r14d, %r14d
	movl	$54535, %esi                    ## imm = 0xD507
	movl	$4, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_26
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	(%r14), %rax
	movq	(%rax), %r14
	movq	_USB_SPEED_FULL@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	cmpq	%r15, %r14
	movl	$235, %eax
	movl	$4089, %ecx                     ## imm = 0xFF9
	cmovel	%eax, %ecx
	movzbl	%cl, %eax
	movl	%eax, -56(%rbp)
	shrl	$8, %ecx
	movl	%ecx, -52(%rbp)
	xorl	%eax, %eax
	testq	%r13, %r13
	setne	%al
	leal	(%rax,%rax), %esi
	addl	$56712, %esi                    ## imm = 0xDD88
	movl	8(%rbx), %edi
	leaq	-56(%rbp), %rdx
	movl	$2, %ecx
	callq	_regmap_bulk_write
	movq	%rbx, %rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.2:
	cmpq	$1, %r13
	movl	$56589, %esi                    ## imm = 0xDD0D
	sbbl	$0, %esi
	cmpq	%r15, %r14
	movl	$16, %eax
	movl	$128, %edx
	cmovel	%eax, %edx
	movq	%rcx, %r15
	movl	8(%rcx), %edi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.3:
	movq	16(%r15), %r14
	xorl	%ecx, %ecx
	testq	%r14, %r14
	setne	%cl
	movl	8(%r15), %edi
	movl	$54539, %esi                    ## imm = 0xD50B
	movl	$1, %edx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.4:
	xorl	%ecx, %ecx
	testq	%r14, %r14
	setne	%cl
	shll	$4, %ecx
	movl	8(%r15), %edi
	movl	$54560, %esi                    ## imm = 0xD520
	movl	$16, %edx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.5:
	movq	%r15, %rcx
	movq	(%r15), %rax
	movl	$1, (%rax,%r13,4)
	movq	%r15, %rbx
	testl	%r12d, %r12d
	jne	LBB0_7
LBB0_12:
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.13:
	cmpl	$1, %r13d
	jne	LBB0_17
## %bb.14:
	movl	8(%rbx), %edi
	movl	$56595, %esi                    ## imm = 0xDD13
	movl	$64, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	%rbx, %r14
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.15:
	movl	8(%r14), %edi
	movl	$56593, %esi                    ## imm = 0xDD11
	movl	$64, %edx
	movl	$64, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.16:
	movl	8(%r14), %edi
	xorl	%r14d, %r14d
	movl	$54539, %esi                    ## imm = 0xD50B
	movl	$2, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_26
LBB0_17:
	movl	%r13d, %eax
	orl	%r12d, %eax
	je	LBB0_18
## %bb.21:
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	jne	LBB0_28
## %bb.22:
	cmpl	$1, %r13d
	jne	LBB0_28
## %bb.23:
	movq	%rbx, %r15
	movl	8(%rbx), %edi
	movl	$54539, %esi                    ## imm = 0xD50B
	movl	$2, %edx
	movl	$2, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.24:
	movl	8(%r15), %edi
	xorl	%r14d, %r14d
	movl	$56593, %esi                    ## imm = 0xDD11
	movl	$64, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.25:
	movl	8(%r15), %edi
	movl	$56595, %esi                    ## imm = 0xDD13
	movl	$64, %edx
	movl	$64, %ecx
	jmp	LBB0_26
LBB0_18:
	movl	8(%rbx), %edi
	movl	$54535, %esi                    ## imm = 0xD507
	movl	$4, %edx
	movl	$4, %ecx
	callq	_regmap_update_bits
	movq	%rbx, %r15
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.19:
	movl	8(%r15), %edi
	xorl	%r14d, %r14d
	movl	$56593, %esi                    ## imm = 0xDD11
	movl	$32, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.20:
	movl	8(%r15), %edi
	movl	$56595, %esi                    ## imm = 0xDD13
	movl	$32, %edx
	movl	$32, %ecx
LBB0_26:
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_28
LBB0_27:
	leaq	L_.str.2(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, %r14d
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adap id %d, onoff %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"set usb and ts interface\n"

	.comm	_USB_SPEED_FULL,8,3             ## @USB_SPEED_FULL
L_.str.2:                               ## @.str.2
	.asciz	"failed %d\n"

	.no_dead_strip	_af9015_streaming_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9015_streaming_ctrl
_af9015_streaming_ctrl:                 ; @af9015_streaming_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_fe_to_d
	mov	x22, x0
	bl	_d_to_priv
	mov	x20, x0
	ldr	x19, [x22, #8]
	mov	x0, x23
	bl	_fe_to_adap
	ldr	w23, [x0]
	stp	x23, x21, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20]
	ldr	w8, [x8, x23, lsl #2]
	cbz	w8, LBB0_6
; %bb.1:
	cbz	w21, LBB0_11
LBB0_2:
	cbnz	w23, LBB0_11
; %bb.3:
	ldr	w0, [x20, #8]
	mov	w1, #56595
	mov	w2, #32
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.4:
	ldr	w0, [x20, #8]
	mov	w1, #56593
	mov	w2, #32
	mov	w3, #32
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.5:
	ldr	w0, [x20, #8]
	mov	w1, #54535
	mov	w2, #4
	mov	w3, #0
	b	LBB0_25
LBB0_6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x22]
	ldr	x24, [x8]
Lloh7:
	adrp	x8, _USB_SPEED_FULL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _USB_SPEED_FULL@GOTPAGEOFF]
Lloh9:
	ldr	x25, [x8]
	cmp	x24, x25
	mov	w8, #4089
	mov	w9, #235
	csel	w8, w9, w8, eq
	and	w9, w8, #0xff
	lsr	w8, w8, #8
	stp	w9, w8, [sp, #16]
	mov	w8, #56714
	mov	w9, #56712
	cmp	w23, #0
	csel	w1, w9, w8, eq
	ldr	w0, [x20, #8]
	add	x2, sp, #16
	mov	w3, #2
	bl	_regmap_bulk_write
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.7:
	cmp	w23, #0
	mov	w8, #56588
	cinc	w1, w8, ne
	cmp	x24, x25
	mov	w8, #128
	mov	w9, #16
	csel	w2, w9, w8, eq
	ldr	w0, [x20, #8]
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.8:
	ldr	x24, [x20, #16]
	cmp	x24, #0
	cset	w3, ne
	ldr	w0, [x20, #8]
	mov	w1, #54539
	mov	w2, #1
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.9:
	cmp	x24, #0
	cset	w8, ne
	lsl	w3, w8, #4
	ldr	w0, [x20, #8]
	mov	w1, #54560
	mov	w2, #16
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.10:
	ldr	x8, [x20]
	mov	w9, #1
	str	w9, [x8, x23, lsl #2]
	cbnz	w21, LBB0_2
LBB0_11:
	cbz	w21, LBB0_16
; %bb.12:
	cmp	w23, #1
	b.ne	LBB0_16
; %bb.13:
	ldr	w0, [x20, #8]
	mov	w1, #56595
	mov	w2, #64
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.14:
	ldr	w0, [x20, #8]
	mov	w1, #56593
	mov	w2, #64
	mov	w3, #64
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.15:
	ldr	w0, [x20, #8]
	mov	w1, #54539
	mov	w2, #2
	mov	w3, #0
	b	LBB0_25
LBB0_16:
	orr	w8, w23, w21
	cbz	w8, LBB0_22
; %bb.17:
	mov	w22, #0
	cbnz	w21, LBB0_27
; %bb.18:
	cmp	w23, #1
	b.ne	LBB0_27
; %bb.19:
	ldr	w0, [x20, #8]
	mov	w1, #54539
	mov	w2, #2
	mov	w3, #2
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.20:
	ldr	w0, [x20, #8]
	mov	w1, #56593
	mov	w2, #64
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.21:
	ldr	w0, [x20, #8]
	mov	w1, #56595
	mov	w2, #64
	mov	w3, #64
	b	LBB0_25
LBB0_22:
	ldr	w0, [x20, #8]
	mov	w1, #54535
	mov	w2, #4
	mov	w3, #4
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.23:
	ldr	w0, [x20, #8]
	mov	w1, #56593
	mov	w2, #32
	mov	w3, #0
	bl	_regmap_update_bits
	mov	x22, x0
	cbnz	w0, LBB0_26
; %bb.24:
	ldr	w0, [x20, #8]
	mov	w1, #56595
	mov	w2, #32
	mov	w3, #32
LBB0_25:
	bl	_regmap_update_bits
	mov	x22, x0
	cbz	w0, LBB0_27
LBB0_26:
	str	x22, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_27:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x22
	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
	add	sp, sp, #112
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adap id %d, onoff %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"set usb and ts interface\n"

	.comm	_USB_SPEED_FULL,8,3             ; @USB_SPEED_FULL
l_.str.2:                               ; @.str.2
	.asciz	"failed %d\n"

	.no_dead_strip	_af9015_streaming_ctrl
.subsections_via_symbols
