	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_dcb_cee_peer_get_pg
_qlcnic_dcb_cee_peer_get_pg:            ## @qlcnic_dcb_cee_peer_get_pg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_QLCNIC_DCB_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	addq	$8, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movq	_QLC_DCB_MAX_PG@GOTPCREL(%rip), %r8
	movq	(%r8), %r12
	testq	%r12, %r12
	je	LBB0_11
## %bb.2:
	movq	_QLC_DCB_PEER_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	leaq	(%rcx,%rax), %r10
	movq	8(%rcx,%rax), %r14
	xorl	%r11d, %r11d
	movq	_QLC_DCB_MAX_TC@GOTPCREL(%rip), %r9
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%r12, %rax
	jae	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpl	$0, 4(%r14,%rax,8)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14,%rax,8), %ecx
	movq	8(%r15), %rdx
	movl	%ecx, (%rdx,%r11,4)
	movq	(%r9), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r10), %rbx
	leaq	(%rax,%rax,2), %rdi
	leaq	(%rbx,%rdi,8), %rcx
	movq	16(%rbx,%rdi,8), %rsi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	decq	%rdx
	je	LBB0_10
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpq	%rax, (%rcx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx,%rdi,8), %rcx
	movq	(%r15), %rdx
	movq	%rcx, (%rdx,%r11,8)
	incq	%r11
	movq	(%r8), %r12
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_DCB_STATE,4,2           ## @QLCNIC_DCB_STATE
	.comm	_QLC_DCB_PEER_IDX,8,3           ## @QLC_DCB_PEER_IDX
	.comm	_QLC_DCB_MAX_PG,8,3             ## @QLC_DCB_MAX_PG
	.comm	_QLC_DCB_MAX_TC,8,3             ## @QLC_DCB_MAX_TC
	.no_dead_strip	_qlcnic_dcb_cee_peer_get_pg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_dcb_cee_peer_get_pg
_qlcnic_dcb_cee_peer_get_pg:            ; @qlcnic_dcb_cee_peer_get_pg
	.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, x1
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _QLCNIC_DCB_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_DCB_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, #8
	bl	_test_bit
	cbz	w0, LBB0_11
; %bb.1:
Lloh3:
	adrp	x8, _QLC_DCB_MAX_PG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_DCB_MAX_PG@GOTPAGEOFF]
	ldr	x11, [x8]
	cbz	x11, LBB0_11
; %bb.2:
	mov	x10, #0
	mov	x9, #0
Lloh5:
	adrp	x12, _QLC_DCB_PEER_IDX@GOTPAGE
Lloh6:
	ldr	x12, [x12, _QLC_DCB_PEER_IDX@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	ldr	x13, [x20]
	ldr	x13, [x13]
	ldr	x13, [x13]
	add	x12, x13, x12, lsl #4
	ldr	x13, [x12, #8]
Lloh8:
	adrp	x14, _QLC_DCB_MAX_TC@GOTPAGE
Lloh9:
	ldr	x14, [x14, _QLC_DCB_MAX_TC@GOTPAGEOFF]
	mov	w15, #24
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, x11
	b.hs	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	add	x16, x13, x9, lsl #3
	ldr	w16, [x16, #4]
	cbz	w16, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x16, x9, #3
	ldr	w16, [x13, x16]
	ldr	x17, [x19, #8]
	str	w16, [x17, x10, lsl #2]
	ldr	x16, [x14]
	cbz	x16, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x12]
	madd	x0, x9, x15, x17
	ldr	x1, [x0, #16]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	subs	x16, x16, #1
	b.eq	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x1, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x2, [x0]
	cmp	x2, x9
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	madd	x11, x9, x15, x17
	ldr	x11, [x11, #8]
	ldr	x16, [x19]
	str	x11, [x16, x10, lsl #3]
	add	x10, x10, #1
	ldr	x11, [x8]
	b	LBB0_3
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_DCB_STATE,4,2           ; @QLCNIC_DCB_STATE
	.comm	_QLC_DCB_PEER_IDX,8,3           ; @QLC_DCB_PEER_IDX
	.comm	_QLC_DCB_MAX_PG,8,3             ; @QLC_DCB_MAX_PG
	.comm	_QLC_DCB_MAX_TC,8,3             ; @QLC_DCB_MAX_TC
	.no_dead_strip	_qlcnic_dcb_cee_peer_get_pg
.subsections_via_symbols
