	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5i_create_underlay_qp       ## -- Begin function mlx5i_create_underlay_qp
	.p2align	4, 0x90
_mlx5i_create_underlay_qp:              ## @mlx5i_create_underlay_qp
	.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, %r14
	movq	_create_qp_in@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%rbx), %rdi
	movq	%rax, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %rbx
	movq	_st@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_QP_ST_UD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	_pm_state@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_QP_PM_MIGRATED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	_ulp_stateless_offload_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_QP_ENHANCED_ULP_STATELESS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	_primary_address_path@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_MLX5_ADDR_OF
	movq	%rax, %rbx
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_ads@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_vhca_port_num@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	(%r12), %rdi
	movq	_grh@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_mlx5_core_create_qp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_mlx5_core_err
LBB0_4:
	movq	%r13, %rdi
	callq	_kvfree
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_create_qp_in,8,3               ## @create_qp_in
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_st,4,2                         ## @st
	.comm	_MLX5_QP_ST_UD,4,2              ## @MLX5_QP_ST_UD
	.comm	_pm_state,4,2                   ## @pm_state
	.comm	_MLX5_QP_PM_MIGRATED,4,2        ## @MLX5_QP_PM_MIGRATED
	.comm	_ulp_stateless_offload_mode,4,2 ## @ulp_stateless_offload_mode
	.comm	_MLX5_QP_ENHANCED_ULP_STATELESS_MODE,4,2 ## @MLX5_QP_ENHANCED_ULP_STATELESS_MODE
	.comm	_primary_address_path,8,3       ## @primary_address_path
	.comm	_ads,8,3                        ## @ads
	.comm	_vhca_port_num,4,2              ## @vhca_port_num
	.comm	_grh,4,2                        ## @grh
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed creating IPoIB QP err : %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5i_create_underlay_qp       ; -- Begin function mlx5i_create_underlay_qp
	.p2align	2
_mlx5i_create_underlay_qp:              ; @mlx5i_create_underlay_qp
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _create_qp_in@GOTPAGE
Lloh1:
	ldr	x23, [x23, _create_qp_in@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_MLX5_ST_SZ_BYTES
	mov	x22, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kvzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x0, [x23]
	mov	x1, x20
	bl	_MLX5_ADDR_OF
	mov	x23, x0
Lloh5:
	adrp	x8, _st@GOTPAGE
Lloh6:
	ldr	x8, [x8, _st@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _MLX5_QP_ST_UD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5_QP_ST_UD@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x1, x0
	bl	_MLX5_SET
Lloh11:
	adrp	x8, _pm_state@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pm_state@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _MLX5_QP_PM_MIGRATED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX5_QP_PM_MIGRATED@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x23
	bl	_MLX5_SET
Lloh17:
	adrp	x8, _ulp_stateless_offload_mode@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ulp_stateless_offload_mode@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _MLX5_QP_ENHANCED_ULP_STATELESS_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX5_QP_ENHANCED_ULP_STATELESS_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x23
	bl	_MLX5_SET
Lloh23:
	adrp	x8, _primary_address_path@GOTPAGE
Lloh24:
	ldr	x8, [x8, _primary_address_path@GOTPAGEOFF]
Lloh25:
	ldr	x2, [x8]
	mov	x0, x23
	mov	x1, x23
	bl	_MLX5_ADDR_OF
	mov	x23, x0
Lloh26:
	adrp	x24, _ads@GOTPAGE
Lloh27:
	ldr	x24, [x24, _ads@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh28:
	adrp	x8, _vhca_port_num@GOTPAGE
Lloh29:
	ldr	x8, [x8, _vhca_port_num@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x1, x23
	mov	w3, #1
	bl	_MLX5_SET
	ldr	x0, [x24]
Lloh31:
	adrp	x8, _grh@GOTPAGE
Lloh32:
	ldr	x8, [x8, _grh@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x1, x23
	mov	w3, #1
	bl	_MLX5_SET
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_mlx5_core_create_qp
	mov	x21, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_mlx5_core_err
LBB0_3:
	mov	x0, x20
	bl	_kvfree
	b	LBB0_5
LBB0_4:
Lloh36:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_create_qp_in,8,3               ; @create_qp_in
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_st,4,2                         ; @st
	.comm	_MLX5_QP_ST_UD,4,2              ; @MLX5_QP_ST_UD
	.comm	_pm_state,4,2                   ; @pm_state
	.comm	_MLX5_QP_PM_MIGRATED,4,2        ; @MLX5_QP_PM_MIGRATED
	.comm	_ulp_stateless_offload_mode,4,2 ; @ulp_stateless_offload_mode
	.comm	_MLX5_QP_ENHANCED_ULP_STATELESS_MODE,4,2 ; @MLX5_QP_ENHANCED_ULP_STATELESS_MODE
	.comm	_primary_address_path,8,3       ; @primary_address_path
	.comm	_ads,8,3                        ; @ads
	.comm	_vhca_port_num,4,2              ; @vhca_port_num
	.comm	_grh,4,2                        ; @grh
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed creating IPoIB QP err : %d\n"

.subsections_via_symbols
