	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_query_dscp2prio           ## -- Begin function mlx5_query_dscp2prio
	.p2align	4, 0x90
_mlx5_query_dscp2prio:                  ## @mlx5_query_dscp2prio
	.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, %r15
	movq	%rdi, %r12
	movq	_qpdpm_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movl	(%r14), %esi
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	testq	%r13, %r13
	je	LBB0_2
## %bb.3:
	movq	_qpdpm_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_local_port@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	_MLX5_REG_QPDPM@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	movl	%ebx, %r8d
	pushq	$0
	pushq	$0
	callq	_mlx5_core_access_reg
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	_MLX5E_SUPPORTED_DSCP@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_5
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_qpdpm_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_dscp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r13, %rsi
	movq	%rcx, %r14
	callq	_MLX5_ADDR_OF
	movq	_qpdpm_dscp_reg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_prio@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_MLX5_GET16
	movq	%r14, %rcx
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
## %bb.8:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_qpdpm_reg,4,2                  ## @qpdpm_reg
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_local_port,4,2                 ## @local_port
	.comm	_MLX5_REG_QPDPM,4,2             ## @MLX5_REG_QPDPM
	.comm	_MLX5E_SUPPORTED_DSCP,4,2       ## @MLX5E_SUPPORTED_DSCP
	.comm	_dscp,8,3                       ## @dscp
	.comm	_qpdpm_dscp_reg,4,2             ## @qpdpm_dscp_reg
	.comm	_prio,4,2                       ## @prio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_query_dscp2prio           ; -- Begin function mlx5_query_dscp2prio
	.p2align	2
_mlx5_query_dscp2prio:                  ; @mlx5_query_dscp2prio
	.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	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _qpdpm_reg@GOTPAGE
Lloh1:
	ldr	x24, [x24, _qpdpm_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	w22, w8
	b	LBB0_7
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_QPDPM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX5_REG_QPDPM@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	x3, x20
	mov	x4, x23
	mov	w6, #0
	mov	w7, #0
	bl	_mlx5_core_access_reg
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:
Lloh13:
	adrp	x22, _MLX5E_SUPPORTED_DSCP@GOTPAGE
Lloh14:
	ldr	x22, [x22, _MLX5E_SUPPORTED_DSCP@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
Lloh15:
	adrp	x25, _dscp@GOTPAGE
Lloh16:
	ldr	x25, [x25, _dscp@GOTPAGEOFF]
Lloh17:
	adrp	x26, _qpdpm_dscp_reg@GOTPAGE
Lloh18:
	ldr	x26, [x26, _qpdpm_dscp_reg@GOTPAGEOFF]
Lloh19:
	adrp	x27, _prio@GOTPAGE
Lloh20:
	ldr	x27, [x27, _prio@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	x8, [x25]
	lsl	x28, x23, #2
	ldr	w2, [x8, x28]
	mov	x1, x20
	bl	_MLX5_ADDR_OF
	mov	x1, x0
	ldr	w0, [x26]
	ldr	w2, [x27]
	bl	_MLX5_GET16
	str	w0, [x21, x28]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_5
LBB0_6:
	mov	w22, #0
LBB0_7:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_qpdpm_reg,4,2                  ; @qpdpm_reg
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_local_port,4,2                 ; @local_port
	.comm	_MLX5_REG_QPDPM,4,2             ; @MLX5_REG_QPDPM
	.comm	_MLX5E_SUPPORTED_DSCP,4,2       ; @MLX5E_SUPPORTED_DSCP
	.comm	_dscp,8,3                       ; @dscp
	.comm	_qpdpm_dscp_reg,4,2             ; @qpdpm_dscp_reg
	.comm	_prio,4,2                       ; @prio
.subsections_via_symbols
