	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_INIT_PORT_wrapper         ## -- Begin function mlx4_INIT_PORT_wrapper
	.p2align	4, 0x90
_mlx4_INIT_PORT_wrapper:                ## @mlx4_INIT_PORT_wrapper
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r15
	callq	_mlx4_priv
	movq	%rax, %r14
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_mlx4_slave_convert_port
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r12d
	movq	8(%r14), %rdx
	movq	%r14, %rsi
	movl	$1, %r14d
	movl	%r12d, %ecx
	shll	%cl, %r14d
	movslq	%r13d, %rbx
	movl	(%rdx,%rbx,4), %ecx
	xorl	%eax, %eax
	btl	%r12d, %ecx
	jb	LBB0_16
## %bb.3:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movl	%r12d, %edi
	movq	(%rax,%rdi,8), %rax
	movq	_MLX4_PORT_TYPE_IB@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_4
## %bb.8:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mlx4_master_func_num
	cmpl	%r13d, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_check_qp0_state
	testq	%rax, %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_15
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	cmpl	$0, (%rax,%rdi,4)
	jne	LBB0_15
## %bb.11:
	movq	_MLX4_CMD_INIT_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_mlx4_cmd
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, (%rax,%rdi,4)
	movq	8(%rcx), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rax
	movl	(%rcx,%rdx,4), %ecx
	jmp	LBB0_14
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$0, (%rax,%rdi,4)
	je	LBB0_5
LBB0_7:
	leaq	(%rdx,%rbx,4), %rax
	jmp	LBB0_14
LBB0_13:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,4), %rax
	movl	(%rcx,%rdx,4), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_14:
	orl	%r14d, %ecx
	movl	%ecx, (%rax)
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	incl	(%rax,%rdi,4)
	xorl	%eax, %eax
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %r13
	movq	_MLX4_CMD_INIT_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_mlx4_cmd
	testl	%eax, %eax
	jne	LBB0_16
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdx
	movl	(%rdx,%rbx,4), %ecx
	movq	%r13, %rdi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_PORT_TYPE_IB,8,3          ## @MLX4_PORT_TYPE_IB
	.comm	_MLX4_CMD_INIT_PORT,4,2         ## @MLX4_CMD_INIT_PORT
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_INIT_PORT_wrapper         ; -- Begin function mlx4_INIT_PORT_wrapper
	.p2align	2
_mlx4_INIT_PORT_wrapper:                ; @mlx4_INIT_PORT_wrapper
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_mlx4_priv
	mov	x19, x0
	ldr	w2, [x21]
	mov	x0, x20
	mov	x1, x22
	bl	_mlx4_slave_convert_port
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x9, [x19, #8]
	ldr	w8, [x9, w22, sxtw #2]
	mov	w10, #1
	lsl	w23, w10, w0
	tst	w8, w23
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_16
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_4:
	sxtw	x25, w22
	ldr	x10, [x20]
	mov	w24, w21
	ldr	x10, [x10, w21, uxtw #3]
Lloh3:
	adrp	x11, _MLX4_PORT_TYPE_IB@GOTPAGE
Lloh4:
	ldr	x11, [x11, _MLX4_PORT_TYPE_IB@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x20
	bl	_mlx4_master_func_num
	cmp	w0, w22
	b.ne	LBB0_12
; %bb.6:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_check_qp0_state
	cbz	x0, LBB0_15
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, x24, lsl #2]
	cbnz	w8, LBB0_15
; %bb.8:
Lloh6:
	adrp	x8, _MLX4_CMD_INIT_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_CMD_INIT_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	w3, #0
	bl	_mlx4_cmd
	cbnz	w0, LBB0_16
; %bb.9:
	mov	w8, #1
	ldp	x10, x9, [x19, #8]
	str	w8, [x9, x24, lsl #2]
	add	x9, x10, x25, lsl #2
	b	LBB0_13
LBB0_10:
	ldr	x10, [x19]
	ldr	w10, [x10, x24, lsl #2]
	cbz	w10, LBB0_17
LBB0_11:
	add	x9, x9, x25, lsl #2
	b	LBB0_14
LBB0_12:
	ldr	x8, [x19, #8]
	add	x9, x8, x25, lsl #2
LBB0_13:
	ldr	w8, [x9]
LBB0_14:
	orr	w8, w8, w23
	str	w8, [x9]
LBB0_15:
	mov	w0, #0
	ldr	x8, [x19]
	lsl	x9, x24, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_16:
	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_17:
Lloh15:
	adrp	x8, _MLX4_CMD_INIT_PORT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX4_CMD_INIT_PORT@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
Lloh21:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	w3, #0
	bl	_mlx4_cmd
	cbnz	w0, LBB0_16
; %bb.18:
	ldr	x9, [x19, #8]
	ldr	w8, [x9, x25, lsl #2]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_PORT_TYPE_IB,8,3          ; @MLX4_PORT_TYPE_IB
	.comm	_MLX4_CMD_INIT_PORT,4,2         ; @MLX4_CMD_INIT_PORT
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
.subsections_via_symbols
