	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_dcb_get_pg_tc_cfg_tx
_qlcnic_dcb_get_pg_tc_cfg_tx:           ## @qlcnic_dcb_get_pg_tc_cfg_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_netdev_priv
	movq	(%rax), %rsi
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_QLC_DCB_OPER_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	$0, (%rbx)
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	$0, (%r12)
	movl	$0, (%r13)
	movl	$0, (%r14)
	movq	_QLCNIC_DCB_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	shlq	$4, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax,%r15)
	je	LBB0_19
## %bb.2:
	testl	%ecx, %ecx
	js	LBB0_19
## %bb.3:
	movq	_QLC_DCB_MAX_TC@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jle	LBB0_19
## %bb.4:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx,%r15), %r10
	movl	%ecx, %edx
	leaq	(%rdx,%rdx,2), %r9
	cmpq	$0, 16(%r10,%r9,8)
	je	LBB0_19
## %bb.5:
	movl	(%r10,%r9,8), %edx
	movl	%edx, (%r13)
	movl	4(%r10,%r9,8), %edx
	movl	%edx, (%r14)
	movl	8(%r10,%r9,8), %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%edx, (%rcx)
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.7:
	movl	(%r13), %eax
	cmpl	$1, %r8d
	jne	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
LBB0_15:
	testb	$1, %r8b
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_18
## %bb.16:
	leaq	(%rbx,%rbx,2), %rdx
	cmpq	$0, 16(%r10,%rdx,8)
	je	LBB0_18
## %bb.17:
	xorl	%ecx, %ecx
	cmpl	(%r10,%rdx,8), %eax
	sete	%cl
	addl	%ecx, %edi
	jmp	LBB0_18
LBB0_6:
	xorl	%edi, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
LBB0_18:
	movl	$100, %eax
	xorl	%edx, %edx
	idivl	%edi
	movl	%eax, 12(%r10,%r9,8)
	movl	%eax, (%rsi)
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r8d, %edx
	andl	$-2, %edx
	leaq	40(%r10), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	$2, %rbx
	addq	$48, %rsi
	cmpq	%rbx, %rdx
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -24(%rsi)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ecx, %ecx
	cmpl	-40(%rsi), %eax
	sete	%cl
	addl	%ecx, %edi
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, (%rsi)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%ecx, %ecx
	cmpl	-16(%rsi), %eax
	sete	%cl
	addl	%ecx, %edi
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_DCB_OPER_IDX,8,3           ## @QLC_DCB_OPER_IDX
	.comm	_QLCNIC_DCB_STATE,4,2           ## @QLCNIC_DCB_STATE
	.comm	_QLC_DCB_MAX_TC,4,2             ## @QLC_DCB_MAX_TC
	.no_dead_strip	_qlcnic_dcb_get_pg_tc_cfg_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_dcb_get_pg_tc_cfg_tx
_qlcnic_dcb_get_pg_tc_cfg_tx:           ; @qlcnic_dcb_get_pg_tc_cfg_tx
	.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, x5
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	bl	_netdev_priv
	ldr	x1, [x0]
	ldr	x8, [x1, #8]
	ldr	x24, [x8]
Lloh0:
	adrp	x8, _QLC_DCB_OPER_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_DCB_OPER_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	str	wzr, [x21]
	str	wzr, [x19]
	str	wzr, [x20]
	str	wzr, [x22]
Lloh3:
	adrp	x8, _QLCNIC_DCB_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_DCB_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_test_bit
	cbz	w0, LBB0_12
; %bb.1:
	add	x8, x24, x25, lsl #4
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_12
; %bb.2:
	tbnz	w23, #31, LBB0_12
; %bb.3:
Lloh6:
	adrp	x10, _QLC_DCB_MAX_TC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _QLC_DCB_MAX_TC@GOTPAGEOFF]
	ldr	w8, [x10]
	cmp	w8, w23
	b.le	LBB0_12
; %bb.4:
	lsl	x8, x25, #4
	ldr	x8, [x24, x8]
	mov	w9, #24
	umaddl	x9, w23, w9, x8
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_12
; %bb.5:
	mov	w9, w23
	mov	w11, #24
	madd	x11, x9, x11, x8
	ldr	w12, [x11]
	str	w12, [x20]
	ldr	w12, [x11, #4]
	str	w12, [x22]
	ldr	w11, [x11, #8]
	str	w11, [x21]
	ldr	w10, [x10]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w11, #0
	ldr	w12, [x20]
	add	x13, x8, #16
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x13, x13, #24
	subs	x10, x10, #1
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	cbz	x14, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldur	w14, [x13, #-16]
	cmp	w12, w14
	cinc	w11, w11, eq
	b	LBB0_7
LBB0_10:
	mov	w11, #0
LBB0_11:
	mov	w10, #100
	sdiv	w10, w10, w11
	mov	w11, #24
	mul	x9, x9, x11
	add	x8, x8, x9
	str	w10, [x8, #12]
	str	w10, [x19]
LBB0_12:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_DCB_OPER_IDX,8,3           ; @QLC_DCB_OPER_IDX
	.comm	_QLCNIC_DCB_STATE,4,2           ; @QLCNIC_DCB_STATE
	.comm	_QLC_DCB_MAX_TC,4,2             ; @QLC_DCB_MAX_TC
	.no_dead_strip	_qlcnic_dcb_get_pg_tc_cfg_tx
.subsections_via_symbols
