	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24113_set_bandwidth
_cx24113_set_bandwidth:                 ## @cx24113_set_bandwidth
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	cmpl	$25001, %esi                    ## imm = 0x61A9
	setl	%al
	shll	$6, %eax
	addl	$64, %eax
	cmpl	$19001, %esi                    ## imm = 0x4A39
	movl	$192, %r15d
	cmovgel	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	leal	(%rbx,%rbx,4), %eax
	addl	%eax, %eax
	addl	$-10000, %eax                   ## imm = 0xD8F0
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	sarq	$38, %rcx
	shrq	$63, %rax
	addl	%ecx, %eax
	addl	$5, %eax
	cltq
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$34, %rbx
	addl	%eax, %ebx
	movl	%r15d, %esi
	shrl	$6, %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dprintk
	andl	$63, %ebx
	orl	%r15d, %ebx
	movq	%r14, %rdi
	movl	$30, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cx24113_writereg               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bandwidth to be set: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"bandwidth: %d %d\n"

	.no_dead_strip	_cx24113_set_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24113_set_bandwidth
_cx24113_set_bandwidth:                 ; @cx24113_set_bandwidth
	.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	x19, x1
	mov	x20, x0
	mov	w8, #25001
	mov	w9, #64
	mov	w10, #128
	cmp	w1, w8
	csel	w8, w10, w9, lt
	mov	w9, #19001
	mov	w10, #192
	cmp	w1, w9
	csel	w21, w10, w8, lt
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	mov	w8, #10
	mov	w9, #-10000
	madd	w8, w19, w8, w9
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	add	w8, w8, #5
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w19, w8, w9
	lsr	w1, w21, #6
	str	x19, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	bfxil	w21, w19, #0, #6
	mov	x0, x20
	mov	w1, #30
	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	_cx24113_writereg
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bandwidth to be set: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"bandwidth: %d %d\n"

	.no_dead_strip	_cx24113_set_bandwidth
.subsections_via_symbols
