	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_read_field
_qp_read_field:                         ## @qp_read_field
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_query_qp_out@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	movq	%rax, %rbx
	callq	_mlx5_core_qp_query
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_warn
	xorl	%r13d, %r13d
LBB0_18:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_19
LBB0_1:
	xorl	%r13d, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	(%r14), %edi
	movq	_qpc@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %r14
	movq	%rbx, %rsi
	callq	_MLX5_ADDR_OF
	xorl	%r13d, %r13d
	addl	$-128, %r15d
	cmpl	$8, %r15d
	ja	LBB0_18
## %bb.5:
	movq	%rax, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	shrl	$16, %eax
	movzbl	%al, %edi
	callq	_mlx5_qp_type_str
	jmp	LBB0_8
LBB0_7:
	movl	16(%rbx), %edi
	callq	_be32_to_cpu
	sarl	$28, %eax
	movl	%eax, %edi
	callq	_mlx5_qp_state_str
LBB0_8:
	movq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	jmp	LBB0_18
LBB0_15:
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	andl	$16777215, %r13d                ## imm = 0xFFFFFF
	jmp	LBB0_18
LBB0_11:
	movb	4(%rbx), %cl
	andb	$7, %cl
	movl	$16, %r13d
	shll	%cl, %r13d
	jmp	LBB0_18
LBB0_6:
	movl	(%r12), %r13d
	jmp	LBB0_18
LBB0_16:
	movl	(%rbx), %eax
	sarl	$5, %eax
	addl	$-137, %eax
	cmpl	$5, %eax
	jae	LBB0_18
## %bb.17:
	cltq
	leaq	l_switch.table.qp_read_field(%rip), %rcx
	movl	(%rcx,%rax,4), %r13d
	jmp	LBB0_18
LBB0_12:
	movl	12(%rbx), %edi
	callq	_be16_to_cpu
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	ja	LBB0_18
## %bb.13:
	movl	12(%rbx), %edi
	callq	_be16_to_cpu
	shrl	$11, %eax
	movl	$1, %r13d
	movl	%eax, %ecx
	shll	%cl, %r13d
	jmp	LBB0_18
LBB0_10:
	movb	4(%rbx), %cl
	shrb	$3, %cl
	andb	$15, %cl
	movl	$1, %r13d
	shll	%cl, %r13d
	jmp	LBB0_18
LBB0_14:
	movl	8(%rbx), %edi
	callq	_be32_to_cpu
	movl	%eax, %r13d
	shrl	$24, %r13d
	andl	$31, %r13d
	addl	$12, %r13d
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_15
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_16
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_query_qp_out,4,2               ## @query_qp_out
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to query qp err=%d\n"

	.comm	_qpc,4,2                        ## @qpc
	.no_dead_strip	_qp_read_field
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.qp_read_field
l_switch.table.qp_read_field:
	.long	512                             ## 0x200
	.long	4096                            ## 0x1000
	.long	256                             ## 0x100
	.long	2048                            ## 0x800
	.long	1024                            ## 0x400

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_read_field
_qp_read_field:                         ; @qp_read_field
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x25, _query_qp_out@GOTPAGE
Lloh1:
	ldr	x25, [x25, _query_qp_out@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_MLX5_ST_SZ_BYTES
	mov	x24, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x19
	mov	x3, x24
	bl	_mlx5_core_qp_query
	cbz	w0, LBB0_7
; %bb.2:
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_mlx5_core_warn
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x19
	bl	_kfree
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	str	wzr, [x20]
	ldr	w0, [x25]
Lloh7:
	adrp	x8, _qpc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qpc@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_MLX5_ADDR_OF
	sub	w8, w22, #128
	cmp	w8, #8
	b.hi	LBB0_3
; %bb.8:
	mov	x23, x0
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	ldr	w0, [x23, #16]
	bl	_be32_to_cpu
	ubfx	w0, w0, #16, #8
	bl	_mlx5_qp_type_str
	mov	w8, #1
	str	w8, [x20]
	mov	x21, x0
	b	LBB0_4
LBB0_10:
	ldr	w0, [x23, #16]
	bl	_be32_to_cpu
	asr	w0, w0, #28
	bl	_mlx5_qp_state_str
	mov	x21, x0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_4
LBB0_11:
	ldr	w0, [x23, #8]
	bl	_be32_to_cpu
	and	w21, w0, #0xffffff
	b	LBB0_4
LBB0_12:
	ldr	w8, [x23, #4]
	and	x8, x8, #0x7
	mov	w9, #16
	lsl	w21, w9, w8
	b	LBB0_4
LBB0_13:
	ldr	w21, [x21]
	b	LBB0_4
LBB0_14:
	ldr	w8, [x23]
	sbfx	x8, x8, #5, #27
	sub	x8, x8, #137
	cmp	w8, #5
	b.hs	LBB0_3
; %bb.15:
Lloh12:
	adrp	x9, l_switch.table.qp_read_field@PAGE
Lloh13:
	add	x9, x9, l_switch.table.qp_read_field@PAGEOFF
	ldr	w21, [x9, x8, lsl #2]
	b	LBB0_4
LBB0_16:
	ldr	w0, [x23, #12]
	bl	_be16_to_cpu
	lsr	w8, w0, #15
	cbnz	w8, LBB0_3
; %bb.17:
	ldr	w0, [x23, #12]
	bl	_be16_to_cpu
	asr	w8, w0, #11
	b	LBB0_19
LBB0_18:
	ldr	w8, [x23, #4]
	ubfx	w8, w8, #3, #4
LBB0_19:
	mov	w9, #1
	lsl	w21, w9, w8
	b	LBB0_4
LBB0_20:
	ldr	w0, [x23, #8]
	bl	_be32_to_cpu
	ubfx	w8, w0, #24, #5
	add	w21, w8, #12
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_13-LBB0_9)>>2
	.byte	(LBB0_16-LBB0_9)>>2
	.byte	(LBB0_18-LBB0_9)>>2
	.byte	(LBB0_14-LBB0_9)>>2
	.byte	(LBB0_20-LBB0_9)>>2
                                        ; -- End function
	.comm	_query_qp_out,4,2               ; @query_qp_out
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to query qp err=%d\n"

	.comm	_qpc,4,2                        ; @qpc
	.no_dead_strip	_qp_read_field
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.qp_read_field
l_switch.table.qp_read_field:
	.long	512                             ; 0x200
	.long	4096                            ; 0x1000
	.long	256                             ; 0x100
	.long	2048                            ; 0x800
	.long	1024                            ; 0x400

.subsections_via_symbols
