	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_init_ah_from_wc             ## -- Begin function ib_init_ah_from_wc
	.p2align	4, 0x90
_ib_init_ah_from_wc:                    ## @ib_init_ah_from_wc
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$0, -44(%rbp)
	movq	_RDMA_NETWORK_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IB_GID_TYPE_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$255, -60(%rbp)
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_rdma_cap_eth_ah
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_IB_WC_WITH_NETWORK_HDR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	4(%rcx), %ebx
	jmp	LBB0_4
LBB0_3:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_ib_get_net_type_by_grh
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %edi
	callq	_ib_network_to_gid_type
	movl	%eax, %r14d
LBB0_5:
	leaq	-104(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_gids_from_rdma_hdr
	movl	%eax, %r15d
	testl	%eax, %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_6
LBB0_23:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_rdma_protocol_roce
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %eax
	movq	_IB_WC_WITH_VLAN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.9:
	movl	8(%rdx), %edx
	jmp	LBB0_10
LBB0_8:
	movl	$65535, %edx                    ## imm = 0xFFFF
LBB0_10:
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.12:
	leaq	-56(%rbp), %rcx
	leaq	-44(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %r8d
	callq	_get_sgid_index_from_eth
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.13:
	movl	-44(%rbp), %edx
	leaq	-56(%rbp), %rcx
	leaq	-96(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_ib_get_cached_gid
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.14:
	movq	-96(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.17:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	60(%rax), %edx
	leaq	-56(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	leaq	-60(%rbp), %r8
	callq	_rdma_addr_find_l2_eth_by_grh
	movl	%eax, %r15d
	movq	-96(%rbp), %rdi
	callq	_dev_put
	testl	%r15d, %r15d
	jne	LBB0_23
LBB0_18:
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movl	20(%rdx), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 56(%rcx)
	movl	16(%rdx), %eax
	movl	%eax, 52(%rcx)
	movl	12(%rdx), %eax
	movl	%eax, 48(%rcx)
	movq	%r12, 40(%rcx)
	movq	_IB_WC_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, (%rdx)
	je	LBB0_23
## %bb.19:
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rcx)
	movq	-104(%rbp), %rax
	movq	%rax, 24(%rcx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_rdma_cap_eth_ah
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	movq	-56(%rbp), %rbx
	movq	_IB_SA_WELL_KNOWN_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be64
	cmpq	%rax, %rbx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_22
## %bb.21:
	movq	_IB_GID_TYPE_IB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	leaq	-44(%rbp), %r9
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_ib_find_cached_gid_by_port
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
LBB0_22:
	movslq	-44(%rbp), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %ecx
	andl	$1048575, %ecx                  ## imm = 0xFFFFF
	movl	%ecx, (%rbx)
	movl	-60(%rbp), %ecx
	movl	%ecx, 4(%rbx)
	shrl	$20, %eax
	movzbl	%al, %eax
	movl	%eax, 8(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_11:
	movq	_EPROTOTYPE@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_23
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_NETWORK_IB,4,2            ## @RDMA_NETWORK_IB
	.comm	_IB_GID_TYPE_IB,4,2             ## @IB_GID_TYPE_IB
	.comm	_IB_WC_WITH_NETWORK_HDR_TYPE,4,2 ## @IB_WC_WITH_NETWORK_HDR_TYPE
	.comm	_IB_WC_WITH_VLAN,4,2            ## @IB_WC_WITH_VLAN
	.comm	_IB_WC_GRH,4,2                  ## @IB_WC_GRH
	.comm	_EPROTOTYPE,4,2                 ## @EPROTOTYPE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
	.comm	_IB_SA_WELL_KNOWN_GUID,4,2      ## @IB_SA_WELL_KNOWN_GUID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_init_ah_from_wc             ; -- Begin function ib_init_ah_from_wc
	.p2align	2
_ib_init_ah_from_wc:                    ; @ib_init_ah_from_wc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	str	wzr, [sp, #28]
Lloh0:
	adrp	x8, _RDMA_NETWORK_IB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDMA_NETWORK_IB@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x26, _IB_GID_TYPE_IB@GOTPAGE
Lloh4:
	ldr	x26, [x26, _IB_GID_TYPE_IB@GOTPAGEOFF]
	ldr	w24, [x26]
	mov	w8, #255
	str	w8, [sp, #24]
	mov	x0, x4
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	x0, x22
	mov	x1, x21
	bl	_rdma_cap_eth_ah
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x23]
Lloh5:
	adrp	x9, _IB_WC_WITH_NETWORK_HDR_TYPE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_WC_WITH_NETWORK_HDR_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w25, [x23, #4]
	b	LBB0_4
LBB0_3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_ib_get_net_type_by_grh
	mov	x25, x0
LBB0_4:
	mov	x0, x25
	bl	_ib_network_to_gid_type
	mov	x24, x0
LBB0_5:
	add	x2, sp, #8
	add	x3, sp, #16
	mov	x0, x20
	mov	x1, x25
	bl	_get_gids_from_rdma_hdr
	mov	x25, x0
	cbz	w0, LBB0_7
LBB0_6:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	bl	_rdma_protocol_roce
Lloh8:
	adrp	x27, _IB_WC_GRH@GOTPAGE
Lloh9:
	ldr	x27, [x27, _IB_WC_GRH@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.8:
	ldr	w8, [x23]
Lloh10:
	adrp	x9, _IB_WC_WITH_VLAN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IB_WC_WITH_VLAN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w2, [x23, #8]
	b	LBB0_11
LBB0_10:
	mov	w2, #65535
LBB0_11:
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.12:
	add	x3, sp, #16
	add	x5, sp, #28
	mov	x0, x22
	mov	x1, x21
	mov	x4, x24
	bl	_get_sgid_index_from_eth
	mov	x25, x0
	cbnz	w0, LBB0_6
; %bb.13:
	ldr	w2, [sp, #28]
	add	x3, sp, #16
	mov	x4, sp
	mov	x0, x22
	mov	x1, x21
	bl	_ib_get_cached_gid
	mov	x25, x0
	cbnz	w0, LBB0_6
; %bb.14:
	ldr	x3, [sp]
	cbz	x3, LBB0_24
; %bb.15:
	ldr	w2, [x19, #60]
	add	x0, sp, #16
	add	x1, sp, #8
	add	x4, sp, #24
	bl	_rdma_addr_find_l2_eth_by_grh
	mov	x25, x0
	ldr	x0, [sp]
	bl	_dev_put
	cbnz	w25, LBB0_6
LBB0_16:
	ldr	w8, [x23, #20]
	str	w8, [x19, #56]
	ldur	d0, [x23, #12]
	str	d0, [x19, #48]
	str	x21, [x19, #40]
	ldr	w8, [x23]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.17:
Lloh13:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [sp, #8]
	str	x8, [x19, #24]
	mov	x0, x22
	mov	x1, x21
	bl	_rdma_cap_eth_ah
	cbnz	x0, LBB0_20
; %bb.18:
	ldr	x23, [sp, #16]
Lloh16:
	adrp	x8, _IB_SA_WELL_KNOWN_GUID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_SA_WELL_KNOWN_GUID@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_cpu_to_be64
	cmp	x23, x0
	b.eq	LBB0_20
; %bb.19:
	ldr	w2, [x26]
	add	x1, sp, #16
	add	x5, sp, #28
	mov	x0, x22
	mov	x3, x21
	mov	x4, #0
	bl	_ib_find_cached_gid_by_port
	mov	x25, x0
	cbnz	w0, LBB0_6
LBB0_20:
	ldrsw	x8, [sp, #28]
	str	x8, [x19, #16]
	ldr	w0, [x20]
	bl	_be32_to_cpu
	mov	w25, #0
	and	w8, w0, #0xfffff
	ldr	w9, [sp, #24]
	stp	w8, w9, [x19]
	ubfx	w8, w0, #20, #8
	str	w8, [x19, #8]
	b	LBB0_6
LBB0_21:
Lloh19:
	adrp	x8, _EPROTOTYPE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPROTOTYPE@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_6
LBB0_23:
	mov	w25, #0
	b	LBB0_6
LBB0_24:
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_22
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_NETWORK_IB,4,2            ; @RDMA_NETWORK_IB
	.comm	_IB_GID_TYPE_IB,4,2             ; @IB_GID_TYPE_IB
	.comm	_IB_WC_WITH_NETWORK_HDR_TYPE,4,2 ; @IB_WC_WITH_NETWORK_HDR_TYPE
	.comm	_IB_WC_WITH_VLAN,4,2            ; @IB_WC_WITH_VLAN
	.comm	_IB_WC_GRH,4,2                  ; @IB_WC_GRH
	.comm	_EPROTOTYPE,4,2                 ; @EPROTOTYPE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
	.comm	_IB_SA_WELL_KNOWN_GUID,4,2      ; @IB_SA_WELL_KNOWN_GUID
.subsections_via_symbols
