	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt77252_init_cbr
_idt77252_init_cbr:                     ## @idt77252_init_cbr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	cmpq	$0, (%rcx)
	jne	LBB0_6
## %bb.1:
	cmpq	$0, 8(%r15)
	jne	LBB0_6
## %bb.2:
	cmpq	$0, 16(%r15)
	je	LBB0_3
LBB0_6:
	movl	(%r13), %r14d
	movq	_VCF_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %r12
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movq	%r15, %rdi
	callq	_atm_pcr_goal
	movl	%eax, %r15d
	movl	%eax, %ebx
	negl	%ebx
	cmovsl	%eax, %ebx
	movl	16(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	callq	_TXPRINTK
	movq	8(%r13), %rcx
	movq	24(%r13), %rax
	addq	$-2, %rax
	imulq	%rbx, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_10
## %bb.11:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_12
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%eax, %ebx
LBB0_12:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	%eax, %r14d
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.13:
	cmpq	$1, %rdx
	sbbl	$-1, %ebx
	movq	%r12, %r15
	jmp	LBB0_14
LBB0_16:
	movq	%r12, %r15
	je	LBB0_17
LBB0_14:
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.20:
	movq	_SAR_TST_RESERVED@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %ebx
	jle	LBB0_22
## %bb.21:
	movl	16(%r13), %esi
	leaq	L_.str.4(%rip), %rdi
LBB0_19:
	callq	_printk
	movq	_ENOSR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movl	16(%r13), %esi
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	callq	_printk
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_26:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_SAR_TST_RESERVED@GOTPCREL(%rip), %rax
	movl	%r14d, %ebx
	subl	(%rax), %ebx
	jle	LBB0_18
LBB0_22:
	movl	%ebx, (%r15)
	subl	%ebx, %r14d
	movl	%r14d, (%r13)
	movq	_VCF_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	xorl	%r12d, %r12d
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	%ebx, %edx
	je	LBB0_26
## %bb.24:
	movl	16(%r13), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_OPRINTK
	movq	_TSTE_OPC_CBR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_change_tst
	jmp	LBB0_26
LBB0_25:
	movl	16(%r13), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_OPRINTK
	movq	_TSTE_OPC_CBR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_fill_tst
	jmp	LBB0_26
LBB0_3:
	movl	16(%r13), %esi
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_4
LBB0_18:
	movl	16(%r13), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: trying to open a CBR VC with cell rate = 0\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VCF_TX,4,2                     ## @VCF_TX
L_.str.1:                               ## @.str.1
	.asciz	"%s: CBR target cell rate = %d\n"

	.comm	_SAR_TST_RESERVED,4,2           ## @SAR_TST_RESERVED
L_.str.2:                               ## @.str.2
	.asciz	"%s: no CBR bandwidth free.\n"

	.comm	_ENOSR,4,2                      ## @ENOSR
L_.str.3:                               ## @.str.3
	.asciz	"%s: selected CBR bandwidth < granularity.\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s: not enough CBR bandwidth free.\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s: modify %d -> %d entries in TST.\n"

	.comm	_TSTE_OPC_CBR,4,2               ## @TSTE_OPC_CBR
L_.str.6:                               ## @.str.6
	.asciz	"%s: setting %d entries in TST.\n"

	.no_dead_strip	_idt77252_init_cbr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt77252_init_cbr
_idt77252_init_cbr:                     ; @idt77252_init_cbr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x3
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x3]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_23
LBB0_3:
	ldr	w24, [x19]
Lloh0:
	adrp	x25, _VCF_TX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _VCF_TX@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x22, x20, #4
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w21, [x20]
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	add	w26, w21, w24
	mov	x0, x23
	bl	_atm_pcr_goal
	mov	x24, x0
	cmp	w0, #0
	cneg	w23, w0, mi
	ldr	w1, [x19, #16]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_TXPRINTK
	ldr	x8, [x19, #24]
	sub	x8, x8, #2
	mul	x8, x8, x23
	ldr	x9, [x19, #8]
	udiv	x23, x8, x9
	cmp	w24, #1
	b.lt	LBB0_8
; %bb.7:
	msub	x8, x23, x9, x8
	cmp	x8, #0
	cinc	w23, w23, ne
	b	LBB0_9
LBB0_8:
	cbz	w24, LBB0_16
LBB0_9:
	cbz	w23, LBB0_13
; %bb.10:
Lloh4:
	adrp	x8, _SAR_TST_RESERVED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SAR_TST_RESERVED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	sub	w8, w26, w8
	cmp	w23, w8
	b.le	LBB0_17
; %bb.11:
	ldr	w1, [x19, #16]
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_12:
	bl	_printk
Lloh9:
	adrp	x8, _ENOSR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOSR@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	ldr	w1, [x19, #16]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	bl	_printk
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_16:
Lloh15:
	adrp	x8, _SAR_TST_RESERVED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SAR_TST_RESERVED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	sub	w23, w26, w8
	cmp	w23, #0
	b.le	LBB0_24
LBB0_17:
	str	w23, [x20]
	sub	w8, w26, w23
	str	w8, [x19]
	ldr	w0, [x25]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_20
; %bb.18:
	cmp	w21, w23
	b.eq	LBB0_21
; %bb.19:
	ldr	w1, [x19, #16]
	mov	x8, x23
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_OPRINTK
Lloh20:
	adrp	x8, _TSTE_OPC_CBR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TSTE_OPC_CBR@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_change_tst
	b	LBB0_21
LBB0_20:
	ldr	w1, [x19, #16]
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x2, x23
	bl	_OPRINTK
Lloh25:
	adrp	x8, _TSTE_OPC_CBR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TSTE_OPC_CBR@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_fill_tst
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
	ldr	w1, [x19, #16]
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_24:
	ldr	w1, [x19, #16]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: trying to open a CBR VC with cell rate = 0\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VCF_TX,4,2                     ; @VCF_TX
l_.str.1:                               ; @.str.1
	.asciz	"%s: CBR target cell rate = %d\n"

	.comm	_SAR_TST_RESERVED,4,2           ; @SAR_TST_RESERVED
l_.str.2:                               ; @.str.2
	.asciz	"%s: no CBR bandwidth free.\n"

	.comm	_ENOSR,4,2                      ; @ENOSR
l_.str.3:                               ; @.str.3
	.asciz	"%s: selected CBR bandwidth < granularity.\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s: not enough CBR bandwidth free.\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s: modify %d -> %d entries in TST.\n"

	.comm	_TSTE_OPC_CBR,4,2               ; @TSTE_OPC_CBR
l_.str.6:                               ; @.str.6
	.asciz	"%s: setting %d entries in TST.\n"

	.no_dead_strip	_idt77252_init_cbr
.subsections_via_symbols
