	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_isoc_nego
_sd_isoc_nego:                          ## @sd_isoc_nego
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %eax
	cmpl	$176, %eax
	movl	$266, %ecx                      ## imm = 0x10A
	movl	$400, %edx                      ## imm = 0x190
	cmovel	%ecx, %edx
	cmpl	$160, %eax
	movl	$200, %ebx
	cmovnel	%edx, %ebx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	cmpl	%ebx, %eax
	jle	LBB0_1
## %bb.2:
	addl	$-100, %eax
	cmpl	%ebx, %eax
	cmovlel	%ebx, %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movq	8(%r14), %rdi
	movl	(%r14), %esi
	movl	$1, %edx
	callq	_usb_set_interface
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	jmp	LBB0_4
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set alt 1 err %d\n"

	.no_dead_strip	_sd_isoc_nego
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_isoc_nego
_sd_isoc_nego:                          ; @sd_isoc_nego
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w8, [x0, #16]
	mov	w9, #400
	mov	w10, #266
	cmp	w8, #176
	csel	w9, w10, w9, eq
	mov	w10, #200
	cmp	w8, #160
	csel	w21, w10, w9, eq
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	cmp	w0, w21
	b.le	LBB0_3
; %bb.1:
	sub	w8, w0, #100
	cmp	w8, w21
	csel	w0, w8, w21, gt
	bl	_cpu_to_le16
	ldr	x8, [x20, #8]
	str	w0, [x8]
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	mov	w2, #1
	bl	_usb_set_interface
	mov	x19, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set alt 1 err %d\n"

	.no_dead_strip	_sd_isoc_nego
.subsections_via_symbols
