	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_create_ah_slave        ## -- Begin function mlx4_ib_create_ah_slave
	.p2align	4, 0x90
_mlx4_ib_create_ah_slave:               ## @mlx4_ib_create_ah_slave
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movups	(%rsi), %xmm0
	movaps	%xmm0, -80(%rbp)
	callq	_to_mah
	movq	%rax, %r15
	movq	$0, -64(%rbp)
	movl	%ebx, -72(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_mlx4_ib_create_ah
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	(%r14), %rax
	movq	%rax, (%r13)
	movl	$2147483647, %edi               ## imm = 0x7FFFFFFF
	callq	_cpu_to_be32
	andl	%eax, 8(%r15)
	movq	(%r14), %rax
	movq	_RDMA_AH_ATTR_TYPE_ROCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movl	4(%r15), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$6, %edx
	callq	_memcpy
LBB0_3:
	cmpl	$4095, %ebx                     ## imm = 0xFFF
	jg	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_rdma_ah_get_sl
	shll	$13, %eax
	movzwl	%ax, %eax
	orl	%eax, %ebx
LBB0_5:
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movl	%eax, (%r15)
LBB0_6:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_AH_ATTR_TYPE_ROCE,8,3     ## @RDMA_AH_ATTR_TYPE_ROCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_create_ah_slave        ; -- Begin function mlx4_ib_create_ah_slave
	.p2align	2
_mlx4_ib_create_ah_slave:               ; @mlx4_ib_create_ah_slave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x24, x0
	ldr	q0, [x1]
	str	q0, [sp]
	bl	_to_mah
	mov	x20, x0
	str	xzr, [sp, #16]
	str	w22, [sp, #8]
	mov	x1, sp
	mov	x0, x24
	mov	w2, #0
	mov	x3, #0
	bl	_mlx4_ib_create_ah
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x21]
	str	x8, [x24]
	mov	w0, #2147483647
	bl	_cpu_to_be32
	ldr	w8, [x20, #8]
	and	w8, w8, w0
	str	w8, [x20, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _RDMA_AH_ATTR_TYPE_ROCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RDMA_AH_ATTR_TYPE_ROCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x20, #4]
	mov	x1, x23
	mov	w2, #6
	bl	_memcpy
LBB0_3:
	cmp	w19, #4095
	b.gt	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_rdma_ah_get_sl
	ubfiz	w8, w0, #13, #3
	orr	w19, w8, w19
LBB0_5:
	mov	x0, x19
	bl	_cpu_to_be16
	str	w0, [x20]
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_AH_ATTR_TYPE_ROCE,8,3     ; @RDMA_AH_ATTR_TYPE_ROCE
.subsections_via_symbols
