	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_check_port_params         ## -- Begin function mlx4_check_port_params
	.p2align	4, 0x90
_mlx4_check_port_params:                ## @mlx4_check_port_params
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_MLX4_DEV_CAP_FLAG_DPDP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rdi), %eax
	testl	%ecx, (%rdi)
	je	LBB0_1
LBB0_5:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	cmovlel	%r14d, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rdi), %rbx
	leaq	1(%rcx), %rdx
	movl	4(%rbx,%rcx,4), %ebx
	testl	%ebx, (%rsi,%rcx,4)
	movq	%rdx, %rcx
	jne	LBB0_6
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_9
LBB0_1:
	leal	-1(%rax), %r8d
	xorl	%edx, %edx
	testl	%r8d, %r8d
	cmovlel	%edx, %r8d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %r8
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rsi,%rdx,4), %ebx
	leaq	1(%rdx), %rcx
	cmpl	4(%rsi,%rdx,4), %ebx
	movq	%rcx, %rdx
	je	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mlx4_err
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_DEV_CAP_FLAG_DPDP,4,2     ## @MLX4_DEV_CAP_FLAG_DPDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only same port types supported on this HCA, aborting\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Requested port type for port %d is not supported on this HCA\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_check_port_params         ; -- Begin function mlx4_check_port_params
	.p2align	2
_mlx4_check_port_params:                ; @mlx4_check_port_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _MLX4_DEV_CAP_FLAG_DPDP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_DEV_CAP_FLAG_DPDP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldp	w10, w8, [x0]
	tst	w9, w10
	b.eq	LBB0_6
LBB0_1:
	mov	x9, #0
	cmp	w8, #0
	csel	w8, w8, wzr, gt
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	x10, x9, #2
	ldr	w11, [x1, x10]
	ldr	x12, [x0, #8]
	add	x9, x9, #1
	add	x10, x12, x10
	ldr	w10, [x10, #4]
	tst	w10, w11
	b.ne	LBB0_2
; %bb.4:
	str	x9, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	sub	w9, w8, #1
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	add	x10, x1, #4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x9, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldp	w11, w12, [x10, #-4]
	sub	x9, x9, #1
	add	x10, x10, #4
	cmp	w11, w12
	b.eq	LBB0_7
; %bb.9:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	bl	_mlx4_err
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_DEV_CAP_FLAG_DPDP,4,2     ; @MLX4_DEV_CAP_FLAG_DPDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only same port types supported on this HCA, aborting\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Requested port type for port %d is not supported on this HCA\n"

.subsections_via_symbols
