	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_port_query_priority2buffer ## -- Begin function mlx5e_port_query_priority2buffer
	.p2align	4, 0x90
_mlx5e_port_query_priority2buffer:      ## @mlx5e_port_query_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	_pptb_reg@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, %r13
	movl	(%r15), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	movq	%rax, %r15
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:
	movl	(%r12), %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	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	pushq	$0
	pushq	$0
	callq	_mlx5_core_access_reg
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_MLX5_GET
	movl	%eax, %ecx
	movl	%eax, %r12d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	andl	$15, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mlx5_core_dbg
	movl	%r12d, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	movq	%r14, %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%ecx, 4(%r14)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_mlx5_core_dbg
	movl	%r12d, %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	movl	%ecx, 8(%r14)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$2, %edx
	callq	_mlx5_core_dbg
	movl	%r12d, %ecx
	shrl	$12, %ecx
	andl	$15, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, 12(%rax)
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$3, %edx
	callq	_mlx5_core_dbg
	movl	%r12d, %ecx
	shrl	$16, %ecx
	andl	$15, %ecx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%ecx, 16(%r14)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_mlx5_core_dbg
	movl	%r12d, %ecx
	shrl	$20, %ecx
	andl	$15, %ecx
	movl	%ecx, 20(%r14)
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$5, %edx
	callq	_mlx5_core_dbg
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	shrl	$24, %ecx
	andl	$15, %ecx
	movl	%ecx, 24(%r14)
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$6, %edx
	callq	_mlx5_core_dbg
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	shrl	$28, %ecx
	movl	%ecx, 28(%r14)
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$7, %edx
	callq	_mlx5_core_dbg
	jmp	LBB0_5
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prio %d, buffer %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5e_port_query_priority2buffer ; -- Begin function mlx5e_port_query_priority2buffer
	.p2align	2
_mlx5e_port_query_priority2buffer:      ; @mlx5e_port_query_priority2buffer
	.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	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _pptb_reg@GOTPAGE
Lloh1:
	ldr	x24, [x24, _pptb_reg@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_MLX5_ST_SZ_BYTES
	mov	x23, 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, x23
	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	w23, w8
	b	LBB0_4
LBB0_2:
	ldr	w0, [x24]
Lloh7:
	adrp	x8, _local_port@GOTPAGE
Lloh8:
	ldr	x8, [x8, _local_port@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x19
	mov	w3, #1
	bl	_MLX5_SET
Lloh10:
	adrp	x8, _MLX5_REG_PPTB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX5_REG_PPTB@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x20
	mov	x4, x23
	mov	w6, #0
	mov	w7, #0
	bl	_mlx5_core_access_reg
	mov	x23, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_MLX5_GET
	mov	x24, x0
	and	w3, w0, #0xf
	str	w3, [x22]
Lloh13:
	adrp	x23, l_.str@PAGE
Lloh14:
	add	x23, x23, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	bl	_mlx5_core_dbg
	ubfx	w3, w24, #4, #4
	str	w3, [x22, #4]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #1
	bl	_mlx5_core_dbg
	ubfx	w3, w24, #8, #4
	str	w3, [x22, #8]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #2
	bl	_mlx5_core_dbg
	ubfx	w3, w24, #12, #4
	str	w3, [x22, #12]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #3
	bl	_mlx5_core_dbg
	ubfx	w3, w24, #16, #4
	str	w3, [x22, #16]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #4
	bl	_mlx5_core_dbg
	ubfx	w3, w24, #20, #4
	str	w3, [x22, #20]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #5
	bl	_mlx5_core_dbg
	ubfx	w3, w24, #24, #4
	str	w3, [x22, #24]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #6
	bl	_mlx5_core_dbg
	lsr	w3, w24, #28
	str	w3, [x22, #28]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #7
	bl	_mlx5_core_dbg
	mov	w23, #0
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x23
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prio %d, buffer %d\n"

.subsections_via_symbols
