	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_mcast_attach             ## -- Begin function ipoib_mcast_attach
	.p2align	4, 0x90
_ipoib_mcast_attach:                    ## @ipoib_mcast_attach
	.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	%r9d, %r14d
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movq	%rdx, %r15
	callq	_ipoib_priv
	movq	%rax, %r13
	movl	16(%rax), %edi
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	leaq	-48(%rbp), %rcx
	callq	_ib_find_pkey
	leaq	4(%r13), %rsi
	movq	_IPOIB_PKEY_ASSIGNED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_clear_bit
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	callq	_set_bit
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r12
	movl	%r14d, (%rax)
	movl	(%r13), %edi
	movq	_IB_QP_QKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_ib_modify_qp
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_11
LBB0_3:
	xorl	%r12d, %r12d
LBB0_4:
	movl	(%r13), %edi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_ib_attach_mcast
	testl	%eax, %eax
	je	LBB0_5
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_ipoib_warn
	jmp	LBB0_12
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_5:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ## @IPOIB_PKEY_ASSIGNED
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IB_QP_QKEY,4,2                 ## @IB_QP_QKEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to modify QP, ret = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to attach to multicast group, ret = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_mcast_attach             ; -- Begin function ipoib_mcast_attach
	.p2align	2
_ipoib_mcast_attach:                    ; @ipoib_mcast_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	bl	_ipoib_priv
	mov	x20, x0
	ldr	w0, [x0, #16]
	ldp	w2, w1, [x20, #8]
	add	x3, sp, #12
	bl	_ib_find_pkey
	mov	x8, x0
Lloh0:
	adrp	x9, _IPOIB_PKEY_ASSIGNED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPOIB_PKEY_ASSIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	add	x1, x20, #4
	cbz	x8, LBB0_2
; %bb.1:
	bl	_clear_bit
	mov	x19, #0
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_2:
	bl	_set_bit
	cbz	w19, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.4:
	str	w23, [x19]
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _IB_QP_QKEY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IB_QP_QKEY@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_ib_modify_qp
	cbz	w0, LBB0_7
; %bb.5:
	mov	x23, x0
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	x19, #0
LBB0_7:
	ldr	w0, [x20]
	mov	x1, x22
	mov	x2, x21
	bl	_ib_attach_mcast
	mov	x23, x0
	cbz	w0, LBB0_11
; %bb.8:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x2, x23
	bl	_ipoib_warn
	b	LBB0_11
LBB0_10:
	neg	w23, w24
LBB0_11:
	mov	x0, x19
	bl	_kfree
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOIB_PKEY_ASSIGNED,4,2        ; @IPOIB_PKEY_ASSIGNED
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IB_QP_QKEY,4,2                 ; @IB_QP_QKEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to modify QP, ret = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to attach to multicast group, ret = %d\n"

.subsections_via_symbols
