	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb6fire_control_set_rate
_usb6fire_control_set_rate:             ## @usb6fire_control_set_rate
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movq	_CONTROL_N_RATES@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jle	LBB0_2
## %bb.3:
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	8(%rax), %rdi
	movq	_rates_altsetting@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%esi, %ebx
	movl	(%rax,%rbx,4), %edx
	movl	$1, %esi
	callq	_usb_set_interface
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	_rates_6fire_vl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	_rates_6fire_vh@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %r8d
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$1, %edx
	callq	*(%r14)
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONTROL_N_RATES,4,2            ## @CONTROL_N_RATES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rates_altsetting,8,3           ## @rates_altsetting
	.comm	_rates_6fire_vl,8,3             ## @rates_6fire_vl
	.comm	_rates_6fire_vh,8,3             ## @rates_6fire_vh
	.no_dead_strip	_usb6fire_control_set_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb6fire_control_set_rate
_usb6fire_control_set_rate:             ; @usb6fire_control_set_rate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tbnz	w1, #31, LBB0_4
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x8, _CONTROL_N_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONTROL_N_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.2:
	ldr	x8, [x0]
	ldp	x20, x0, [x8]
Lloh3:
	adrp	x8, _rates_altsetting@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rates_altsetting@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w2, [x8, w19, uxtw #2]
	mov	w1, #1
	bl	_usb_set_interface
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	w8, w19
Lloh6:
	adrp	x9, _rates_6fire_vl@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rates_6fire_vl@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	lsl	x8, x8, #2
	ldr	w3, [x9, x8]
	ldr	x9, [x20]
Lloh9:
	adrp	x10, _rates_6fire_vh@GOTPAGE
Lloh10:
	ldr	x10, [x10, _rates_6fire_vh@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	w4, [x10, x8]
	mov	x0, x20
	mov	w1, #2
	mov	w2, #1
	blr	x9
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CONTROL_N_RATES,4,2            ; @CONTROL_N_RATES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rates_altsetting,8,3           ; @rates_altsetting
	.comm	_rates_6fire_vl,8,3             ; @rates_6fire_vl
	.comm	_rates_6fire_vh,8,3             ; @rates_6fire_vh
	.no_dead_strip	_usb6fire_control_set_rate
.subsections_via_symbols
