	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_query_hca_nic_pkey
_mlx5_query_hca_nic_pkey:               ## @mlx5_query_hca_nic_pkey
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	callq	_to_mdev
	movq	%rax, %rbx
	leaq	-36(%rbp), %rdx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_mlx5_ib_get_native_port_mdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	-36(%rbp), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	movq	%r14, %r9
	callq	_mlx5_query_hca_vport_pkey
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_mlx5_ib_put_native_port_mdev
	jmp	LBB0_3
LBB0_1:
	movq	(%rbx), %rdi
	movl	$1, -36(%rbp)
	xorl	%esi, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	movq	%r14, %r9
	callq	_mlx5_query_hca_vport_pkey
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlx5_query_hca_nic_pkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_query_hca_nic_pkey
_mlx5_query_hca_nic_pkey:               ; @mlx5_query_hca_nic_pkey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_to_mdev
	mov	x22, x0
	add	x2, sp, #12
	mov	x1, x21
	bl	_mlx5_ib_get_native_port_mdev
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w2, [sp, #12]
	mov	w1, #0
	mov	w3, #0
	mov	x4, x20
	mov	x5, x19
	bl	_mlx5_query_hca_vport_pkey
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	bl	_mlx5_ib_put_native_port_mdev
	b	LBB0_3
LBB0_2:
	ldr	x0, [x22]
	mov	w8, #1
	str	w8, [sp, #12]
	mov	w1, #0
	mov	w2, #1
	mov	w3, #0
	mov	x4, x20
	mov	x5, x19
	bl	_mlx5_query_hca_vport_pkey
	mov	x19, x0
LBB0_3:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlx5_query_hca_nic_pkey
.subsections_via_symbols
