	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_SET_PORT
_mlx4_ib_SET_PORT:                      ## @mlx4_ib_SET_PORT
	.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
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	(%r14), %rax
	movq	_MLX4_FLAG_OLD_PORT_CMDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	setne	%al
	shll	$6, %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$2, %r13d
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	setne	%al
	movq	8(%rbx), %rcx
	movl	%eax, 12(%rcx)
	movl	$1, %r13d
LBB0_4:
	movl	%r12d, %edi
	callq	_cpu_to_be32
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	(%r14), %rdi
	movl	(%rbx), %esi
	movq	_MLX4_SET_PORT_IB_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MLX4_CMD_SET_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_TIME_CLASS_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_WRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	%r15d, %edx
	callq	_mlx4_cmd
	movl	%eax, %r15d
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_mlx4_free_cmd_mailbox
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_FLAG_OLD_PORT_CMDS,4,2    ## @MLX4_FLAG_OLD_PORT_CMDS
	.comm	_MLX4_SET_PORT_IB_OPCODE,4,2    ## @MLX4_SET_PORT_IB_OPCODE
	.comm	_MLX4_CMD_SET_PORT,4,2          ## @MLX4_CMD_SET_PORT
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ## @MLX4_CMD_TIME_CLASS_B
	.comm	_MLX4_CMD_WRAPPED,4,2           ## @MLX4_CMD_WRAPPED
	.no_dead_strip	_mlx4_ib_SET_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_SET_PORT
_mlx4_ib_SET_PORT:                      ; @mlx4_ib_SET_PORT
	.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	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_mlx4_alloc_cmd_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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
	b	_PTR_ERR
LBB0_2:
	ldr	x8, [x19]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _MLX4_FLAG_OLD_PORT_CMDS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX4_FLAG_OLD_PORT_CMDS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	cmp	w23, #0
	cset	w8, ne
	lsl	w8, w8, #6
	ldr	x9, [x20, #8]
	str	w8, [x9]
	mov	w23, #2
	b	LBB0_5
LBB0_4:
	cmp	w23, #0
	cset	w8, ne
	ldr	x9, [x20, #8]
	str	w8, [x9, #12]
	mov	w23, #1
LBB0_5:
	mov	x0, x22
	bl	_cpu_to_be32
	ldr	x8, [x20, #8]
	str	w0, [x8, x23, lsl #2]
	ldr	x0, [x19]
	ldr	w1, [x20]
Lloh3:
	adrp	x8, _MLX4_SET_PORT_IB_OPCODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX4_SET_PORT_IB_OPCODE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _MLX4_CMD_SET_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_CMD_SET_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
Lloh12:
	adrp	x8, _MLX4_CMD_WRAPPED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_CMD_WRAPPED@GOTPAGEOFF]
Lloh14:
	ldr	w6, [x8]
	mov	x2, x21
	bl	_mlx4_cmd
	mov	x21, x0
	ldr	x0, [x19]
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_FLAG_OLD_PORT_CMDS,4,2    ; @MLX4_FLAG_OLD_PORT_CMDS
	.comm	_MLX4_SET_PORT_IB_OPCODE,4,2    ; @MLX4_SET_PORT_IB_OPCODE
	.comm	_MLX4_CMD_SET_PORT,4,2          ; @MLX4_CMD_SET_PORT
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ; @MLX4_CMD_TIME_CLASS_B
	.comm	_MLX4_CMD_WRAPPED,4,2           ; @MLX4_CMD_WRAPPED
	.no_dead_strip	_mlx4_ib_SET_PORT
.subsections_via_symbols
