	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __set_clock_speed
___set_clock_speed:                     ## @__set_clock_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
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	(%rdx), %eax
	movl	$48000, %r15d                   ## imm = 0xBB80
	cmpl	$47999999, %eax                 ## imm = 0x2DC6BFF
	jg	LBB0_5
## %bb.1:
	movl	$24000, %r15d                   ## imm = 0x5DC0
	cmpl	$23999999, %eax                 ## imm = 0x16E35FF
	jg	LBB0_5
## %bb.2:
	movl	$20000, %r15d                   ## imm = 0x4E20
	cmpl	$19999999, %eax                 ## imm = 0x1312CFF
	jg	LBB0_5
## %bb.3:
	movl	$15000, %r15d                   ## imm = 0x3A98
	cmpl	$14999999, %eax                 ## imm = 0xE4E1BF
	jg	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	cmpl	$200000, %eax                   ## imm = 0x30D40
	movl	$200, %r15d
	cmovll	%ecx, %r15d
LBB0_5:
	movl	%r15d, (%r12)
	movl	%r15d, %eax
	shrl	$8, %eax
	movl	%eax, 4(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	$0, 24(%r12)
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_SET_CLOCK_SPEED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	movq	_HZ@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$8
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	(%r14), %rdi
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SET_CLOCK_SPEED,4,2            ## @SET_CLOCK_SPEED
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_HZ,4,2                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET_CLOCK_SPEED %dkHz failed with retval=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"SET_CLOCK_SPEED %dkHz\n"

	.no_dead_strip	___set_clock_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __set_clock_speed
___set_clock_speed:                     ; @__set_clock_speed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x2]
	mov	w9, #48000
	mov	w10, #27647
	movk	w10, #732, lsl #16
	mov	w11, #24000
	mov	w12, #13823
	movk	w12, #366, lsl #16
	mov	w13, #20000
	mov	w14, #11519
	movk	w14, #305, lsl #16
	mov	w15, #15000
	mov	w16, #57791
	movk	w16, #228, lsl #16
	mov	w17, #3391
	movk	w17, #3, lsl #16
	mov	w0, #200
	cmp	w8, w17
	csel	w17, w0, wzr, gt
	cmp	w8, w16
	csel	w15, w15, w17, gt
	cmp	w8, w14
	csel	w13, w13, w15, gt
	cmp	w8, w12
	csel	w11, w11, w13, gt
	cmp	w8, w10
	csel	w21, w9, w11, gt
	lsr	w8, w21, #8
	stp	w21, w8, [x1]
	stp	xzr, xzr, [x1, #16]
	str	xzr, [x1, #8]
	ldr	x22, [x19]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _SET_CLOCK_SPEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SET_CLOCK_SPEED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _USB_RECIP_DEVICE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _USB_RECIP_DEVICE@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	orr	w3, w8, w9
Lloh12:
	adrp	x8, _HZ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x22
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	mov	w7, #8
	bl	_usb_control_msg
	mov	x3, x0
	ldr	x0, [x19]
	cmp	w3, #8
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dev_dbg
LBB0_2:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_SET_CLOCK_SPEED,4,2            ; @SET_CLOCK_SPEED
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_HZ,4,2                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET_CLOCK_SPEED %dkHz failed with retval=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"SET_CLOCK_SPEED %dkHz\n"

	.no_dead_strip	___set_clock_speed
.subsections_via_symbols
