	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_agent_port_open             ## -- Begin function ib_agent_port_open
	.p2align	4, 0x90
_ib_agent_port_open:                    ## @ib_agent_port_open
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_rdma_cap_ib_smi
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	$0, 16(%rsp)
	movq	_agent_send_handler@GOTPCREL(%rip), %r9
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ib_register_mad_agent
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_5:
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	$0, 16(%rsp)
	movq	_agent_send_handler@GOTPCREL(%rip), %r9
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ib_register_mad_agent
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_ib_unregister_mad_agent
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_10:
	movq	_ib_agent_port_list_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	addq	$8, %rbx
	movq	_ib_agent_port_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_9:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No memory for ib_agent_port_private\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_QPT_SMI,4,2                 ## @IB_QPT_SMI
	.comm	_agent_send_handler,4,2         ## @agent_send_handler
	.comm	_IB_QPT_GSI,4,2                 ## @IB_QPT_GSI
	.comm	_ib_agent_port_list_lock,4,2    ## @ib_agent_port_list_lock
	.comm	_ib_agent_port_list,4,2         ## @ib_agent_port_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_agent_port_open             ; -- Begin function ib_agent_port_open
	.p2align	2
_ib_agent_port_open:                    ; @ib_agent_port_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_rdma_cap_ib_smi
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _IB_QPT_SMI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QPT_SMI@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	str	wzr, [sp]
Lloh6:
	adrp	x5, _agent_send_handler@GOTPAGE
Lloh7:
	ldr	x5, [x5, _agent_send_handler@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ib_register_mad_agent
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_8
LBB0_4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_5:
Lloh13:
	adrp	x8, _IB_QPT_GSI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_QPT_GSI@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	str	wzr, [sp]
Lloh16:
	adrp	x5, _agent_send_handler@GOTPAGE
Lloh17:
	ldr	x5, [x5, _agent_send_handler@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ib_register_mad_agent
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x0, [x8]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_ib_unregister_mad_agent
LBB0_8:
	mov	x0, x19
	bl	_kfree
	b	LBB0_10
LBB0_9:
Lloh18:
	adrp	x20, _ib_agent_port_list_lock@GOTPAGE
Lloh19:
	ldr	x20, [x20, _ib_agent_port_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #8
Lloh20:
	adrp	x1, _ib_agent_port_list@GOTPAGE
Lloh21:
	ldr	x1, [x1, _ib_agent_port_list@GOTPAGEOFF]
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w20, #0
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No memory for ib_agent_port_private\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_QPT_SMI,4,2                 ; @IB_QPT_SMI
	.comm	_agent_send_handler,4,2         ; @agent_send_handler
	.comm	_IB_QPT_GSI,4,2                 ; @IB_QPT_GSI
	.comm	_ib_agent_port_list_lock,4,2    ; @ib_agent_port_list_lock
	.comm	_ib_agent_port_list,4,2         ; @ib_agent_port_list
.subsections_via_symbols
