	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_atl_a0_hw_qos_set
_hw_atl_a0_hw_qos_set:                  ## @hw_atl_a0_hw_qos_set
	.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
	xorl	%esi, %esi
	callq	_hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_hw_atl_tps_tx_pkt_shed_desc_rate_lim_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_tps_tx_pkt_shed_desc_vm_arb_mode_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_tps_tx_pkt_shed_desc_tc_arb_mode_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hw_atl_tps_tx_pkt_shed_data_arb_mode_set
	movq	%rbx, %rdi
	movl	$4095, %esi                     ## imm = 0xFFF
	xorl	%edx, %edx
	callq	_hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set
	movq	%rbx, %rdi
	movl	$100, %esi
	xorl	%edx, %edx
	callq	_hw_atl_tps_tx_pkt_shed_tc_data_weight_set
	movq	%rbx, %rdi
	movl	$80, %esi
	xorl	%edx, %edx
	callq	_hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set
	movq	%rbx, %rdi
	movl	$30, %esi
	xorl	%edx, %edx
	callq	_hw_atl_tps_tx_pkt_shed_desc_tc_weight_set
	movq	_HW_ATL_A0_TXBUF_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_hw_atl_tpb_tx_pkt_buff_size_per_tc_set
	imull	$2112, %r14d, %eax              ## imm = 0x840
	imulq	$1374389535, %rax, %rsi         ## imm = 0x51EB851F
	shrq	$37, %rsi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_hw_atl_tpb_tx_buff_hi_threshold_per_tc_set
	imull	$1600, %r14d, %eax              ## imm = 0x640
	imulq	$1374389535, %rax, %rsi         ## imm = 0x51EB851F
	shrq	$37, %rsi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_hw_atl_tpb_tx_buff_lo_threshold_per_tc_set
	movq	_AQ_NIC_FC_RX@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movl	(%rcx), %r15d
	andl	(%rax), %r15d
	movq	_HW_ATL_A0_RXBUF_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpb_rx_pkt_buff_size_per_tc_set
	imull	$2112, %r14d, %eax              ## imm = 0x840
	imulq	$1374389535, %rax, %rsi         ## imm = 0x51EB851F
	shrq	$37, %rsi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_hw_atl_rpb_rx_buff_hi_threshold_per_tc_set
	imull	$1600, %r14d, %eax              ## imm = 0x640
	imulq	$1374389535, %rax, %rsi         ## imm = 0x51EB851F
	shrq	$37, %rsi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%edx, %edx
	callq	_hw_atl_rpb_rx_buff_lo_threshold_per_tc_set
	xorl	%esi, %esi
	testl	%r15d, %r15d
	setne	%sil
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hw_atl_rpb_rx_xoff_en_per_tc_set
	movq	%rbx, %rdi
	movl	$7, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpf_rpb_user_priority_tc_map_set
	movq	%rbx, %rdi
	movl	$6, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpf_rpb_user_priority_tc_map_set
	movq	%rbx, %rdi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpf_rpb_user_priority_tc_map_set
	movq	%rbx, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpf_rpb_user_priority_tc_map_set
	movq	%rbx, %rdi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpf_rpb_user_priority_tc_map_set
	movq	%rbx, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpf_rpb_user_priority_tc_map_set
	movq	%rbx, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpf_rpb_user_priority_tc_map_set
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_hw_atl_rpf_rpb_user_priority_tc_map_set
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aq_hw_err_from_flags           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_ATL_A0_TXBUF_MAX,4,2        ## @HW_ATL_A0_TXBUF_MAX
	.comm	_AQ_NIC_FC_RX,4,2               ## @AQ_NIC_FC_RX
	.comm	_HW_ATL_A0_RXBUF_MAX,4,2        ## @HW_ATL_A0_RXBUF_MAX
	.no_dead_strip	_hw_atl_a0_hw_qos_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_atl_a0_hw_qos_set
_hw_atl_a0_hw_qos_set:                  ; @hw_atl_a0_hw_qos_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	w1, #0
	bl	_hw_atl_tps_tx_pkt_shed_desc_rate_curr_time_res_set
	mov	x0, x19
	mov	w1, #10
	bl	_hw_atl_tps_tx_pkt_shed_desc_rate_lim_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_tps_tx_pkt_shed_desc_vm_arb_mode_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_tps_tx_pkt_shed_desc_tc_arb_mode_set
	mov	x0, x19
	mov	w1, #0
	bl	_hw_atl_tps_tx_pkt_shed_data_arb_mode_set
	mov	x0, x19
	mov	w1, #4095
	mov	w2, #0
	bl	_hw_atl_tps_tx_pkt_shed_tc_data_max_credit_set
	mov	x0, x19
	mov	w1, #100
	mov	w2, #0
	bl	_hw_atl_tps_tx_pkt_shed_tc_data_weight_set
	mov	x0, x19
	mov	w1, #80
	mov	w2, #0
	bl	_hw_atl_tps_tx_pkt_shed_desc_tc_max_credit_set
	mov	x0, x19
	mov	w1, #30
	mov	w2, #0
	bl	_hw_atl_tps_tx_pkt_shed_desc_tc_weight_set
Lloh0:
	adrp	x8, _HW_ATL_A0_TXBUF_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_ATL_A0_TXBUF_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_hw_atl_tpb_tx_pkt_buff_size_per_tc_set
	add	w8, w20, w20, lsl #5
	lsl	w8, w8, #6
	mov	w21, #34079
	movk	w21, #20971, lsl #16
	umull	x8, w8, w21
	lsr	x1, x8, #37
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	bl	_hw_atl_tpb_tx_buff_hi_threshold_per_tc_set
	mov	w22, #1600
	mul	w8, w20, w22
	umull	x8, w8, w21
	lsr	x1, x8, #37
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	bl	_hw_atl_tpb_tx_buff_lo_threshold_per_tc_set
Lloh3:
	adrp	x8, _AQ_NIC_FC_RX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AQ_NIC_FC_RX@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	ldr	x8, [x19]
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _HW_ATL_A0_RXBUF_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HW_ATL_A0_RXBUF_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_hw_atl_rpb_rx_pkt_buff_size_per_tc_set
	add	w8, w20, w20, lsl #5
	lsl	w8, w8, #6
	umull	x8, w8, w21
	lsr	x1, x8, #37
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	bl	_hw_atl_rpb_rx_buff_hi_threshold_per_tc_set
	mul	w8, w20, w22
	umull	x8, w8, w21
	lsr	x1, x8, #37
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #0
	bl	_hw_atl_rpb_rx_buff_lo_threshold_per_tc_set
	tst	w24, w23
	cset	w1, ne
	mov	x0, x19
	mov	w2, #0
	bl	_hw_atl_rpb_rx_xoff_en_per_tc_set
	mov	x0, x19
	mov	w1, #7
	mov	w2, #0
	bl	_hw_atl_rpf_rpb_user_priority_tc_map_set
	mov	x0, x19
	mov	w1, #6
	mov	w2, #0
	bl	_hw_atl_rpf_rpb_user_priority_tc_map_set
	mov	x0, x19
	mov	w1, #5
	mov	w2, #0
	bl	_hw_atl_rpf_rpb_user_priority_tc_map_set
	mov	x0, x19
	mov	w1, #4
	mov	w2, #0
	bl	_hw_atl_rpf_rpb_user_priority_tc_map_set
	mov	x0, x19
	mov	w1, #3
	mov	w2, #0
	bl	_hw_atl_rpf_rpb_user_priority_tc_map_set
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_hw_atl_rpf_rpb_user_priority_tc_map_set
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_hw_atl_rpf_rpb_user_priority_tc_map_set
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_hw_atl_rpf_rpb_user_priority_tc_map_set
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_aq_hw_err_from_flags
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_ATL_A0_TXBUF_MAX,4,2        ; @HW_ATL_A0_TXBUF_MAX
	.comm	_AQ_NIC_FC_RX,4,2               ; @AQ_NIC_FC_RX
	.comm	_HW_ATL_A0_RXBUF_MAX,4,2        ; @HW_ATL_A0_RXBUF_MAX
	.no_dead_strip	_hw_atl_a0_hw_qos_set
.subsections_via_symbols
