	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_dcb_get_pg_bwg_cfg_tx
_qlcnic_dcb_get_pg_bwg_cfg_tx:          ## @qlcnic_dcb_get_pg_bwg_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	callq	_netdev_priv
	movl	$0, (%r15)
	movq	(%rax), %rsi
	movq	8(%rsi), %rax
	movq	(%rax), %r12
	movq	_QLC_DCB_OPER_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_QLCNIC_DCB_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	shlq	$4, %rbx
	cmpl	$0, 8(%r12,%rbx)
	je	LBB0_6
## %bb.2:
	testl	%r14d, %r14d
	js	LBB0_6
## %bb.3:
	movq	_QLC_DCB_MAX_PG@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jle	LBB0_6
## %bb.4:
	movq	(%r12,%rbx), %rax
	movl	%r14d, %ecx
	cmpl	$0, 4(%rax,%rcx,8)
	je	LBB0_6
## %bb.5:
	movl	(%rax,%rcx,8), %eax
	movl	%eax, (%r15)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_PG,4,2             ## @QLC_DCB_MAX_PG
	.no_dead_strip	_qlcnic_dcb_get_pg_bwg_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_bwg_cfg_tx
_qlcnic_dcb_get_pg_bwg_cfg_tx:          ; @qlcnic_dcb_get_pg_bwg_cfg_tx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_netdev_priv
	str	wzr, [x19]
	ldr	x1, [x0]
	ldr	x8, [x1, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _QLC_DCB_OPER_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_DCB_OPER_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
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_6
; %bb.1:
	add	x8, x21, x22, lsl #4
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_6
; %bb.2:
	tbnz	w20, #31, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _QLC_DCB_MAX_PG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_DCB_MAX_PG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.le	LBB0_6
; %bb.4:
	lsl	x8, x22, #4
	ldr	x8, [x21, x8]
	add	x9, x8, w20, uxtw #3
	ldr	w9, [x9, #4]
	cbz	w9, LBB0_6
; %bb.5:
	mov	w9, w20
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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_PG,4,2             ; @QLC_DCB_MAX_PG
	.no_dead_strip	_qlcnic_dcb_get_pg_bwg_cfg_tx
.subsections_via_symbols
