	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksdazzle_change_speed
_ksdazzle_change_speed:                 ## @ksdazzle_change_speed
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 16(%rdi)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_16
## %bb.2:
	movl	%esi, %r14d
	cmpl	$57599, %esi                    ## imm = 0xE0FF
	jle	LBB0_3
## %bb.8:
	cmpl	$575999, %r14d                  ## imm = 0x8C9FF
	jle	LBB0_9
## %bb.12:
	cmpl	$576000, %r14d                  ## imm = 0x8CA00
	je	LBB0_11
## %bb.13:
	cmpl	$1152000, %r14d                 ## imm = 0x119400
	je	LBB0_11
## %bb.14:
	cmpl	$4000000, %r14d                 ## imm = 0x3D0900
	je	LBB0_11
	jmp	LBB0_15
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpl	$19199, %r14d                   ## imm = 0x4AFF
	jg	LBB0_6
## %bb.4:
	cmpl	$2400, %r14d                    ## imm = 0x960
	je	LBB0_11
## %bb.5:
	cmpl	$9600, %r14d                    ## imm = 0x2580
	je	LBB0_11
	jmp	LBB0_15
LBB0_9:
	cmpl	$57600, %r14d                   ## imm = 0xE100
	je	LBB0_11
## %bb.10:
	cmpl	$115200, %r14d                  ## imm = 0x1C200
	je	LBB0_11
	jmp	LBB0_15
LBB0_6:
	cmpl	$19200, %r14d                   ## imm = 0x4B00
	je	LBB0_11
## %bb.7:
	cmpl	$38400, %r14d                   ## imm = 0x9600
	jne	LBB0_15
LBB0_11:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r14d, %edi
	callq	_cpu_to_le32
	movl	%eax, 12(%rbx)
	movq	_KS_DATA_8_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%rbx), %r14
	movl	24(%rbx), %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	16(%rbx), %rcx
	movq	_ksdazzle_speed_irq@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r10d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	movq	%r15, %r8
	movl	$4, %r9d
	pushq	%rbx
	pushq	%r10
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	movq	(%rbx), %rdi
	movq	$0, (%rdi)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_submit_urb                 ## TAILCALL
LBB0_15:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_KS_DATA_8_BITS,4,2             ## @KS_DATA_8_BITS
	.comm	_ksdazzle_speed_irq,4,2         ## @ksdazzle_speed_irq
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_ksdazzle_change_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksdazzle_change_speed
_ksdazzle_change_speed:                 ; @ksdazzle_change_speed
	.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
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x20, x1
	mov	w8, #57599
	cmp	w1, w8
	b.le	LBB0_9
; %bb.3:
	mov	w8, #51711
	movk	w8, #8, lsl #16
	cmp	w20, w8
	b.le	LBB0_12
; %bb.4:
	mov	w8, #51712
	movk	w8, #8, lsl #16
	cmp	w20, w8
	b.eq	LBB0_17
; %bb.5:
	mov	w8, #37888
	movk	w8, #17, lsl #16
	cmp	w20, w8
	b.eq	LBB0_17
; %bb.6:
	mov	w8, #2304
	movk	w8, #61, lsl #16
	b	LBB0_16
LBB0_7:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_9:
	mov	w8, #19199
	cmp	w20, w8
	b.gt	LBB0_14
; %bb.10:
	cmp	w20, #2400
	b.eq	LBB0_17
; %bb.11:
	mov	w8, #9600
	b	LBB0_16
LBB0_12:
	mov	w8, #57600
	cmp	w20, w8
	b.eq	LBB0_17
; %bb.13:
	mov	w8, #49664
	movk	w8, #1, lsl #16
	b	LBB0_16
LBB0_14:
	mov	w8, #19200
	cmp	w20, w8
	b.eq	LBB0_17
; %bb.15:
	mov	w8, #38400
LBB0_16:
	cmp	w20, w8
	b.ne	LBB0_18
LBB0_17:
	add	x21, x19, #8
	mov	x0, x21
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x20
	bl	_cpu_to_le32
Lloh2:
	adrp	x8, _KS_DATA_8_BITS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KS_DATA_8_BITS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #8]
	ldr	x20, [x19]
	ldr	w22, [x19, #24]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x2, x0
	ldr	x3, [x19, #16]
Lloh5:
	adrp	x8, _ksdazzle_speed_irq@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ksdazzle_speed_irq@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	x4, x21
	mov	w5, #4
	mov	x7, x19
	bl	_usb_fill_control_urb
	ldr	x0, [x19]
	str	xzr, [x0]
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	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
	b	_usb_submit_urb
LBB0_18:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_KS_DATA_8_BITS,4,2             ; @KS_DATA_8_BITS
	.comm	_ksdazzle_speed_irq,4,2         ; @ksdazzle_speed_irq
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_ksdazzle_change_speed
.subsections_via_symbols
