	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0090_set_bandwidth
_dib0090_set_bandwidth:                 ## @dib0090_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %ecx
	movl	$49152, %eax                    ## imm = 0xC000
	cmpl	$5001000, %ecx                  ## imm = 0x4C4F28
	jl	LBB0_3
## %bb.1:
	movl	$32768, %eax                    ## imm = 0x8000
	cmpl	$6001000, %ecx                  ## imm = 0x5B9168
	jb	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpl	$7001000, %ecx                  ## imm = 0x6AD3A8
	setb	%al
	shll	$14, %eax
LBB0_3:
	movl	$16383, %edx                    ## imm = 0x3FFF
	andl	(%rbx), %edx
	orl	%eax, %edx
	movl	%edx, (%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_dib0090_write_reg
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$24584, %edx                    ## imm = 0x6008
	callq	_dib0090_write_reg
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$1, %edx
	callq	_dib0090_write_reg
	movl	$39887, %edx                    ## imm = 0x9BCF
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$10774, %edx                    ## imm = 0x2A16
	callq	_dib0090_write_reg
	movl	$43981, %edx                    ## imm = 0xABCD
LBB0_5:
	movq	%rbx, %rdi
	movl	$5, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dib0090_write_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dib0090_set_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0090_set_bandwidth
_dib0090_set_bandwidth:                 ; @dib0090_set_bandwidth
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	mov	w9, #49152
	mov	w10, #20264
	movk	w10, #76, lsl #16
	mov	w11, #32768
	mov	w12, #37224
	movk	w12, #91, lsl #16
	mov	w13, #54184
	movk	w13, #106, lsl #16
	cmp	w8, w13
	cset	w13, lo
	lsl	w13, w13, #14
	cmp	w8, w12
	csel	w11, w11, w13, lo
	cmp	w8, w10
	csel	w8, w9, w11, lt
	ldr	w9, [x0]
	and	w9, w9, #0x3fff
	orr	w2, w9, w8
	str	w2, [x0]
	mov	w1, #1
	bl	_dib0090_write_reg
	mov	x0, x19
	mov	w1, #3
	mov	w2, #24584
	bl	_dib0090_write_reg
	mov	x0, x19
	mov	w1, #4
	mov	w2, #1
	bl	_dib0090_write_reg
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w2, #39887
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #2
	mov	w2, #10774
	bl	_dib0090_write_reg
	mov	w2, #43981
LBB0_3:
	mov	x0, x19
	mov	w1, #5
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dib0090_write_reg
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dib0090_set_bandwidth
.subsections_via_symbols
