	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttusb_dec_set_interface
_ttusb_dec_set_interface:               ## @ttusb_dec_set_interface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$5, -20(%rbp)
	xorl	%eax, %eax
	cmpl	%esi, (%rdi)
	je	LBB0_10
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	cmpl	$128, %esi
	je	LBB0_7
## %bb.2:
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$129, %ebx
	jne	LBB0_9
## %bb.4:
	movl	4(%r14), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_7:
	movl	4(%r14), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	jmp	LBB0_8
LBB0_5:
	leaq	-20(%rbp), %rcx
	movq	%r14, %rdi
	movl	$128, %esi
	movl	$4, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ttusb_dec_send_command
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movl	4(%r14), %edi
	xorl	%esi, %esi
	movl	$8, %edx
LBB0_8:
	callq	_usb_set_interface
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movl	%ebx, (%r14)
	xorl	%eax, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ttusb_dec_set_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttusb_dec_set_interface
_ttusb_dec_set_interface:               ; @ttusb_dec_set_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w8, #5
	str	w8, [sp, #12]
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	cmp	w1, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w19, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w19, #129
	b.ne	LBB0_9
; %bb.5:
	ldr	w0, [x20, #4]
	mov	w1, #0
	mov	w2, #0
	bl	_usb_set_interface
	cbnz	w0, LBB0_10
	b	LBB0_9
LBB0_6:
	ldr	w0, [x20, #4]
	mov	w1, #0
	mov	w2, #1
	bl	_usb_set_interface
	cbnz	w0, LBB0_10
	b	LBB0_9
LBB0_7:
	add	x3, sp, #12
	mov	x0, x20
	mov	w1, #128
	mov	w2, #4
	mov	x4, #0
	mov	x5, #0
	bl	_ttusb_dec_send_command
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x20, #4]
	mov	w1, #0
	mov	w2, #8
	bl	_usb_set_interface
	cbnz	w0, LBB0_10
LBB0_9:
	mov	w0, #0
	str	w19, [x20]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ttusb_dec_set_interface
.subsections_via_symbols
