	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __set_isoc_interface
___set_isoc_interface:                  ## @__set_isoc_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	%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
	movq	8(%rdi), %r12
	movq	32(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	24(%r12), %edi
	movl	$1, %esi
	movl	%r15d, %edx
	callq	_usb_set_interface
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%r15d, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$0, 8(%rax)
	jle	LBB0_14
## %bb.5:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %r15
	addq	$8, %r12
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	xorl	%r13d, %r13d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_isoc_out
	movq	%r15, %rcx
	testq	%rax, %rax
	je	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	8(%rax), %rdx
	movq	(%r15), %rcx
	addq	$4, %r14
	cmpq	%rdx, %r13
	jge	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	addq	%r14, %rbx
	testq	%rcx, %rcx
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, (%r12)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_isoc_in
	movq	%r12, %rcx
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_3:
	movl	%eax, %ebx
	movl	(%r14), %esi
	movl	%eax, %edx
	negl	%edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
	jmp	LBB0_16
LBB0_12:
	testq	%rcx, %rcx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	xorl	%ebx, %ebx
	cmpq	$0, (%r12)
	jne	LBB0_16
LBB0_14:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BT_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_15:
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s setting interface failed (%d)"

L_.str.1:                               ## @.str.1
	.asciz	"%s invalid SCO descriptors"

	.no_dead_strip	___set_isoc_interface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __set_isoc_interface
___set_isoc_interface:                  ; @__set_isoc_interface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x22, [x0, #8]
	ldr	x23, [x22, #32]
	cbz	x23, LBB0_14
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x22, #24]
	mov	w1, #1
	mov	x2, x21
	bl	_usb_set_interface
	tbnz	w0, #31, LBB0_15
; %bb.2:
	mov	x24, x22
	str	xzr, [x24, #16]!
	str	w21, [x22]
	str	xzr, [x22, #8]!
	ldr	x8, [x23]
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.3:
	mov	x21, #0
	mov	x9, #0
	mov	x25, #0
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_usb_endpoint_is_isoc_out
	mov	x8, x24
	cbz	x0, LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	x20, [x8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	ldr	x8, [x23]
	ldrsw	x10, [x8, #8]
	ldr	x9, [x24]
	add	x21, x21, #4
	cmp	x25, x10
	b.ge	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	add	x20, x8, x21
	cbz	x9, LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	cbnz	x8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_usb_endpoint_is_isoc_in
	mov	x8, x22
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_10:
	cbz	x9, LBB0_13
; %bb.11:
	ldr	x8, [x22]
	cbz	x8, LBB0_13
; %bb.12:
	mov	w20, #0
	b	LBB0_16
LBB0_13:
	ldr	w1, [x19]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_ERR
LBB0_14:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_15:
	mov	x20, x0
	ldr	w1, [x19]
	neg	w8, w0
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_ERR
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s setting interface failed (%d)"

l_.str.1:                               ; @.str.1
	.asciz	"%s invalid SCO descriptors"

	.no_dead_strip	___set_isoc_interface
.subsections_via_symbols
