	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_nic_cfg_start               ## -- Begin function aq_nic_cfg_start
	.p2align	4, 0x90
_aq_nic_cfg_start:                      ## @aq_nic_cfg_start
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_AQ_CFG_TCS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rdi)
	movq	_AQ_CFG_IS_POLLING_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%rdi)
	movq	_aq_itr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%rdi)
	movq	_aq_itr_tx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rdi)
	movq	_aq_itr_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rdi)
	movq	_AQ_CFG_RX_PAGEORDER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rdi)
	movq	_AQ_CFG_IS_RSS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_AQ_CFG_NUM_RSS_QUEUES_DEF@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 64(%rdi)
	movq	_AQ_CFG_RSS_BASE_CPU_NUM_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rdi)
	movq	_AQ_CFG_FC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rdi)
	movq	_AQ_CFG_MTU_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rdi)
	movq	_AQ_CFG_SPEED_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	_AQ_CFG_IS_AUTONEG_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rdi)
	movq	_AQ_CFG_IS_LRO_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rdi)
	movq	48(%rdi), %rax
	movl	(%rax), %edi
	movq	_AQ_CFG_RXDS_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_min
	movq	%rax, 80(%rbx)
	movq	48(%rbx), %rax
	movl	4(%rax), %edi
	movq	_AQ_CFG_TXDS_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_min
	movq	%rax, 72(%rbx)
	movq	48(%rbx), %rax
	movl	8(%rax), %edi
	movq	_AQ_CFG_VECS_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_min
	movq	%rax, %r14
	movl	%r14d, 12(%rbx)
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_min
	movl	%eax, 12(%rbx)
	movq	(%rbx), %rsi
	movq	_AQ_HW_SERVICE_IRQS@GOTPCREL(%rip), %r14
	subq	(%r14), %rsi
	jle	LBB0_2
## %bb.1:
	movl	%eax, %edi
	callq	_min
LBB0_2:
	movl	$8, %edi
	cmpl	$7, %eax
	ja	LBB0_5
## %bb.3:
	movl	$4, %edi
	cmpl	$3, %eax
	ja	LBB0_5
## %bb.4:
	cmpl	$2, %eax
	movl	$1, %edi
	sbbl	$-1, %edi
LBB0_5:
	movl	%edi, 12(%rbx)
	movq	(%r15), %rsi
	callq	_min
	movq	%rax, 64(%rbx)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_aq_nic_rss_init
	movq	%rbx, %rdi
	callq	_aq_pci_func_get_irq_type
	movq	%rax, 16(%rbx)
	movq	_AQ_HW_IRQ_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	48(%rbx), %rax
	cmpl	$1, 8(%rax)
	je	LBB0_8
## %bb.7:
	movl	12(%rbx), %eax
	cmpl	$1, %eax
	jne	LBB0_9
LBB0_8:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 8(%rbx)
	movl	$1, %eax
LBB0_9:
	cmpq	$0, (%r14)
	jle	LBB0_11
## %bb.10:
	leal	1(%rax), %ecx
	cmpq	%rcx, (%rbx)
	jge	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	movl	%eax, 24(%rbx)
	movq	48(%rbx), %rax
	movl	16(%rax), %ecx
	andl	%ecx, 56(%rbx)
	movl	12(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, 32(%rbx)
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%edx, 36(%rbx)
	movl	$1, 40(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AQ_CFG_TCS_DEF,4,2             ## @AQ_CFG_TCS_DEF
	.comm	_AQ_CFG_IS_POLLING_DEF,4,2      ## @AQ_CFG_IS_POLLING_DEF
	.comm	_aq_itr,4,2                     ## @aq_itr
	.comm	_aq_itr_tx,4,2                  ## @aq_itr_tx
	.comm	_aq_itr_rx,4,2                  ## @aq_itr_rx
	.comm	_AQ_CFG_RX_PAGEORDER,4,2        ## @AQ_CFG_RX_PAGEORDER
	.comm	_AQ_CFG_IS_RSS_DEF,4,2          ## @AQ_CFG_IS_RSS_DEF
	.comm	_AQ_CFG_NUM_RSS_QUEUES_DEF,8,3  ## @AQ_CFG_NUM_RSS_QUEUES_DEF
	.comm	_AQ_CFG_RSS_BASE_CPU_NUM_DEF,4,2 ## @AQ_CFG_RSS_BASE_CPU_NUM_DEF
	.comm	_AQ_CFG_FC_MODE,4,2             ## @AQ_CFG_FC_MODE
	.comm	_AQ_CFG_MTU_DEF,4,2             ## @AQ_CFG_MTU_DEF
	.comm	_AQ_CFG_SPEED_MSK,4,2           ## @AQ_CFG_SPEED_MSK
	.comm	_AQ_CFG_IS_AUTONEG_DEF,4,2      ## @AQ_CFG_IS_AUTONEG_DEF
	.comm	_AQ_CFG_IS_LRO_DEF,4,2          ## @AQ_CFG_IS_LRO_DEF
	.comm	_AQ_CFG_RXDS_DEF,8,3            ## @AQ_CFG_RXDS_DEF
	.comm	_AQ_CFG_TXDS_DEF,8,3            ## @AQ_CFG_TXDS_DEF
	.comm	_AQ_CFG_VECS_DEF,8,3            ## @AQ_CFG_VECS_DEF
	.comm	_AQ_HW_SERVICE_IRQS,8,3         ## @AQ_HW_SERVICE_IRQS
	.comm	_AQ_HW_IRQ_LEGACY,8,3           ## @AQ_HW_IRQ_LEGACY
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function aq_nic_cfg_start
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_aq_nic_cfg_start
	.p2align	2
_aq_nic_cfg_start:                      ; @aq_nic_cfg_start
	.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, x0
Lloh0:
	adrp	x8, _AQ_CFG_TCS_DEF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AQ_CFG_TCS_DEF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #128]
Lloh3:
	adrp	x8, _AQ_CFG_IS_POLLING_DEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AQ_CFG_IS_POLLING_DEF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _aq_itr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _aq_itr@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _aq_itr_tx@GOTPAGE
Lloh10:
	ldr	x10, [x10, _aq_itr_tx@GOTPAGEOFF]
	stp	w9, w8, [x0, #120]
Lloh11:
	ldr	w8, [x10]
Lloh12:
	adrp	x9, _aq_itr_rx@GOTPAGE
Lloh13:
	ldr	x9, [x9, _aq_itr_rx@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #112]
Lloh15:
	adrp	x8, _AQ_CFG_RX_PAGEORDER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AQ_CFG_RX_PAGEORDER@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _AQ_CFG_IS_RSS_DEF@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AQ_CFG_IS_RSS_DEF@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	str	w9, [x0, #8]
Lloh21:
	adrp	x21, _AQ_C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[x19, #80]
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #4]
Lloh44:
	adrp	x8, _AQ_CFG_TXDS_DEF@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AQ_CFG_TXDS_DEF@GOTPAGEOFF]
Lloh46:
	ldr	x1, [x8]
	bl	_min
	str	x0, [x19, #72]
	ldr	x8, [x19, #48]
	ldr	w0, [x8, #8]
Lloh47:
	adrp	x8, _AQ_CFG_VECS_DEF@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AQ_CFG_VECS_DEF@GOTPAGEOFF]
Lloh49:
	ldr	x1, [x8]
	bl	_min
	mov	x20, x0
	str	w20, [x19, #12]
	bl	_num_online_cpus
	mov	x1, x0
	mov	x0, x20
	bl	_min
	str	w0, [x19, #12]
	ldr	x8, [x19]
Lloh50:
	adrp	x20, _AQ_HW_SERVICE_IRQS@GOTPAGE
Lloh51:
	ldr	x20, [x20, _AQ_HW_SERVICE_IRQS@GOTPAGEOFF]
	ldr	x9, [x20]
	subs	x1, x8, x9
	b.le	LBB0_2
; %bb.1:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_min
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_2:
	cmp	w0, #7
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #8
	b	LBB0_7
LBB0_4:
	cmp	w0, #3
	b.ls	LBB0_6
; %bb.5:
	mov	w0, #4
	b	LBB0_7
LBB0_6:
	cmp	w0, #1
	mov	w8, #1
	cinc	w0, w8, hi
LBB0_7:
	str	w0, [x19, #12]
	ldr	x1, [x21]
	bl	_min
	mov	x1, x0
	str	x0, [x19, #64]
	mov	x0, x19
	bl	_aq_nic_rss_init
	mov	x0, x19
	bl	_aq_pci_func_get_irq_type
	str	x0, [x19, #16]
Lloh52:
	adrp	x8, _AQ_HW_IRQ_LEGACY@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AQ_HW_IRQ_LEGACY@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.8:
	ldr	x8, [x19, #48]
	ldr	w8, [x8, #8]
	cmp	w8, #1
	b.eq	LBB0_10
; %bb.9:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.ne	LBB0_11
LBB0_10:
Lloh55:
	adrp	x8, lCPI0_0@PAGE
Lloh56:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19, #8]
	mov	w8, #1
LBB0_11:
	ldr	x9, [x20]
	cmp	x9, #1
	b.lt	LBB0_13
; %bb.12:
	add	w9, w8, #1
	ldr	x10, [x19]
	cmp	x10, x9
	b.ge	LBB0_14
LBB0_13:
	mov	w8, #0
LBB0_14:
	ldr	x9, [x19, #48]
	ldr	w10, [x19, #56]
	ldp	w9, w11, [x9, #12]
	and	w10, w10, w11
	str	w10, [x19, #56]
	stp	w8, w9, [x19, #24]
Lloh57:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh58:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, ne
Lloh60:
	adrp	x10, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh61:
	ldr	x10, [x10, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
	stp	w8, w9, [x19, #32]
	mov	w8, #1
	str	w8, [x19, #40]
	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 AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdr	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_AQ_CFG_TCS_DEF,4,2             ; @AQ_CFG_TCS_DEF
	.comm	_AQ_CFG_IS_POLLING_DEF,4,2      ; @AQ_CFG_IS_POLLING_DEF
	.comm	_aq_itr,4,2                     ; @aq_itr
	.comm	_aq_itr_tx,4,2                  ; @aq_itr_tx
	.comm	_aq_itr_rx,4,2                  ; @aq_itr_rx
	.comm	_AQ_CFG_RX_PAGEORDER,4,2        ; @AQ_CFG_RX_PAGEORDER
	.comm	_AQ_CFG_IS_RSS_DEF,4,2          ; @AQ_CFG_IS_RSS_DEF
	.comm	_AQ_CFG_NUM_RSS_QUEUES_DEF,8,3  ; @AQ_CFG_NUM_RSS_QUEUES_DEF
	.comm	_AQ_CFG_RSS_BASE_CPU_NUM_DEF,4,2 ; @AQ_CFG_RSS_BASE_CPU_NUM_DEF
	.comm	_AQ_CFG_FC_MODE,4,2             ; @AQ_CFG_FC_MODE
	.comm	_AQ_CFG_MTU_DEF,4,2             ; @AQ_CFG_MTU_DEF
	.comm	_AQ_CFG_SPEED_MSK,4,2           ; @AQ_CFG_SPEED_MSK
	.comm	_AQ_CFG_IS_AUTONEG_DEF,4,2      ; @AQ_CFG_IS_AUTONEG_DEF
	.comm	_AQ_CFG_IS_LRO_DEF,4,2          ; @AQ_CFG_IS_LRO_DEF
	.comm	_AQ_CFG_RXDS_DEF,8,3            ; @AQ_CFG_RXDS_DEF
	.comm	_AQ_CFG_TXDS_DEF,8,3            ; @AQ_CFG_TXDS_DEF
	.comm	_AQ_CFG_VECS_DEF,8,3            ; @AQ_CFG_VECS_DEF
	.comm	_AQ_HW_SERVICE_IRQS,8,3         ; @AQ_HW_SERVICE_IRQS
	.comm	_AQ_HW_IRQ_LEGACY,8,3           ; @AQ_HW_IRQ_LEGACY
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
.subsections_via_symbols
