	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt77252_change_qos
_idt77252_change_qos:                   ## @idt77252_change_qos
	.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	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r15), %rax
	movq	_ATM_NONE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_1
LBB0_10:
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	je	LBB0_13
## %bb.11:
	movq	_VCF_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_12
LBB0_13:
	leaq	4(%r13), %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	_ATM_VF_HASQOS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_set_bit
	xorl	%r12d, %r12d
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_VCF_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	leaq	8(%r12), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	addq	$-128, %rax
	cmpq	$3, %rax
	movq	_ATM_NONE@GOTPCREL(%rip), %rbx
	ja	LBB0_10
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_idt77252_init_tx
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	_ATM_NONE@GOTPCREL(%rip), %rbx
	jne	LBB0_14
	jmp	LBB0_10
LBB0_12:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_idt77252_init_rx
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_13
LBB0_5:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_idt77252_init_ubr
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	_VCF_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	_TCMDQ_LACR@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edi
	shll	$16, %edi
	orl	(%rax), %edi
	orl	4(%rcx), %edi
	movq	_SAR_REG_TCMDQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writel
	jmp	LBB0_10
LBB0_9:
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_idt77252_init_cbr
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_ATM_NONE,8,3                   ## @ATM_NONE
	.comm	_VCF_TX,4,2                     ## @VCF_TX
	.comm	_VCF_IDLE,4,2                   ## @VCF_IDLE
	.comm	_TCMDQ_LACR,4,2                 ## @TCMDQ_LACR
	.comm	_SAR_REG_TCMDQ,4,2              ## @SAR_REG_TCMDQ
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_VCF_RX,4,2                     ## @VCF_RX
	.comm	_ATM_VF_HASQOS,4,2              ## @ATM_VF_HASQOS
	.no_dead_strip	_idt77252_change_qos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt77252_change_qos
_idt77252_change_qos:                   ; @idt77252_change_qos
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x20, x0
	ldp	x22, x8, [x0, #8]
	ldr	x19, [x8]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x25, _ATM_NONE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ATM_NONE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_1:
	ldr	x8, [x21]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _VCF_RX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VCF_RX@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x22, #8
	bl	_test_bit
	cbz	w0, LBB0_9
LBB0_3:
	add	x0, x20, #4
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
Lloh5:
	adrp	x8, _ATM_VF_HASQOS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATM_VF_HASQOS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	w24, #0
	b	LBB0_15
LBB0_4:
Lloh8:
	adrp	x8, _VCF_TX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VCF_TX@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x23, x22, #8
	mov	x1, x23
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x21, #8]
	sub	x8, x8, #128
	cmp	x8, #3
	b.hi	LBB0_1
; %bb.6:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_idt77252_init_tx
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_idt77252_init_rx
	mov	x24, x0
	cbnz	w0, LBB0_15
	b	LBB0_3
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_idt77252_init_ubr
	mov	x24, x0
	cbnz	w0, LBB0_15
; %bb.11:
Lloh16:
	adrp	x8, _VCF_IDLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VCF_IDLE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbnz	w0, LBB0_1
; %bb.12:
Lloh19:
	adrp	x8, _TCMDQ_LACR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TCMDQ_LACR@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldp	w9, w10, [x22]
	orr	w8, w8, w9, lsl #16
	orr	w0, w8, w10
Lloh22:
	adrp	x8, _SAR_REG_TCMDQ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SAR_REG_TCMDQ@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_writel
	b	LBB0_1
LBB0_13:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_idt77252_init_cbr
LBB0_14:
	mov	x24, x0
	cbz	w0, LBB0_1
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
                                        ; -- End function
	.comm	_ATM_NONE,8,3                   ; @ATM_NONE
	.comm	_VCF_TX,4,2                     ; @VCF_TX
	.comm	_VCF_IDLE,4,2                   ; @VCF_IDLE
	.comm	_TCMDQ_LACR,4,2                 ; @TCMDQ_LACR
	.comm	_SAR_REG_TCMDQ,4,2              ; @SAR_REG_TCMDQ
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_VCF_RX,4,2                     ; @VCF_RX
	.comm	_ATM_VF_HASQOS,4,2              ; @ATM_VF_HASQOS
	.no_dead_strip	_idt77252_change_qos
.subsections_via_symbols
