	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt77252_init_tx
_idt77252_init_tx:                      ## @idt77252_init_tx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_VCF_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rsi), %r12
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
LBB0_3:
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%rbx), %eax
	cmpl	$132, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$131, %eax
	jne	LBB0_13
## %bb.7:
	movl	$128, %esi
	jmp	LBB0_9
LBB0_8:
	movl	$129, %esi
LBB0_9:
	movl	%esi, (%r13)
	movq	%r14, %rdi
	callq	_alloc_scq
	movq	%rax, 32(%r13)
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_get_free_scd
	movq	32(%r13), %rsi
	movq	%rax, (%rsi)
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_fill_scd
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_set_tct
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movl	8(%r14), %esi
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
	movq	(%r14), %rax
	movq	8(%r13), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	32(%r13), %rsi
	movq	%r14, %rdi
	callq	_free_scq
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_13:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_14:
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
	jmp	LBB0_16
LBB0_15:
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_printk
	movq	32(%r13), %rsi
	movq	%r14, %rdi
	callq	_free_scq
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_17:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_21
## %bb.18:
	cmpl	$129, %eax
	jne	LBB0_24
## %bb.19:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_idt77252_init_cbr
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:
	movq	_VCF_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_clear_bit
	movq	_TCMDQ_START@GOTPCREL(%rip), %rax
	movl	16(%r13), %edi
	orl	(%rax), %edi
	movq	_SAR_REG_TCMDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writel
	jmp	LBB0_24
LBB0_21:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	callq	_idt77252_init_ubr
	testl	%eax, %eax
	je	LBB0_23
LBB0_22:
	movl	%eax, %ebx
	movq	(%r14), %rax
	movq	8(%r13), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	32(%r13), %rsi
	movq	%r14, %rdi
	callq	_free_scq
	jmp	LBB0_4
LBB0_23:
	movq	_VCF_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
LBB0_24:
	movq	%r15, 24(%r13)
	movq	_VCF_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_set_bit
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_VCF_TX,4,2                     ## @VCF_TX
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: can't get SCQ.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"%s: no SCD available.\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: class %d not supported.\n"

	.comm	_VCF_IDLE,4,2                   ## @VCF_IDLE
	.comm	_TCMDQ_START,4,2                ## @TCMDQ_START
	.comm	_SAR_REG_TCMDQ,4,2              ## @SAR_REG_TCMDQ
	.no_dead_strip	_idt77252_init_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt77252_init_tx
_idt77252_init_tx:                      ; @idt77252_init_tx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _VCF_TX@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VCF_TX@GOTPAGEOFF]
	ldr	w0, [x24]
	add	x22, x1, #20
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	ldr	w8, [x23]
	cmp	w8, #132
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #131
	b.ne	LBB0_10
; %bb.4:
	mov	w1, #128
	b	LBB0_6
LBB0_5:
	mov	w1, #129
LBB0_6:
	str	w1, [x19]
	mov	x0, x20
	bl	_alloc_scq
	str	x0, [x19, #32]
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_get_free_scd
	ldr	x1, [x19, #32]
	str	x0, [x1]
	cbz	x0, LBB0_12
; %bb.8:
	ldr	w2, [x19]
	mov	x0, x20
	bl	_fill_scd
	mov	x0, x20
	mov	x1, x19
	bl	_set_tct
	cbz	x0, LBB0_16
; %bb.9:
	ldr	w1, [x20, #8]
	ldr	w8, [x23]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	str	xzr, [x8, x9, lsl #3]
	ldr	x1, [x19, #32]
	mov	x0, x20
	bl	_free_scq
LBB0_10:
Lloh6:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	ldr	w1, [x20, #8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
	b	LBB0_13
LBB0_12:
	ldr	w1, [x20, #8]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printk
	ldr	x1, [x19, #32]
	mov	x0, x20
	bl	_free_scq
LBB0_13:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_20
; %bb.17:
	cmp	w8, #129
	b.ne	LBB0_23
; %bb.18:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	bl	_idt77252_init_cbr
	cbnz	w0, LBB0_21
; %bb.19:
Lloh14:
	adrp	x8, _VCF_IDLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VCF_IDLE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
Lloh17:
	adrp	x8, _TCMDQ_START@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TCMDQ_START@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w0, w9, w8
Lloh20:
	adrp	x8, _SAR_REG_TCMDQ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SAR_REG_TCMDQ@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_writel
	b	LBB0_23
LBB0_20:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x23
	bl	_idt77252_init_ubr
	cbz	w0, LBB0_22
LBB0_21:
	mov	x23, x0
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	str	xzr, [x8, x9, lsl #3]
	ldr	x1, [x19, #32]
	mov	x0, x20
	bl	_free_scq
	b	LBB0_15
LBB0_22:
Lloh23:
	adrp	x8, _VCF_IDLE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VCF_IDLE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
LBB0_23:
	str	x21, [x19, #24]
	ldr	w0, [x24]
	mov	x1, x22
	bl	_set_bit
	mov	w23, #0
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_VCF_TX,4,2                     ; @VCF_TX
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: can't get SCQ.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"%s: no SCD available.\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: class %d not supported.\n"

	.comm	_VCF_IDLE,4,2                   ; @VCF_IDLE
	.comm	_TCMDQ_START,4,2                ; @TCMDQ_START
	.comm	_SAR_REG_TCMDQ,4,2              ; @SAR_REG_TCMDQ
	.no_dead_strip	_idt77252_init_tx
.subsections_via_symbols
