	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mlx5e_port_set_priority2buffer
LCPI0_0:
	.long	65536                           ## 0x10000
	.long	1048576                         ## 0x100000
	.long	16777216                        ## 0x1000000
	.long	268435456                       ## 0x10000000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx5e_port_set_priority2buffer
	.p2align	4, 0x90
_mlx5e_port_set_priority2buffer:        ## @mlx5e_port_set_priority2buffer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_pptb_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, %r13
	movl	(%rbx), %esi
	movl	%r12d, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.3:
	movq	_pptb_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_local_port@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_MLX5_REG_PPTB@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	pushq	$0
	pushq	$0
	callq	_mlx5_core_access_reg
	addq	$16, %rsp
	movq	%r15, %rbx
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	_pptb_reg@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_local_port@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movl	(%r15), %edi
	movq	_pm@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	movl	$255, %ecx
	callq	_MLX5_SET
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	4(%rsi), %eax
	movl	8(%rsi), %ecx
	shll	$4, %eax
	shll	$8, %ecx
	movl	12(%rsi), %edx
	shll	$12, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	movdqu	16(%rsi), %xmm0
	pmulld	LCPI0_0(%rip), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ecx
	orl	%edx, %ecx
	orl	(%rsi), %ecx
	movl	(%r15), %edi
	movq	%r13, %rsi
	movl	%ecx, %edx
	callq	_MLX5_SET
	movq	_MLX5_REG_PPTB@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	movl	%r12d, %r8d
	pushq	$1
	pushq	$0
	callq	_mlx5_core_access_reg
	addq	$16, %rsp
	movl	%eax, %r15d
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pptb_reg,4,2                   ## @pptb_reg
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_local_port,4,2                 ## @local_port
	.comm	_MLX5_REG_PPTB,4,2              ## @MLX5_REG_PPTB
	.comm	_pm,4,2                         ## @pm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mlx5e_port_set_priority2buffer
lCPI0_0:
	.long	16                              ; 0x10
	.long	20                              ; 0x14
	.long	24                              ; 0x18
	.long	28                              ; 0x1c
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx5e_port_set_priority2buffer
	.p2align	2
_mlx5e_port_set_priority2buffer:        ; @mlx5e_port_set_priority2buffer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _pptb_reg@GOTPAGE
Lloh1:
	ldr	x25, [x25, _pptb_reg@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_MLX5_ST_SZ_BYTES
	mov	x22, x0
Lloh2:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_kzalloc
	mov	x19, x0
	ldr	w1, [x20]
	mov	x0, x22
	bl	_kzalloc
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_4
LBB0_2:
	ldr	w0, [x25]
Lloh7:
	adrp	x27, _local_port@GOTPAGE
Lloh8:
	ldr	x27, [x27, _local_port@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x1, x19
	mov	w3, #1
	bl	_MLX5_SET
Lloh9:
	adrp	x26, _MLX5_REG_PPTB@GOTPAGE
Lloh10:
	ldr	x26, [x26, _MLX5_REG_PPTB@GOTPAGEOFF]
	ldr	w5, [x26]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x22
	mov	w6, #0
	mov	w7, #0
	bl	_mlx5_core_access_reg
	mov	x24, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	ldr	w0, [x25]
	ldr	w2, [x27]
	mov	x1, x19
	mov	w3, #1
	bl	_MLX5_SET
	ldr	w0, [x25]
Lloh11:
	adrp	x8, _pm@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pm@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x19
	mov	w3, #255
	bl	_MLX5_SET
	ldp	w8, w9, [x23]
	ldp	w10, w11, [x23, #8]
	ldr	q0, [x23, #16]
Lloh14:
	adrp	x12, lCPI0_0@PAGE
Lloh15:
	ldr	q1, [x12, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w12, v0[1]
	fmov	w13, s0
	orr	w12, w13, w12
	orr	w11, w12, w11, lsl #12
	orr	w10, w11, w10, lsl #8
	orr	w9, w10, w9, lsl #4
	orr	w2, w9, w8
	ldr	w0, [x25]
	mov	x1, x19
	mov	x3, x2
	bl	_MLX5_SET
	ldr	w5, [x26]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	mov	x3, x20
	mov	x4, x22
	mov	w6, #0
	mov	w7, #1
	bl	_mlx5_core_access_reg
	mov	x24, x0
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_pptb_reg,4,2                   ; @pptb_reg
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_local_port,4,2                 ; @local_port
	.comm	_MLX5_REG_PPTB,4,2              ; @MLX5_REG_PPTB
	.comm	_pm,4,2                         ; @pm
.subsections_via_symbols
